Overview: View Mode | Auto Switch Mode | Custom columns view

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
tuska
Power Member
Power Member
Posts: 3755
Joined: 2007-05-21, 12:17 UTC

Overview: View Mode | Auto Switch Mode | Custom columns view

Post by *tuska »

The points listed below are intended as support for the creation of views and do not claim for completeness.
View Mode and Auto Switch Mode are available since 23.11.2016 - Total Commander Release 9.0 final (32/64).

1. VIEW MODE

Code: Select all

VIEW MODE                      Configuration - Options... - View Mode
---------------------------------------------------------------------------------------------------------------------------------
Name ........................: Title (self-selected name); [Option: See -> Auto Switch Mode - field: "Set this mode:"] 
Columns view ................: according to list (default) OR saved "Custom columns view" in the drop-down box can be integrated(!)
Sort order: .................: Descending: Yes / No (hooked = Yes) 
Additional sort orders: .....: 1 Name, 2 Ext, 3 Size, 4 Date ---  Ascending / Descending (press the plus-sign) 
Tab color and icon ..........: Self-explanatory or simply press F1 for help
Background color ............: Self-explanatory or simply press F1 for help
Background color2 ...........: Self-explanatory or simply press F1 for help
Priority ....................: Explanations: Press F1 for help
Auto-run commands ..........): press F1 for help; press the "+" plus-sign, e.g. em_commands. 
............................): Windows splittings [20/80,30/70,40/60,50/50,60/40,70/30,80/20]:
............................): Example: cm_100percent|cm_50percent
............................): -> broaden active window to 100% (cm_100percent) and 
............................): -> after leaving View Mode the active window is automatically reset to 50%/50% (|cm_50percent).
............................): cm_100Percent 70|cm_50Percent, cm_100percent -20|cm_100Percent,
............................): Width of the active window (70%): cm_100percent 70     / Set the width of the right panel to 100%:
............................): Width of the left window   (20%): cm_100percent -20    / cm_FocusRight,cm_100Percent
............................): See also: https://ghisler.ch/board/viewtopic.php?p=337141#p337141 several buttons, e.g. for 
............................): "Set Panel divider to entered percent".
............................): [Windows splittings - script solutions: https://ghisler.ch/board/viewtopic.php?p=358039#p358039]
............................): Windows splitting: The separator line  <-||-> is located at the left edge of the vertical buttonbar, 
............................): a double-click on it and you get a 50:50 windows width-view.
............................):  ------------------------------------------------------------------------------------------------
............................): File Exclusions - Example: *.* |*.mp3 *.wma  = Search for files *.*, 
............................): except *.mp3 *.wma - files and apply the View Mode, e.g. MP3.
............................): ------------------------------------------------------------------------------------------------
............................): |cm_SrcViewMode0 - 1 of 3: 
............................): After leaving the directory, a reset to <Default> (no symbols or colors) is NOT required! 
............................): Quote from Mr. Ghisler (Email 31.5.2018):
............................): Total Commander should even switch to mode 0 when you leave a zone of a View Mode. 
............................): But it gets in the way of other View Modes, if you e.g. directly from a directory, 
............................): which mode 1 is assigned to, change into a directory which is assigned to e.g. mode 2.[/quote]
............................): ("Mode" = View Mode). -> Therefore do NOT use Auto-run command: |cm_SrcViewMode0 as a rule!
............................): See also the following point...
............................): ------------------------------------------------------------------------------------------------
............................): |cm_SrcViewMode0 - 2 of 3:
............................): Use of |cm_SrcViewMode0 for button "ON/OFF" switch - Example:
............................): Application of View Mode and reset to <default>, e.g. for View Mode: "File name and path".
............................): + Auto-run commands: |cm_SrcViewMode0 + button with command: cm_SrcViewModeList file name and path
............................): -> Press button several times = show file name and path ON/OFF (button behaves like a "switch")
............................): Attention: |cm_SrcViewMode0 = <default>: In this case this has an effect e.g. on the next tab,
............................): for which an Auto Switch Mode has been set, because clicking on the next tab causes the
............................): predefined Auto Switch Mode + View Mode to be switched OFF!
............................): Quote from Mr. Ghisler (Email 7.6.2018): 
............................): This is due to the fact that with a directory change 
............................): - first it will be switched to the new View Mode, 
............................): - then the procedure behind | is executed in the old mode, 
............................): - and finally that before | in the new mode. 
............................): Therefore cm_SrcViewMode0 removes the just set new mode. Unfortunately this cannot be solved otherwise.
............................): SOLUTION1: Do NOT use the command cm_SrcViewMode0 after the '|', because the Auto Switch Mode
............................): ends itself anyway. EXAMPLE: https://ghisler.ch/board/viewtopic.php?p=414703#p414703
............................): SOLUTION2: |cm_SrcViewMode0,cm_RereadSource 2 ... then the "ON/OFF" button works!
............................): Example: https://ghisler.ch/board/viewtopic.php?p=428160#p428160 B) View Mode, Point 8.
............................): ------------------------------------------------------------------------------------------------
............................): |cm_SrcViewMode0 - 3 of 3:
............................): In general one can check the above listed variants (with corresponding effect at "2 of 3")
............................): with regard to whether you want to have an "ON/OFF" switch for a button or not.
............................): ------------------------------------------------------------------------------------------------
............................): 13.05.21 Release Total Commander 10.00 public beta 10
............................): 12.05.21 Added: View modes, Auto-run commands:
............................):          Put '-' at the start of the command field to not execute commands on tab change,
............................):          only on directory change (32/64)
............................):
............................): 20.05.21 Release Total Commander 10.00 release candidate 1
............................): 18.05.21 Fixed: View modes, Auto-run commands: '-' at start didn't prevent tab leave commands
............................):          from running on tab change.
............................):          Put '-' after | to prevent them, e.g. cm_srcexecs|-cm_srcallfiles (32/64)
............................):
............................): https://ghisler.ch/board/viewtopic.php?f=14&t=49325 - "TC suggestions (English)"
............................): filtering with CD kept for each tab and not for all left/right
............................): Basic objective:
............................): When switching from one tab to another tab in the same TC window -
............................): in each case with an existing filter - the filter per tab should be retained.
............................): Important note:
............................): |-cm_SrcAllFiles,cm_50percent ... means that both commands will NOT be executed!
............................):  ------------------------------------------------------------------------------------------------
Commands (Selection) .......): cm_SrcViewModeList (= Show - Custom View Modes), cm_SrcViewModeList NameOfYourViewMode, 
............................): cm_SrcViewMode0 (default View Mode), cm_SrcViewMode1 to 9 (8501-8509); 8510-8749  ***)
............................): cm_LeftViewModeList, cm_RightViewModeList, cm_ToggleAutoViewModeSwitch,
............................): cm_LeftViewModeX, cm_RightViewModeX, cm_TrgViewModeX
Commands with parameters ...): https://www.ghisler.ch/board/viewtopic.php?t=76713 List of commands that supports parameters
Command browser ............): Type in: cm_CommandBrowser ... in the TC command line, then press <ENTER> (search internal commands)
............................): => Click on category: View modes
............................): ------------------------------------------------------------------------------------------------
wincmd.ini ..................: sections [ViewModes], [left], [right] - [... for inquiries in the forums important!]
View Mode <Default> ........): You should/must define here what you want to get as a view when a View Mode has finished,
............................): especially in the case of a combination with an Auto Switch Mode. 
............................): E.g. Columns view: Full, Sort order: Name / See also: Help-F1!
Limitations .................: For View Modes, the number is limited to 250. ***) see also point 5.
............................): For View Modes, the number of buttons is limited to 250 per command. ***) see point 5.
............................): ------------------------------------------------------------------------------------------------
Notes ......................): The order of the View Modes can be changed by clicking on the arrow buttons ∧∨
............................): in the settings menu (Configuration...View mode - below the button "Change title...").
............................): The buttons for View Modes do NOT have to be changed after changing the order,
............................): but only if they are called with the following command: cm_SrcViewModeList NameOfYourViewMode.
............................): If a button with the command: cm_SrcViewMode0 ... cm_SrcViewMode249 is called,
............................): then an adjustment is necessary in each case, i.e. the number(!) for the command
............................): must be adjusted in the button, e.g. from cm_SrcViewMode4 to cm_SrcViewMode6. 
............................): <Default> does not count, i.e. the first self-created View Mode has the number 1.
............................): Furthermore the tooltip has to be adjusted.
............................): ------------------------------------------------------------------------------------------------
Calling View Modes manually ): View Modes can be called manually as follows,
............................): - via the "Show" menu - "Custom View Modes"
............................): - by right-clicking on a tab
............................): - via the command line, e.g. cm_SrcViewModeList MP3 (cm_SrcViewModeList NameOfViewMode)
............................): - command: cm_SrcViewModeList can be used without parameters, e.g. in the TC command line -
............................):   then the View Modes are also displayed according to the menu item "Custom View Modes"
............................): - by button with command: cm_SrcViewModeList NameOfViewMode ... or
............................):   cm_SrcViewMode0 ... cm_SrcViewMode249 (see also: Limitations or Notes <above>!)
Calling View Modes automat. ): User-defined rules (-> Configuration - Auto Switch Mode) can be used to automatically switch to 
............................): a View Mode [Option: with integrated "Custom columns view"].
=================================================================================================================================
2. AUTO SWITCH MODE

