Ticket #212 (assigned enhancement) — at Version 19

Opened 15 years ago

Last modified 4 years ago

User defined Hotkeys like a VIM

Reported by: angel_il Owned by: angel_il
Priority: major Milestone: 4.8.23
Component: mc-core Version: 4.7.3
Keywords: hotkeys shortcuts Cc: egmont, xaoxx@…
Blocked By: Blocking: #244, #397, #1390
Branch state: merged Votes for changeset:

Description (last modified by angel_il) (diff)

I've started with rework hotkeys engine.
Target: do this like in a VIM :), with user define hotkeys.

Change History

comment:1 Changed 15 years ago by angel_il

  • Owner set to angel_il
  • Status changed from new to assigned

Changed 15 years ago by angel_il

comment:2 Changed 15 years ago by winnie

  • Blocking 195 added

(In #195) Please have a look on #212. This is about configurable shortcuts in general.

comment:3 Changed 15 years ago by iNode

  • Blocking 21 added

(In #21) Double for #195. Also blocked by #212.

comment:4 Changed 15 years ago by iNode

  • Blocking 21 removed

(In #21) I checked it in my environment.

All work in mc builded with ncursesw, so it's slang bug.

Please, write bugreport to slang developers or your distro maintainers.

comment:5 Changed 15 years ago by angel_il

  • Version changed from 4.6.1 to master
  • severity set to no branch
  • Milestone changed from 4.7 to 4.7.0-pre2

comment:6 follow-up: ↓ 8 Changed 15 years ago by angel_il

branch: 212_redefine_hotkeys

for test only

for redefine hotkeys
put in

/usr/share/mc/mc.keymap

[editor]
XStore = ctrl g
XPaste = ctrl v
XCut = ctrl x
Delete-Line = ctrl y

[main]
FindCmd = alt f7
ViewOtherCmd = ctrl o

[panel]
PanelStartSearch = ctrl s
PanelMoveDown = down
PanelMoveUp = up
PanelMoveLeft = left
PanelMoveRight = right
PanelPrevPage = pgup
PanelNextPage = pgdn
PanelDoEnter = enter

comment:7 follow-up: ↓ 9 Changed 15 years ago by angel_il

  • severity changed from no branch to on review

changeset: a4adb6a08adef20c2734ea64c0e35783576e20a7

Wow it worked!!! :)
Welcome review :)

comment:8 in reply to: ↑ 6 ; follow-up: ↓ 10 Changed 15 years ago by iNode

Replying to angel_il:

branch: 212_redefine_hotkeys

for test only

for redefine hotkeys
put in

/usr/share/mc/mc.keymap

path should be etc/mc/mc.keymap

comment:9 in reply to: ↑ 7 Changed 15 years ago by iNode

  • severity changed from on review to on rework

Replying to angel_il:

changeset: a4adb6a08adef20c2734ea64c0e35783576e20a7

Wow it worked!!! :)
Welcome review :)

Yes. Good work, it's work for me too!

But most of users/testers want working keybindings.

I think we should not break current keybindings and
default mc.keymap (at least as example, if without
mc.keymap we has default bindings, but it seems not)
should be also added in context of this ticket.

comment:10 in reply to: ↑ 8 Changed 15 years ago by iNode

Replying to iNode:

path should be etc/mc/mc.keymap

ok, mc search it in the order ~/.mc, /etc/mc/, $PREFIX/share/mc,
and I has some mc.keymap. So, angel_il, you are right.

comment:11 Changed 15 years ago by angel_il

  • Milestone changed from 4.7.0-pre2 to 4.7.0-pre3

comment:12 Changed 15 years ago by slavazanko

  • Blocking 244 added

comment:13 Changed 15 years ago by slavazanko

  • Blocking 195 removed

Changed 15 years ago by ierton

allows user to type binded chars in quicksearch mode

comment:14 Changed 15 years ago by ierton

Hi! i am searching for a way to add vim-bindings to mc. i've made some testing of your branch with profile like this:

[panel]
PanelStartSearch=/
PanelMoveDown=j
PanelMoveUp=k
PanelMoveLeft=h
PanelMoveRight=l

and here is the problem:
in qick-search mode (when i type '/') it is impossible to type binded letters (in my case - 'j' 'k' 'h' 'l'). I've attached patch to solve the problem. Check it please! Thank you.

comment:15 Changed 15 years ago by angel_il

  • severity changed from on rework to on review

comment:16 Changed 15 years ago by iNode

Please don't forget to provide link to branch on review.

comment:17 Changed 15 years ago by slavazanko

  • Blocking 1390 added

(In #1390) Just await for complete of #212

I hope, this help to you.

comment:18 Changed 15 years ago by slavazanko

  • Blocking 397 added

(In #397) > It's a semi-solution. In addition to mouse, the shortcut should be provided.

In this case this branch wil continue to develop after megre #212 into master.

comment:19 Changed 15 years ago by angel_il

  • Description modified (diff)
  • Summary changed from User defined Hotkeys like a FAR to User defined Hotkeys like a VIM
Note: See TracTickets for help on using tickets.