Skip to content
ZhiCheng Lee edited this page May 30, 2020 · 1 revision

PS: dired-sort-* trigger error: Wrong type argument: commandp, dired-sort-name

hydra-ranger

(defhydra hydra-ranger (:color pink)
  "
C-current, M-marked, F-flagged file/dir(s), R-reverse, T-toggle

^mark|unmark^         ^copy|paste^                ^sort^                  ^toggle|open^             ^others^               ^shell^
^^^^^^^^------------------------------------------------------------------------------------------------------------------------------
[_;d_]: make flag     [_yy_]: mark copy           [_on_]: name            [_zd_]: first/last        [_B_]: show bookmarks  [_;&_]: async shell CMD
[_;x_]: flag delete   [_dd_]: mark cut            [_oN_]: name            [_zp_]: details           [_f_]: travel          [_!_]: run shell CMD
[_;m_]: mark          [_pp_]: paste               [_oe_]: extension       [_zp_]: dired<->ranger    [_R_]: rename(C|M)     [_S_]: eshell popup
[_;u_]: unmark        [_po_]: paste&overwrite     [_oE_]: extension       [_zh_]: hidden files      [_D_]: delete(C|M)     ^ ^
[_;U_]: unmark All    [_p?_]: show copy contents  [_os_]: size            [_zf_]: file size         [_g_]: go              ^ ^
[_;g_]: revert mark   [_pl_]: symlink             [_oS_]: size            [_zz_]: history           [_/_]: search          ^ ^
[_;k_]: kill lines    [_pL_]: relative symlink    [_ot_]: modified time   [_ws_]: vertically        [_}_]: find file       ^ ^
[_du_]: selected      [_yp_]: absolute path       [_oT_]: modified time   [_wv_]: horizontally      [_C-r_]: refresh       ^ ^
[_;C_]: copy(C|M)     [_yd_]: directory path      [_oc_]: create time     [_wj_]: other window      [_+_]: create dir      ^ ^
[_`_] : goto mark     [_yn_]: filename            [_oC_]: create time     [_we_]: external app      [_=_]: differ          ^ ^
[_t_] : toggle mark   ^ ^                         ^ ^                     ^ ^                       [_q_]: quit            ^ ^
[_v_] : toggle marks  ^ ^                         ^ ^                     ^ ^                       ^ ^                    ^ ^
[_\"_]: mark(regexp)  ^ ^                         ^ ^                     ^ ^                       ^ ^                    ^ ^
[_TAB_]: mark         ^ ^                         ^ ^                     ^ ^                       ^ ^                    ^ ^
"
  ("}" ranger-find-file)
  ("ws" ranger-open-file-vertically)
  ("wv" ranger-open-file-horizontally)
  ("wj" ranger-open-file-other-window)
  ("we" ranger-open-in-external-app)
  ("TAB" ranger-mark)
  (";C" ranger-copy-current-dir-path)
  (";d" dired-flag-file-deletion)
  (";x" dired-do-flagged-delete)
  (";m" ranger-create-mark)
  (";u" dired-unmark)
  (";U" dired-unmark-all-marks)
  (";&" async-shell-command)
  (";+" mkdir)
  ("+" mkdir)
  (";=" dired-diff)
  ("=" dired-diff)
  (";g" nil :color red)
  (";k" nil :color red)
  ("du" ranger-show-size)
  ("C-r" ranger-refresh)
  ("B" ranger-show-bookmarks)
  ("R" dired-do-rename)
  ("D" dired-do-delete)
  ("t" ranger-toggle-mark)
  ("f" ranger-travel)
  ("v" dired-toggle-marks)
  ("\"" dired-mark-files-regexp)
  ("!" dired-do-shell-command)
  ("S" ranger-pop-eshell)
  ("/" ranger-search)
  ("g" ranger-go)
  ("on" dired-sort-name)
  ("oN" dired-sort-name)
  ("os" dired-sort-size)
  ("oS" dired-sort-size)
  ("oe" dired-sort-extension)
  ("oE" dired-sort-extension)
  ("ot" dired-sort-utime)
  ("oT" dired-sort-utime)
  ("oc" dired-sort-time)
  ("oC" dired-sort-time)
  ("zd" ranger-toggle-dir-first)
  ("zp" ranger-to-dired)
  ("zP" ranger-to-dired)
  ("zf" ranger-toggle-scale-images)
  ("zh" ranger-toggle-dotfiles)
  ("zz" ranger-show-history)
  ("yy" ranger-copy)
  ("yp" ranger-copy-absolute-file-paths)
  ("yd" ranger-copy-current-dir-path)
  ("yn" ranger-copy-filename)
  ("dd" ranger-cut)
  ("pp" ranger-paste)
  ("po" ranger-paste-over)
  ("p?" ranger-show-copy-contents)
  ("pl" ranger-paste-as-symlink)
  ("pL" ranger-paste-as-relative-symlink)
  ("`" ranger-goto-mark)
  ("q" nil :color red)
  )
Clone this wiki locally