Code: Select all

AUTO SWITCH MODE               Configuration - Options... - Auto Switch Mode
---------------------------------------------------------------------------------------------------------------------------------
Automatically switch View Mode on directory change: Yes / No => Turns the automatic View Mode change on/off. (according to Help-F1);
Auto Switch Mode - Command ..: cm_ToggleAutoViewModeSwitch 2947	Turn automatic View Mode switching on/off --> Usually: Switched ON!
---------------------------------------------------------------------------------------------------------------------------------
RULES ......................): Rule Summary - is composed of all the lower level-rules and includes the View Mode of 
............................): the field: "Set this mode:". IMPORTANT: Only the same View Mode can be set for several 
............................): lower level-rules, otherwise the last saved View Mode is applied to the rule!
............................): ------------------------------------------------------------------------------------------------
Lower level rule 1-Rule ....): Field content, eg +: Must match or S: Search result, etc.
Lower level-rule 1-Directory): Field content or leave it empty
Lower level-rule 1-Directory): Example: *\EXCEL\*     [Click the "Help" button --> here are more examples];
Lower level-rule 1-Directory): A leading * denotes parent folders, a trailing * denotes subfolders.
Lower level-rule 1-Directory): The Auto Switch Mode will be applied to the folder "EXCEL" (which can be found somewhere
Lower level-rule 1-Directory): - independent of the drive -) or a folder that has "EXCEL" in the folder name ... AND its subfolders(!)
Lower level-rule 1-FileTypes): Field content or leave it empty
Combination with AND / OR ..): click on "More sub-rules" then on "&"(left) to get ... & AND (all match) ... | OR (any match)  
Lower level rule 2-Rule .....: If available - Field content, eg +: Must match or S: Search result, etc.
Lower level-rule 2-Directory : Field content or leave it empty
Lower level-rule 2-File Types: Field content or leave it empty
Combination with AND / OR ...: click on "More sub-rules" then on "&"(left) to get ... & AND (all match) ... | OR (any match)  
Lower level rule 3-Rule .....: If available - Field content, eg +: Must match or S: Search result, etc.
etc.
............................): ------------------------------------------------------------------------------------------------
Set this mode ..............): In the dropdown field, select which View Mode (i.e. NO "user-defined Custom columns view"!)
............................): is to be applied to the Rule Summary (=> under: "RULES").
............................): IMPORTANT: Only the same View Mode can be set for several lower level-rules,
............................): otherwise the last saved View Mode is applied to the rule!
............................): ------------------------------------------------------------------------------------------------	
Rules - Overlaps ...........): TC goes through the list of rules from top to bottom, and applies the first one that applies. 
............................): The same also applies to overlaps in the sub-rules!	     
............................): Use arrow up   (Moves the vertical position one line up) or					     
............................): use arrow down (moves the vertical position one line down)					     
............................): to change the order in the list of rules [=> Prioritization change!].
............................): ------------------------------------------------------------------------------------------------	
............................): Example: 
............................): 1. "?: At least one match"
............................): 2. "%: At least 50% match"
............................): In this case the first sub-rule applies: "?: At least one match" 
............................): and the second sub-rule is irrelevantly.
............................): ------------------------------------------------------------------------------------------------	
............................): If the Auto Switch Mode does not work immediately, try changing the order:
............................): https://ghisler.ch/board/viewtopic.php?p=339676#p339676 					 
............................): ------------------------------------------------------------------------------------------------	
............................): Exception: https://ghisler.ch/board/viewtopic.php?p=357122#p357122 ... 			 	     
............................): In this case it is the same directory with 2 different rules/View Modes - the lower rule has pulled!
............................): However, this was an incorrect entry.
............................): ------------------------------------------------------------------------------------------------	
Commands (Selection) ........: cm_ConfigViewModeSwitch, cm_ToggleAutoViewModeSwitch (Turn automatic View Mode switching on/off)
Command browser ............): Type in: cm_CommandBrowser ... in the TC command line, then press <ENTER> (search internal commands)
............................): => Click on category: View modes or search for: auto (Filter)
wincmd.ini ..................: section [ViewModeSwitch] - [... for inquiries in the forums important!]
=================================================================================================================================
3. VIEW MODE + AUTO SWITCH MODE - HINTS/PROBLEM SOLUTIONS

