Have a sticky property for files to list on top
Moderators: Hacker, petermad, Stefan2, white
Have a sticky property for files to list on top
Sometimes it happens that I forget some important characteristics about the contents of a directory. A readme file which might contain notes about this directory may get anywhere toward the bottom of the file list, so it gets quickly out of attention. I was used to rename them as _readme.txt, but this does not help with date sorting (which is my mostly used sorting).
Hence the idea to add a facility to have files with certain naming pattern assigned a sticky feature. At best this feature is assigned within the options dialog for colours with file patterns. This will give the freedom to also add a colour to sticky files, or e.g. to make link entries also sticky on top of the file list, which is handy, too.
-Rob
Hence the idea to add a facility to have files with certain naming pattern assigned a sticky feature. At best this feature is assigned within the options dialog for colours with file patterns. This will give the freedom to also add a colour to sticky files, or e.g. to make link entries also sticky on top of the file list, which is handy, too.
-Rob
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Easy
If somebody often sorts files by date (from newest to oldest), it's reasonable to set the date of descript.ion file to, say, year 2100. In this case it will be always the topmost (of course, till you change its contents. But you can write a script to set its date to 2100 back).

Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
I know about the comment facility.
The idea with "date forwarding" is helpful. I'll apply this on my readme for directory comments. Temporarily I'd change the date each time again as I'm updating the file contents.
BTW: for me directory comments is more valueable than file comments, because it provides a simple overview.
After all I think that adding a sticky feature along with the colouring features should be quite simple, and hence, why not implement it?
The idea with "date forwarding" is helpful. I'll apply this on my readme for directory comments. Temporarily I'd change the date each time again as I'm updating the file contents.
BTW: for me directory comments is more valueable than file comments, because it provides a simple overview.
After all I think that adding a sticky feature along with the colouring features should be quite simple, and hence, why not implement it?
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
Why not create a "readme.txt" (or "readme.doc" etc.) in each directory.
Then create a button like:
Then create a button like:
Code: Select all
TOTALCMD#BAR#DATA
notepad
"%Preadme.txt"
notepad.exe
"%P"
0
-1
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Why not use "descript.ion" instead of "readme.txt"? So it can be edited directly (Ctrl+Z) or with a button like yours
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
I agree that topic starter may choose any filename for such functions and add a button onto a buttonbar (or in dir hotlist, or assign a hotkey) to open this file from current directory. It is may be readme.txt, descript.ion or any other filename. And all this is available just now - ready for using!
This looks interesting. But I'm sorry to ask about this: It looks like a script. But button bar "Add" only shows some "simple" entry fields, or am I missing another capability?Samuel wrote:Why not create a "readme.txt" (or "readme.doc" etc.) in each directory.
Then create a button like:Code: Select all
TOTALCMD#BAR#DATA ... -1
Thanks - Rob
If you copy such "script" with "TOTALCMD#BAR#DATA" as first line, TC will treat it as copied button bar button and will allow to 'paste' it onto free button bar space.rjm wrote:It looks like a script. But button bar "Add" only shows some "simple" entry fields, or am I missing another capability?
Thanks - Rob

(also you may copy/cut your button bar buttons and paste them onto another button bar or to share them using context menu - and TC will place similar text to clipboard)
If you use shortcut for calling start menu item, do not forget that if item's index will change, TC will call wrong item.rjm wrote:I have duplicated this as a starter menu entry, since this supports the definition of a key shortcut.
So better way is to create custom user-command (em_command, commands defined in usercmd.ini) - you may assign hotkeys to such commands. To create user-command you may use Command Browser (you see it when choose internal command for button bar, also you may open it using command cm_CommandBrowser).