Ticket #212 (assigned enhancement) — at Version 19
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 16 years ago by angel_il
- Owner set to angel_il
- Status changed from new to assigned
Changed 16 years ago by angel_il
- Attachment 0001-add-user-defined-hotkeys-support-in-panel-too.patch added
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.
Changed 15 years ago by ierton
- Attachment 0001-Added-keycode-checking-in-quicksearch-mode.patch added
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: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
comment:18 Changed 15 years ago by slavazanko
- Blocking 397 added
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