Code: Select all

VIEW MODE + AUTO SWITCH MODE - HINTS/PROBLEM SOLUTIONS

1. Clicking on a tab does not always start a saved Auto Switch Mode immediately.
   A click on another tab and then on the tab with Auto Switch Mode can help here.
   Sometimes it is necessary to change at least once [or more than once] from the parent directory to the one in Auto Switch Mode 
   defined directory! After that the tab can be clicked at any time and the Auto Switch Mode is always active.
   It can also be helpful to quit and restart TC after defining an Auto Switch Mode rule.     

   (If you use the key combination Ctrl+Left Arrow or Ctrl+Right Arrow, the change to the directory defined in the Auto Switch Mode
   is obviously simulated and you can see in the other TC window, how the Auto Switch Mode-rule is applied, e.g. filtering of files).

2. If the Auto Switch Mode is active (e.g. filter applied) and it is activated, and e.g. by a button with 
   command: "em_ClearAllFilters" is overridden (filter OFF), then it means back at the start, this is point 1.
   Alternatively, the Auto Switch Mode can also be restarted immediately, e.g. MANUALLY with a button 
   (command: cd *.* | *.lnk *.bak *.wbk OR em_command, e.g.: em_FilesExtensionFiltering OR command: cm_SrcViewModeList Filter).
   For this reason it is sometimes recommended to create additional buttons with em_commands.
   These buttons can then also be used for directories that are not defined in an Auto Switch Mode!
   Example: https://ghisler.ch/board/viewtopic.php?p=367741#p367741 Multiple Ignore list activations, Desktop, Filters, ...   

