Have a sticky property for files to list on top

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
rjm
Junior Member
Junior Member
Posts: 4
Joined: 2010-01-23, 20:53 UTC

Have a sticky property for files to list on top

Post 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
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post 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
TC 10.xx / #266191
Win 10 x64
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post 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 ?
#5767 Personal license
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post 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).
Single user license #329241
PowerPro scripts for Total Commander
rjm
Junior Member
Junior Member
Posts: 4
Joined: 2010-01-23, 20:53 UTC

Post 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?
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post 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
TC 10.xx / #266191
Win 10 x64
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post 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
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post 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
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

I just wanted to show the principle of a button.
He could do it with whatever file he likes...
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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!
rjm
Junior Member
Junior Member
Posts: 4
Joined: 2010-01-23, 20:53 UTC

Post by *rjm »

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
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
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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. :wink:
(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)
rjm
Junior Member
Junior Member
Posts: 4
Joined: 2010-01-23, 20:53 UTC

Post 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.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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).
Post Reply