Ticket #3949 (new enhancement)
Add support for some popular hot keys in mc to mcedit too
Reported by: | vlisivka | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Please, add reaction to following keybindings to mcedit:
- Ctrl-\ - file hotlist, list of hot files saved by user. When file is selected, swith to new editor tab and open that file.
- Alt-shift-h or Atl-H - list of recent files edited. When file is selected, switch to new tab and open that file.
- Alt-h - list of recent strings typed into text from undo/redo history.
Ergonomics of text editor is very important, so these small changes can lead to huge improvement in usablity because a) keybindings are same, no need to learn new keybindings, b) interface is same, c) switching between same files and typing of same text are frequent operations.
Change History
comment:3 Changed 6 years ago by vlisivka
I don't quite understand what you mean.
Unod/redo operates with characters, not strings.
It looks hard to implement then.
Maybe we should show list of recent commands, like in mc, to paste into text. When writing shell scripts, I need to copy paste commands from shell history into script text very often. Maybe other users have this need too.
As alternative, we may present user with history of mcedit internal clipboard (ctrl-f/shift-f5), like a clipboard manager does. Ten recent clips will be very handy, because it will allow to copy multiple snippets at once and then paste them as necessary in required positions, but it will be even more handy with dedicated keys for snippet 0,1,2... .
comment:4 Changed 6 years ago by vlisivka
#2733 and #280 are different in idea, because their goal is to add functionality to *mc*, to be able to see edited files in Alt-H droplist and view or edit them with F3/F4, while goal of this ticket is to copy same functionality to *mcedit*.
BTW: I cannot make patch from #280 to work, because history doesn't show at all. I have no idea how to debug mc or print a message to a log. :-/
comment:5 Changed 4 months ago by zaytsev
From the mailing list:
On Tue, 19 Sep 2023, mi via mc wrote:
I was thinking of something like Shift-Page down to select at least a full page of something ... but
Apparently, it's only possible in the editor :-(
But I'm not sure how MarkLeft and MarkRight are working. Maybe you can try to bind them and see what happens. I guess they go to the top and bottom accordingly, but not sure if they extend to the next page.
Maybe we should add
MarkPageUp = shift-pgup
MarkPageDown = shift-pgdn
If I'm not mistaken, FAR used to have something like this.