3. If there is *no parent folder* (e.g. for path \\Desktop\) and 
   after clicking on a button (cm_OpenDesktop) the Auto Switch Mode is NOT executed,
   then there is e.g. the following possibility to start the Auto Switch Mode:

   In Auto Switch Mode, change the *first rule* to a path with a subdirectory, so that you can change from this directory 
   to the parent directory, e.g. %$DESKTOP%\ (this corresponds to: C:\Users\User\Desktop\).
   After switching back to the subdirectory "\Desktop\" the Auto Switch Mode is started and 
   then the *second rule* is also executed (\\Desktop\), for whose directory there is no parent folder.

1.-3. Example: https://ghisler.ch/board/viewtopic.php?p=367741#p367741 Multiple Ignore list activations, Desktop, Filters,...
   
4. Possibly the Twinkey plugin can interfere with a View Mode and Auto Switch Mode or not allow it to be executed:
   https://ghisler.ch/board/viewtopic.php?p=357230#p357230
   http://www.mgpsoft.net/Downloads/?MD TWinKey.zip

5. See also: https://ghisler.ch/board/viewtopic.php?p=344662#p344662 TC doesn't remember custom column view. (FixEmptyPanel=)
   Are you using automatic view changes? This is triggered when you change directories, but also when you close and re-open 
   Total Commander.
