elfmz / far2l

Linux port of FAR v2
GNU General Public License v2.0
1.8k stars 173 forks source link

"Change drive" window favorites suggestions #920

Open singalen opened 3 years ago

singalen commented 3 years ago

Favorites are a great feature, but it took me some time to figure out the format. Now, I have a few usability suggestions.

elfmz commented 3 years ago

First, little clarifications, to make things more tangled, There're two semi-duplicating features: 1 ~/.config/far2l/favorites that you're reffering 2 Folder Bookmarks that can be inserted by pressing Ins key file in Alt+F1 menu OR redacted from menu Commands/Folder Bookmarks. In original FAR they where called Folder Shortcuts and didnt appear in Alt+F.. menu and where accessible essentially only from hotkeys, for those who know. Now they're in Alt+F.. menus.

elfmz commented 3 years ago

/ Add a separator after them,/ In file-based favorites, you can add (any count of) your own separators, separator entry should look like "-Name". Like - Favorites

singalen commented 3 years ago

Wow. Is it documented? I could find it. Still not sure in what format do I add a NetRocks favorite.

Then, maybe, folder shortcuts and favorites should be the same thing?

singalen commented 3 years ago

I tried adding - Favorites and -Favorites lines (with and without space), it is displayed as a menu item and not as a separator. I looked into Mounts::Enum::Enum(), and I cannot see a code that does anything about separators.

elfmz commented 3 years ago

did you put tab between dash and word? sorry, but github somehow eaten that fact from my prev message

elfmz commented 3 years ago

Regarding unification - i initially planned to be favorites file as feature by eventuall came to conclusion to reuse that Shortcuts (now Bookmarks) feature will be more consistent and functional. And favorites file left just for those who already started to use it and may be for somebody it more convenient..

unxed commented 3 years ago

and for NetRocks connection to sftp://example.com.

NetRocks connection can be added to bookmarks/favourites? How?

elfmz commented 3 years ago

again, two options: 1 via semi-documented ~/.config/far2l/favorites 2 - navigate wherever you want, press Alt+F1, Press Ins, Select position in list and press Ins again. Tada! From this moment you can quickly navigate to that location from Alt+F1/F2 menu and by Ctrl+Alt+DIGIT hotkey you selected

unxed commented 3 years ago

wow, Ins way worked good! btw, I have not managed to make same netrocks path work from favorites. only local paths do work

can you please add bookmark shortcuts by letters, not only just by numbers?

elfmz commented 3 years ago

wow, Ins way worked good! btw, I have not managed to make same netrocks path work from favorites. only local paths do work

Likely you didnt prefix netrocks pathes with net: prefix (it was added recently)

can you please add bookmark shortcuts by letters, not only just by numbers?

The idea that numbers are same as Ctrl+Alt+# hotkeys, so thus you have: 2-in-1 menu access plus global hotkeys hint. Its also now possible to create bookmark that is not bound to digital shortcut - by putting it to the bottom of list. In this case it will not be accessible by Ctrl+Alt+#. Potentially its possible to make such entries have literal shortcuts in Alt+F1/2 menus, and even binding Ctrl+Alt+LETTER global hotkeys also possible, but need to ensure it will not override some existing shortcuts..

unxed commented 3 years ago

Potentially its possible to make such entries have literal shortcuts in Alt+F1/2 menus

That would be really helpful, thanks!