Ticket #3949 (new enhancement)

Opened 2 weeks ago

Last modified 10 days ago

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:1 Changed 2 weeks ago by andrew_b

  • Component changed from mc-core to mcedit

comment:2 Changed 11 days ago by andrew_b

  • Alt-shift-h or Atl-H - list of recent files edited. When file is selected, switch to new tab and open that file.

Related to #2733, #280.

  • Alt-h - list of recent strings typed into text from undo/redo history.

I don't quite understand what you mean.
Unod/redo operates with characters, not strings.

comment:3 Changed 11 days 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 10 days 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. :-/

Note: See TracTickets for help on using tickets.