=================================================================================================================================
4. CUSTOM COLUMNS VIEW

Code: Select all

CUSTOM COLUMNS VIEW            Configuration - Options... - Custom columns
---------------------------------------------------------------------------------------------------------------------------------
Total Commander Wiki ........: https://www.ghisler.ch/wiki/index.php?title=Custom_columns
............................): ------------------------------------------------------------------------------------------------
Commands (Selection) .......): cm_SrcCustomViewMenu (=Show - Custom Columns Mode; Right-click on column headers), 
............................): cm_SrcCustomView1 to 9 (271-279); 280-299, 7530-7599 ***), [Option: cm_SrcViewMode0 (default View Mode)];
............................): cm_SrcCustomView1 - 99, cm_LeftCustomView1 - 99, cm_RightCustomView1 - 99 (max. 99 buttons each) ***)
............................): ------------------------------------------------------------------------------------------------	
Command browser ............): Type in: cm_CommandBrowser ... in the TC command line, then press <ENTER> (search internal commands)
............................): => Click on category: Custom column views
............................): ------------------------------------------------------------------------------------------------	
Sorting ....................): https://ghisler.ch/board/viewtopic.php?p=336146#p336146 Notice that sorting by name (1st fixed column) 
............................): in Search List is always done for the FULL PATH, also in Custom View where only the file or folder name
............................): is shown in the Name column - so in custom view sorting by name is not done by the visible names. 
............................): If you want to sort by the visible names you have to make an extra name column and sort by that.
............................): ------------------------------------------------------------------------------------------------	
Limitations ................): [CustomFields] Titles= ... max. 1023 characters possible for titles to Custom columns views.
............................): This corresponds - with good readability - to approx. 50 titles/Custom columns views at present.
............................): cm_SrcCustomViewX-XX, cm_LeftCustomViewX-XX, cm_RightCustomViewX-XX:
............................): - The number is limited to 99. ***) see also point 5.
............................): - The number of buttons is limited to 99 per command. ***) see point 5.
............................): Limit for remaining commands: See CommandBrowser (cm_CommandBrowser)
............................): ------------------------------------------------------------------------------------------------	
Notes ......................): The numbering or sequence can be changed by dragging and dropping of
............................): the saved "Custom columns view" in the settings menu (Configuration... Custom columns).
............................): For already created buttons (e.g. with command: cm_SrcCustomView20) for "Custom columns views",
............................): e.g. for "music" the tooltips have to be adjusted to the correct number(!).
............................): ------------------------------------------------------------------------------------------------	
Calling Custom columns view ): Custom columns view can be called manually as follows, namely
            - manually .....): - via the "Show" menu - "Custom Columns Mode"
............................): - via Command: cm_SrcCustomViewMenu in the TC command line -->
............................):   this corresponds to the menu "Show" - "Custom Columns Mode"
............................): - via Command: cm_SrcCustomViewXX (XX = number of Custom columns view) in the TC command line
............................): - via the context menu by right-clicking on the column header
............................): - by button with command: cm_SrcCustomViewXX (XX = number of Custom columns view)
............................): ------------------------------------------------------------------------------------------------
            - automatically ): This is only possible via a View Mode with integrated Custom columns view
