I wonder, would it be possible to add support for File History (ALT+F11) and Folder History (ALT+F12) to the Destination editbox in Copy and Move dialogs? That would make it far easier to perform a repeated copy or move to the same destination folder from different source folders.
And it could be even more powerful if the editbox's history could be made searchable. Currently, the search is based on the beginning of the filename, but that makes it difficult to navigate complex paths; if there was a hotkey to make a fulltext search of the history, that problem would be greatly alleviated and I expect many other dialogs would benefit from this feature as well.
Incidentally, now that I am thinking about it, the Destination editbox of the Copy/Move dialog could also support autocompletion similar to that of the FAR's command line...
File and folder history in Copy/Move dialogs
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
File and folder history in Copy/Move dialogs
First of all, the destination edit fields have histories of previously accepted values (if you have the ), and these can be filtered incrementally upon pressing
Also, the field does , you may just need to tweak its .
CtrlAltF
(or by using e.g. the SmartMenuFilter script); and so do the built-in Folders and View/Edit histories. Next, despite the built-in histories are not accessible from dialogs, there are superior history plugins (AltHistory, MoreHistory, LuaFAR History), and at least AltHistory is callable from dialogs and the selected item can be inserted into the edit field.Also, the field does , you may just need to tweak its .
Фар есть инструмент, а не нянька. © 2009 DrKnS
File and folder history in Copy/Move dialogs
Thank you, HaRT.
* Added after more testing: CtrlAltF also works, but only if I open the history with CtrlDown. Not if I open it just by typing something.
Yes, I know and use that.
That does not work for me. I may be missing a necessary first step, but all CtrlAltF does for me is close the history list. The help does mention it under "Menu control commands", along with RAlt which does indeed work for me (although it is a bit clunky, I have to open the history using CtrlDown, then activate the filter using RAlt and then I can search all of the history. I will need to figure out a script that will do all of that using just one hotkey.and these can be filtered incrementally upon pressingCtrlAltF
* Added after more testing: CtrlAltF also works, but only if I open the history with CtrlDown. Not if I open it just by typing something.
I will try that out.(or by using e.g. the SmartMenuFilter script);
I used to use AltHistory, but it did have some side-effects for me which made me uninstall it. I don't know what they were anymore, possibly the sheer amount of data they save. Anyway, I think it would be nice if FAR could use its own histories in its dialogs. Guess that's something to do for my personalized build then.there are superior history plugins (AltHistory, MoreHistory, LuaFAR History), and at least AltHistory is callable from dialogs and the selected item can be inserted into the edit field.
Yes, it does. I got confused by the fact that the true history items were shown first and I never scrolled to the autocomplete ones.Also, the field does support autocompletion, you may just need to tweak its AutoComplete settings (please see its Help for additional hints).
Last edited by pepak on Sun 10 Jan, 2021 19:42, edited 1 time in total.
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
File and folder history in Copy/Move dialogs
If/when you happen to implement that, maybe it's worth a pull request to the main Far repo…
Фар есть инструмент, а не нянька. © 2009 DrKnS
File and folder history in Copy/Move dialogs
I think it would be more usable, if the auto-complete history in dialog elements will start with "any middle part" (*<your-typing>*), and not with "beginning part" (<your-typing>*)
together with that, i think all the subject of autocompleting/history should be redisigned, to the direction of supporting "globbing" with wildcards, or/and as FZF and other many tools demonstrates, kind of "bring me most similar".
together with that, i think all the subject of autocompleting/history should be redisigned, to the direction of supporting "globbing" with wildcards, or/and as FZF and other many tools demonstrates, kind of "bring me most similar".
Last edited by citRiks on Mon 11 Jan, 2021 15:38, edited 2 times in total.
File and folder history in Copy/Move dialogs
I didn't do much testing, but it seems to work. The first patch isn't absolutely necessary, but of course if it is skipped, then the second one needs to be slightly modified because it makes use of the skipped parameter.
Applicable using git apply patch-file.patch.
Applicable using git apply patch-file.patch.
- Attachments
-
- 0002-Select-copy-move-destination-from-histories.patch.zip
- Select copy/move destination from histories
- (1.47 KiB) Downloaded 123 times
-
- 0001-Automatically-switch-History-menus-into-the-filtered.patch.zip
- Automatically switch History menus into the filtered mode
- (2.46 KiB) Downloaded 114 times
Last edited by pepak on Sun 17 Jan, 2021 17:45, edited 1 time in total.