petermad wrote: ↑2020-08-05, 21:06 UTC
2
tuska
[em_ClearAllFilter]
cmd=cd *.*
Why not just use
cm_SrcAllFiles - it does the same - and without resetting the Custom mask (Ctrl+F12)
That was my first thought back then "when I was struggling with the filters"
and I overlooked the fact that there was this command.
Thanks for pointing this out, I have now adapted my button as follows:
Button
Code: Select all
TOTALCMD#BAR#DATA
cm_SrcViewMode0,cm_SrcAllFiles,cm_50Percent,cm_RereadSource
wcmicons.dll,86
cm_SrcViewMode0,cm_SrcAllFiles,cm_50Percent,cm_RereadSource|View mode <Standard>: cm_SrcViewMode0|Active panel!|-|cm_rereadsource Ctrl+R|-|cm_rereadsource 1|cm_rereadsource 2|cm_rereadsource 3 (as of TC 9.50)|https://ghisler.ch/board/viewtopic.php?f=3&t=72457
-1
Notes
Code: Select all
cm_SrcViewMode0 ... Sets the view to View Mode <Default>, both for the View Mode and for a Custom columns view!
cm_SrcAllFiles ... Show all files -> menu "Show" - "All Files Ctrl+F10"
cm_50Percent ... Window separator at 50%
cm_RereadSource ... Reread source
This button covers
many possibilities, but it cannot reset every view variant to <Default>.
petermad wrote: ↑2020-08-05, 21:06 UTC
2
tuska
cm_SrcViewMode0,em_ClearAllFilter,cm_50Percent,cm_RereadSource
I think that this will do the same witout need for editing wincmd.ini and usercmd.ini:
Code: Select all
cm_SrcLong,cm_SrcAllFiles,cm_50Percent
These are too few parameters
for me in this case, I had to add cm_RereadSource:
Code: Select all
cm_SrcLong,cm_SrcAllFiles,cm_50Percent,cm_RereadSource
In any case, there are several button solutions to reset the view in this case.
In this case, a button with these parameters is certainly sufficient/recommended, although the command cm_50Percent
would not be needed either. Maybe someday, when you've got deals with View modes, the other button (as preparation?)
probably can't do any harm either.