............................): and additionally an Auto Switch Mode (-> Configuration - Auto Switch Mode)
............................): See also Example [below]: https://ghisler.ch/board/viewtopic.php?p=357956#p357956
............................): Using a Custom columns view automatically as the default view (View Mode <Default>)
............................): ------------------------------------------------------------------------------------------------	
            - Important ....): See also ... Limitations, Notes and point 5.!
=================================================================================================================================
5. ***) VIEW MODE + CUSTOM COLUMNS VIEW | BUTTONS | AHK-SKRIPT (CUSTOM COLUMNS VIEW)

Code: Select all

***) VIEW MODE + CUSTOM COLUMNS VIEW | BUTTONS | AHK-SKRIPT (CUSTOM COLUMNS VIEW)

It is to be noted that with the following commands, e.g. if they are to be used with a button, namely
- cm_SrcViewMode1   - 9 (8501-8509); --> up from: cm_SrcViewMode10 ..... (8510 -8749)
- cm_SrcCustomView1 - 9 (271 - 279); --> up from: cm_SrcCustomView10 ... (280 - 299, 7530 - 7599)
these must be recorded in the file TOTALCMD.INC ... ITSELF! ***)

TC only knows the commands, which are in the file TOTALCMD.INC.
After entering these entries appear in the CommandBrowser under: 
- Category: Custom column views and
- Category: View modes

*******************************************************************************************************************
* ATTENTION: Afterwards it is recommended to create a backup of the file TOTALCMD.INC (e.g. TOTALCMD.BACKUP.INC), *
*            because the file TOTALCMD.INC will be overwritten after the next update/upgrade!                     *
*            This also means that in such cases the new TOTALCMD.INC file must be adapted!                        *
* IMPORTANT: After changes in the TOTALCMD.INC file, restart Total Commander!                                     *
*******************************************************************************************************************

Examples of additions to the TOTALCMD.INC file ...... Selection only!
[________View Modes_________]=0		[________Custom column views_________]=0
cm_SrcViewMode10=8510;                  cm_SrcCustomView10=280;
cm_SrcViewMode11=8511;                  ...
...                                     cm_SrcCustomView29=299;  ***)
cm_SrcViewMode249=8749;                 cm_SrcCustomView30=7530;
                                        ...
                                        cm_SrcCustomView99=7599;

***) Attention: After cm_SrcCustomView29=299; ... can or must be continued with cm_SrcCustomView30=7530; if necessary(!) 
     and NOT with: cm_SrcCustomView30=300; ...... otherwise the following errors will occur:
     a) up from cm_SrcCustomView30=300; use of buttons leads to incorrect Custom columns views or
     b) up from cm_SrcCustomView30=300; use of buttons can lead to error messages

***********************************************************************************************************************
Based on that post:  	 https://ghisler.ch/board/viewtopic.php?t=50149  Custom Column views
28.07.09 Added: Increased maximum number of custom column views from 29 to 99. Note that only the first 29 
can be set via cm_SrcCustomView* commands, the additional are accessible via new command ranges 6530-, 7030- and 7530-.
-----------------------------------------------------------------------------------------------------------------------
these variants can also be used for buttons to Custom columns views:

- cm_SrcCustomView1=7501;   Source: Custom columns 1 - and the following
- cm_LeftCustomView1=6501;  Left:   Custom columns 1 - and the following
- cm_RightCustomView1=7001; Right:  Custom columns 1 - and the following

