Page 1 of 1
Have a sticky property for files to list on top
Posted: 2010-01-23, 21:03 UTC
by rjm
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
Posted: 2010-01-23, 21:57 UTC
by Peter
There is a feature called "comments" for files and folders.
Look at the help for "comment" - "descript.ion" - "files.bbs" -
or press "Ctrl+Shift+z" and use it..
Peter
Posted: 2010-01-24, 19:14 UTC
by sqa_wizard
There is a feature called "comments" for files and folders.

I'm just curious: How do you manage an entry to stay on top of your file list (for each sort criteria) by using
comments ?
Posted: 2010-01-24, 19:22 UTC
by Vochomurka
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).
Posted: 2010-01-24, 20:31 UTC
by rjm
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?
Posted: 2010-01-24, 21:34 UTC
by Peter
sqa_wizard wrote:I'm just curious: How do you manage an entry to stay on top of your file list (for each sort criteria) by using comments ?
Of course not - but you can use "comments". For "Sticky features" take a look at plugin "Twinkey".
Peter
Posted: 2010-01-24, 21:50 UTC
by Samuel
Why not create a "readme.txt" (or "readme.doc" etc.) in each directory.
Then create a button like:
Code: Select all
TOTALCMD#BAR#DATA
notepad
"%Preadme.txt"
notepad.exe
"%P"
0
-1
Posted: 2010-01-24, 22:10 UTC
by Vochomurka
Why not use "descript.ion" instead of "readme.txt"? So it can be edited directly (Ctrl+Z) or with a button like yours
Posted: 2010-01-24, 22:19 UTC
by Samuel
I just wanted to show the principle of a button.
He could do it with whatever file he likes...
Posted: 2010-01-25, 05:42 UTC
by MVV
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!
Posted: 2010-01-25, 07:20 UTC
by rjm
Samuel wrote:Why not create a "readme.txt" (or "readme.doc" etc.) in each directory.
Then create a button like:
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?
Thanks - Rob
Posted: 2010-01-25, 07:55 UTC
by MVV
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
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.

(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)
Posted: 2010-01-25, 08:27 UTC
by rjm
Thanks, MVV: cool feature, to "insert" such "scripts" per button bar context menu!
Well its works - moreover I have duplicated this as a starter menu entry, since this supports the definition of a key shortcut.
Posted: 2010-01-25, 09:21 UTC
by MVV
rjm wrote:I have duplicated this as a starter menu entry, since this supports the definition of a key shortcut.
If you use shortcut for calling start menu item, do not forget that if item's index will change, TC will call wrong item.
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).