aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-23 03:38:47 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-23 03:38:47 +0200
commit61be9528e4b3eeb0e2366f386df1897709b21394 (patch)
tree5a24964592c6d2ea889bda3a8ea68e6689c2ff74
parent231348597066a5c70a89c70410371d1481fb3ae6 (diff)
downloadsdn-61be9528e4b3eeb0e2366f386df1897709b21394.tar.gz
sdn-61be9528e4b3eeb0e2366f386df1897709b21394.tar.xz
sdn-61be9528e4b3eeb0e2366f386df1897709b21394.zip
Bind M-Up to the "parent" action
Taken from Windows Explorer, which previously used Backspace. We might want to use h/l for parent/choose by default.
-rw-r--r--sdn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdn.cpp b/sdn.cpp
index caca370..1ad601a 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -442,7 +442,8 @@ static map<wint_t, action> g_normal_actions {
{'H', ACTION_HIGH}, {'M', ACTION_MIDDLE}, {'L', ACTION_LOW},
{KEY (PPAGE), ACTION_PAGE_PREVIOUS}, {KEY (NPAGE), ACTION_PAGE_NEXT},
{CTRL ('Y'), ACTION_SCROLL_UP}, {CTRL ('E'), ACTION_SCROLL_DOWN},
- {'c', ACTION_CHDIR}, {'&', ACTION_GO_START}, {'~', ACTION_GO_HOME},
+ {'c', ACTION_CHDIR}, {ALT | KEY (UP), ACTION_PARENT},
+ {'&', ACTION_GO_START}, {'~', ACTION_GO_HOME},
{'/', ACTION_SEARCH}, {'s', ACTION_SEARCH},
{ALT | 'e', ACTION_RENAME_PREFILL}, {'e', ACTION_RENAME},
{'t', ACTION_TOGGLE_FULL}, {ALT | 't', ACTION_TOGGLE_FULL},