[________Custom column views_________]=0
cm_SrcCustomView1=7501; Source: Custom columns 1
cm_SrcCustomView2=7502; (user defined columns)
cm_SrcCustomView3=7503; etc. until 7599;
cm_SrcCustomView4=7504; 7600-7999 are reserved
cm_SrcCustomView5=7505;
...
cm_SrcCustomView99=7599;
-------------------------------------------------
cm_LeftCustomView1=6501; Left: Custom columns 1
cm_LeftCustomView2=6502; (user defined columns)
cm_LeftCustomView3=6503; etc. until 6599;
cm_LeftCustomView4=6504; 6600 - 6999 are reserved
cm_LeftCustomView5=6505;
...
cm_LeftCustomView99=6599;
-------------------------------------------------
cm_RightCustomView1=7001; Right: Custom columns 1
cm_RightCustomView2=7002; (user defined columns)
cm_RightCustomView3=7003; etc. until 7099;
cm_RightCustomView4=7004; 7100-7499 are reserved
cm_RightCustomView5=7005;
...
cm_RightCustomView99=7099;
-------------------------------------------------
cm_TrgCustomView1  421	 Target: Custom columns 1
...
cm_TrgCustomView9  429	 etc. until 449

Quote: "There is no range for the target" ... i.e.
- cm_TrgCustomView1 - cm_TrgCustomView29 possible,
- cm_TrgCustomView30  and following: not possible!
***********************************************************************************************************************

Limitations:
- View Modes ........: The number is limited to 250.
                       The number of buttons is limited to 250 per command.

- Custom column views: cm_SrcCustomViewX-XX, cm_LeftCustomViewX-XX, cm_RightCustomViewX-XX:
    		       - The number is limited to 99. *)
    		       - The number of buttons is limited to 99 per command. *)
    		       Limit for remaining commands: See CommandBrowser (cm_CommandBrowser)

  Discussions .......: https://ghisler.ch/board/viewtopic.php?t=50147
  Forum post request : https://ghisler.ch/board/viewtopic.php?t=48095 (in the German forum)
  
  *) [CustomFields] Titles= ... max. 1023 characters possible for titles to Custom columns views.
     This corresponds - with good readability - to approx. 50 titles/Custom columns views at present.
     
     Theoretically more than approx. 50 Custom columns views can be defined - quote: Email from 14.8.2019/Mr. Ghisler:
     "The limitation is made by the text field - with shorter names more entries have space."
     
     Examples of constellations where the maximum of 1023 characters for titles (with good readability) 
     was already used with 50 Custom columns views:
     - Configuration - Custom columns: 52 Path Access date --> title is no longer displayed (after clicking on "Edit".)
     - Context menu -> The Custom columns view nos. + titles are no longer displayed
     - Button -------> cm_SrcCustomView51 ... Custom columns view No. 51 executable!
     - Button -------> cm_SrcCustomView52 ... Custom columns view No. 52 executable! ... and up to no. 99!
       Tip: In the tooltip for the button, enter what the button should be used for, e.g. "cm_SrcCustomView52|52 Path Access date".
     
     Theoretically, the limit of currently max. 1023 characters for titles could be increased, but this would result in 
     compatibility problems with older Total Commander versions (analogous quote: Email 14.08.2019/Mr. Ghisler)
     
*********************************************************************************************************************************
Example:
"Custom columns view with use of an AHK script"
https://ghisler.ch/board/viewtopic.php?p=349245#p349245 
Is there a way to display files count as column?
=================================================================================================================================
6. VIEW MODE + CUSTOM COLUMNS VIEW <DEFAULT> - BUTTONS

Code: Select all

VIEW MODE + CUSTOM COLUMNS VIEW <DEFAULT> - BUTTONS
Button to set the view to <Default> - recommended!
---------------------------------------------------
TOTALCMD#BAR#DATA
cm_SrcViewMode0

wcmicons.dll,86
View Mode + Custom columns view: <DEFAULT>|Command: cm_SrcViewMode0 sets the view to View Mode <Default>,|both for the View Mode and for a Custom columns view!


8500
--------------------------------------------------
You can use the code to create a button as follows:
1. Simply mark the code (between "---")
2. CTRL + C  (Copy to clipboard)
3. Make a right click on your buttonbar on an empty space [e.g. after the last button or between the buttons] 
4. Click on menu item "Paste"

---------------------------------------------------------------------------------------------------------------------------------
Functions of buttons can be extended with composite commands - e.g. with Command:
1. cm_SrcViewMode0,em_Delete-all-filters,cm_50Percent
2. cm_SrcActivateTab1,cm_TrgActivateTab1,cm_FocusLeft,cm_RereadSource
3. cm_50Percent,cm_FocusLeft,cm_SrcViewMode0,em_Delete-all-filters,cm_FocusRight,cm_SrcViewMode0,em_Delete-all-filters,cm_SrcActivateTab1,cm_TrgActivateTab1,cm_FocusLeft,cm_RereadSource

em_Delete-all-filters	- Command: cd *.*
=================================================================================================================================
7. HOW LONG DOES A VIEW MODE OR A CUSTOM COLUMNS VIEW REMAIN VISIBLE?

Code: Select all

How long does a View Mode or a Custom columns view remain visible?

Usually, a "View Mode" or a "Custom columns view" will remain in place until you switch to another view, namely 

a) manually, e.g. with a self-defined button with command: cm_SrcViewModeList NameOfYourViewMode
   ......... OR button with command: cm_SrcCustomViewX (X=No. of your "Custom columns view")
   OR
   e.g. by changing an existing View Mode, e.g. with the shortcut CTRL+Shift+F2 = Comments view ON ...
   https://ghisler.ch/board/viewtopic.php?f=2&t=53547 statement by Mr Ghisler: "If you change the View Mode manually, 
   Auto Switch Mode will be disabled until you enter an area with a different mode."
   
b) automatically, in the case of a View Mode, if a combination with an "Auto Switch Mode"-rule exists AND
   "Automatically switch view mode on directory change:" is checked.

--------
Exceptional case (due to an input error!)

c) automatically, in the case of an "Auto Switch Mode", if "Automatically switch view mode on directory change:" is checked,
   even though no "Auto Switch Mode" rule has been defined.
   https://ghisler.ch/board/viewtopic.php?p=339826#p339826 
   ..."Could be nice that when you create a View Mode (colors, icons, ...) for one directory, there were a check option 
       to apply this view to any of its subdirectories..." 
   ..."I had not any "Auto Switch Mode" but I had checked the "Automatically switch View Mode on directory change". ..."
   ..."I have removed the check and the "View Mode" is preserved in subdirectories too. ...)
   Other example:
   "View Mode" - "View_BRIEF_Name" (Columns view: Brief, sort order: Name) is ALWAYS kept
   although no "Auto Switch Mode" rule has been defined, but in "Auto Switch Mode"
   "Automatically switch view mode on directory change:" is checked.
--------   
=================================================================================================================================
Examples:
viewtopic.php?t=49681
Can I create a view mode that sorts by Dimensions
Custom columns view | View Mode | Auto Switch Mode | Sorting | Plugins
(Attention: View Mode - Auto run commands: Should be blank!)

viewtopic.php?p=357956#p357956
FileTime Delta (Content Plugin) disscussion thread
Using a Custom columns view (with self-defined column header)
automatically as the default view (View Mode <Default>).
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
See also:
https://www.ghisler.ch/wiki/index.php/Main_Page ............................ Total Commander Wiki
viewtopic.php?f=3&t=52425 ......................... Stefan - Inofficial FAQs / Summary - Tips & Tricks collection
viewtopic.php?f=3&t=40954 ......................... Stefan - Generic how-to's collection
http://utceditors.totalcmd.net/tc_tools/ultra_tc_editors/df/english.xml  Ultra TC Editors - Total Commander Configuration,
[Ctrl + F: Search page... -> custom columns | view mode | auto switch mode | etc.]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Overview (almost the same - in German language):
viewtopic.php?f=2&t=53558
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Tip: If necessary, it is advisable to copy the topics into a text file to make them even easier to read
[and to use a text editor that supports outlining and bookmarks, e.g. EmEditor;
<for automatic creation of outline views for sections in TOTALCMD.INC and wincmd.ini also very well suited!>].
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Post Reply