Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

682 lines
21 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # default {{{ #
  2. # ===================================================================
  3. # This file contains the default startup commands for ranger.
  4. # To change them, it is recommended to create the file
  5. # ~/.config/ranger/rc.conf and add your custom commands there.
  6. #
  7. # If you copy this whole file there, you may want to set the environment
  8. # variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
  9. #
  10. # The purpose of this file is mainly to define keybindings and settings.
  11. # For running more complex python code, please create a plugin in "plugins/" or
  12. # a command in "commands.py".
  13. #
  14. # Each line is a command that will be run before the user interface
  15. # is initialized. As a result, you can not use commands which rely
  16. # on the UI such as :delete or :mark.
  17. # ===================================================================
  18. # ===================================================================
  19. # == Options
  20. # ===================================================================
  21. # Which viewmode should be used? Possible values are:
  22. # miller: Use miller columns which show multiple levels of the hierarchy
  23. # multipane: Midnight-commander like multipane view showing all tabs next
  24. # to each other
  25. set viewmode miller
  26. #set viewmode multipane
  27. # How many columns are there, and what are their relative widths?
  28. set column_ratios 1,3,4
  29. # Which files should be hidden? (regular expression)
  30. set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
  31. # Show hidden files? You can toggle this by typing 'zh'
  32. set show_hidden true
  33. # Ask for a confirmation when running the "delete" command?
  34. # Valid values are "always", "never", "multiple" (default)
  35. # With "multiple", ranger will ask only if you delete multiple files at once.
  36. set confirm_on_delete multiple
  37. # Use non-default path for file preview script?
  38. # ranger ships with scope.sh, a script that calls external programs (see
  39. # README.md for dependencies) to preview images, archives, etc.
  40. set preview_script ~/.config/ranger/scope.sh
  41. # Use the external preview script or display simple plain text or image previews?
  42. set use_preview_script true
  43. # Automatically count files in the directory, even before entering them?
  44. set automatically_count_files true
  45. # Open all images in this directory when running certain image viewers
  46. # like feh or sxiv? You can still open selected files by marking them.
  47. set open_all_images true
  48. # Be aware of version control systems and display information.
  49. set vcs_aware false
  50. # State of the four backends git, hg, bzr, svn. The possible states are
  51. # disabled, local (only show local info), enabled (show local and remote
  52. # information).
  53. set vcs_backend_git enabled
  54. set vcs_backend_hg disabled
  55. set vcs_backend_bzr disabled
  56. set vcs_backend_svn disabled
  57. # Default iTerm2 font size (see: preview_images_method: iterm2)
  58. set iterm2_font_width 8
  59. set iterm2_font_height 11
  60. # Use a unicode "..." character to mark cut-off filenames?
  61. set unicode_ellipsis false
  62. # Show dotfiles in the bookmark preview box?
  63. set show_hidden_bookmarks true
  64. # Which colorscheme to use? These colorschemes are available by default:
  65. # default, jungle, snow, solarized
  66. set colorscheme default
  67. # Preview files on the rightmost column?
  68. # And collapse (shrink) the last column if there is nothing to preview?
  69. set preview_files true
  70. set preview_directories true
  71. set collapse_preview true
  72. # Save the console history on exit?
  73. set save_console_history true
  74. # Draw the status bar on top of the browser window (default: bottom)
  75. set status_bar_on_top false
  76. # Draw a progress bar in the status bar which displays the average state of all
  77. # currently running tasks which support progress bars?
  78. set draw_progress_bar_in_status_bar true
  79. # Draw borders around columns?
  80. set draw_borders false
  81. # Display the directory name in tabs?
  82. set dirname_in_tabs false
  83. # Enable the mouse support?
  84. set mouse_enabled false
  85. # Display the file size in the main column or status bar?
  86. set display_size_in_main_column true
  87. set display_size_in_status_bar true
  88. # Display files tags in all columns or only in main column?
  89. set display_tags_in_all_columns true
  90. # Set a title for the window?
  91. set update_title false
  92. # Set the title to "ranger" in the tmux program?
  93. set update_tmux_title false
  94. # Shorten the title if it gets long? The number defines how many
  95. # directories are displayed at once, 0 turns off this feature.
  96. set shorten_title 3
  97. # Show hostname in titlebar?
  98. set hostname_in_titlebar true
  99. # Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
  100. set tilde_in_titlebar true
  101. # How many directory-changes or console-commands should be kept in history?
  102. set max_history_size 20
  103. set max_console_history_size 50
  104. # Try to keep so much space between the top/bottom border when scrolling:
  105. set scroll_offset 8
  106. # Flush the input after each key hit? (Noticeable when ranger lags)
  107. set flushinput true
  108. # Padding on the right when there's no preview?
  109. # This allows you to click into the space to run the file.
  110. set padding_right true
  111. # Save bookmarks (used with mX and `X) instantly?
  112. # This helps to synchronize bookmarks between multiple ranger
  113. # instances but leads to *slight* performance loss.
  114. # When false, bookmarks are saved when ranger is exited.
  115. set autosave_bookmarks true
  116. # Save the "`" bookmark to disk. This can be used to switch to the last
  117. # directory by typing "``".
  118. set save_backtick_bookmark true
  119. # You can display the "real" cumulative size of directories by using the
  120. # command :get_cumulative_size or typing "dc". The size is expensive to
  121. # calculate and will not be updated automatically. You can choose
  122. # to update it automatically though by turning on this option:
  123. set autoupdate_cumulative_size false
  124. # Turning this on makes sense for screen readers:
  125. set show_cursor false
  126. # One of: size, natural, basename, atime, ctime, mtime, type, random
  127. set sort natural
  128. # Additional sorting options
  129. set sort_reverse false
  130. set sort_case_insensitive true
  131. set sort_directories_first true
  132. set sort_unicode false
  133. # Enable this if key combinations with the Alt Key don't work for you.
  134. # (Especially on xterm)
  135. set xterm_alt_key false
  136. # Whether to include bookmarks in cd command
  137. set cd_bookmarks true
  138. # Changes case sensitivity for the cd command tab completion
  139. set cd_tab_case sensitive
  140. # Use fuzzy tab completion with the "cd" command. For example,
  141. # ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
  142. set cd_tab_fuzzy false
  143. # Avoid previewing files larger than this size, in bytes. Use a value of 0 to
  144. # disable this feature.
  145. set preview_max_size 0
  146. # Add the highlighted file to the path in the titlebar
  147. set show_selection_in_titlebar true
  148. # The delay that ranger idly waits for user input, in milliseconds, with a
  149. # resolution of 100ms. Lower delay reduces lag between directory updates but
  150. # increases CPU load.
  151. set idle_delay 2000
  152. # When the metadata manager module looks for metadata, should it only look for
  153. # a ".metadata.json" file in the current directory, or do a deep search and
  154. # check all directories above the current one as well?
  155. set metadata_deep_search false
  156. # Clear all existing filters when leaving a directory
  157. set clear_filters_on_dir_change false
  158. # Disable displaying line numbers in main column
  159. set line_numbers false
  160. # Start line numbers from 1 instead of 0
  161. set one_indexed false
  162. # Save tabs on exit
  163. set save_tabs_on_exit false
  164. # Enable scroll wrapping - moving down while on the last item will wrap around to
  165. # the top and vice versa.
  166. set wrap_scroll false
  167. # Set the global_inode_type_filter to nothing. Possible options: d, f and l for
  168. # directories, files and symlinks respectively.
  169. set global_inode_type_filter
  170. # ===================================================================
  171. # == Local Options
  172. # ===================================================================
  173. # You can set local options that only affect a single directory.
  174. # Examples:
  175. # setlocal path=~/downloads sort mtime
  176. # ===================================================================
  177. # == Command Aliases in the Console
  178. # ===================================================================
  179. alias e edit
  180. alias q quit
  181. alias q! quit!
  182. alias qa quitall
  183. alias qa! quitall!
  184. alias qall quitall
  185. alias qall! quitall!
  186. alias setl setlocal
  187. alias filter scout -prt
  188. alias find scout -aeit
  189. alias mark scout -mr
  190. alias unmark scout -Mr
  191. alias search scout -rs
  192. alias search_inc scout -rts
  193. alias travel scout -aefklst
  194. # ===================================================================
  195. # == Define keys for the browser
  196. # ===================================================================
  197. # Basic
  198. map Q quitall
  199. map q quit
  200. copymap q ZZ ZQ
  201. map R reload_cwd
  202. map F set freeze_files!
  203. map <C-r> reset
  204. map <C-l> redraw_window
  205. map <C-c> abort
  206. map <esc> change_mode normal
  207. map ~ set viewmode!
  208. map i display_file
  209. map ? help
  210. map W display_log
  211. # map w taskview_open
  212. map S shell $SHELL
  213. map : console
  214. map ; console
  215. map ! console shell%space
  216. map @ console -p6 shell %%s
  217. map # console shell -p%space
  218. map s console shell%space
  219. map r chain draw_possible_programs; console open_with%%space
  220. map f console find%space
  221. map cd console cd%space
  222. # Change the line mode
  223. map Mf linemode filename
  224. map Mi linemode fileinfo
  225. map Mm linemode mtime
  226. map Mp linemode permissions
  227. map Ms linemode sizemtime
  228. map Mt linemode metatitle
  229. # Tagging / Marking
  230. map t tag_toggle
  231. map ut tag_remove
  232. map "<any> tag_toggle tag=%any
  233. map <Space> mark_files toggle=True
  234. map v mark_files all=True toggle=True
  235. map uv mark_files all=True val=False
  236. map V toggle_visual_mode
  237. map uV toggle_visual_mode reverse=True
  238. # For the nostalgics: Midnight Commander bindings
  239. map <F1> help
  240. map <F2> rename_append
  241. map <F3> display_file
  242. map <F4> edit
  243. map <F5> copy
  244. map <F6> cut
  245. map <F7> console mkdir%space
  246. map <F8> console delete
  247. map <F10> exit
  248. # In case you work on a keyboard with dvorak layout
  249. map <UP> move up=1
  250. map <DOWN> move down=1
  251. map <LEFT> move left=1
  252. map <RIGHT> move right=1
  253. map <HOME> move to=0
  254. map <END> move to=-1
  255. map <PAGEDOWN> move down=1 pages=True
  256. map <PAGEUP> move up=1 pages=True
  257. map <CR> move right=1
  258. map <DELETE> console delete
  259. map <INSERT> console touch%space
  260. # VIM-like
  261. copymap <UP> k
  262. copymap <DOWN> j
  263. copymap <LEFT> h
  264. copymap <RIGHT> l
  265. copymap <HOME> gg
  266. copymap <END> G
  267. copymap <PAGEDOWN> <C-F>
  268. copymap <PAGEUP> <C-B>
  269. map J move down=0.5 pages=True
  270. map K move up=0.5 pages=True
  271. copymap J <C-D>
  272. copymap K <C-U>
  273. # Jumping around
  274. map H history_go -1
  275. map L history_go 1
  276. map ] move_parent 1
  277. map [ move_parent -1
  278. map } traverse
  279. map ) jump_non
  280. map gh cd ~
  281. map ge cd /etc
  282. map gu cd /usr
  283. map gd cd /dev
  284. map gl cd -r .
  285. map gL cd -r %f
  286. map go cd /opt
  287. map gv cd /var
  288. map gm cd /media
  289. map gM cd /mnt
  290. map gs cd /srv
  291. map gp cd /tmp
  292. # map gr cd /
  293. map gR eval fm.cd(ranger.RANGERDIR)
  294. map g/ cd /
  295. map g? cd /usr/share/doc/ranger
  296. # External Programs
  297. map E edit
  298. map du shell -p du --max-depth=1 -h --apparent-size
  299. map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
  300. map yp yank path
  301. map yd yank dir
  302. map yn yank name
  303. # Filesystem Operations
  304. map = chmod
  305. map cw console rename%space
  306. map a rename_append
  307. map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
  308. map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
  309. map pp paste
  310. map po paste overwrite=True
  311. map pP paste append=True
  312. map pO paste overwrite=True append=True
  313. map pl paste_symlink relative=False
  314. map pL paste_symlink relative=True
  315. map phl paste_hardlink
  316. map pht paste_hardlinked_subtree
  317. map dD console delete
  318. map dd cut
  319. map ud uncut
  320. map da cut mode=add
  321. map dr cut mode=remove
  322. map dt cut mode=toggle
  323. map yy copy
  324. map uy uncut
  325. map ya copy mode=add
  326. map yr copy mode=remove
  327. map yt copy mode=toggle
  328. # Temporary workarounds
  329. map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
  330. map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
  331. map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
  332. map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
  333. map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
  334. map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
  335. map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
  336. map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
  337. # Searching
  338. map / console search%space
  339. map n search_next
  340. map N search_next forward=False
  341. map ct search_next order=tag
  342. map cs search_next order=size
  343. map ci search_next order=mimetype
  344. map cc search_next order=ctime
  345. map cm search_next order=mtime
  346. map ca search_next order=atime
  347. # Tabs
  348. map <C-n> tab_new
  349. map <C-w> tab_close
  350. map <TAB> tab_move 1
  351. map <S-TAB> tab_move -1
  352. map <A-Right> tab_move 1
  353. map <A-Left> tab_move -1
  354. map gt tab_move 1
  355. map gT tab_move -1
  356. map gn tab_new
  357. map gc tab_close
  358. map uq tab_restore
  359. map <a-1> tab_open 1
  360. map <a-2> tab_open 2
  361. map <a-3> tab_open 3
  362. map <a-4> tab_open 4
  363. map <a-5> tab_open 5
  364. map <a-6> tab_open 6
  365. map <a-7> tab_open 7
  366. map <a-8> tab_open 8
  367. map <a-9> tab_open 9
  368. # Sorting
  369. map or set sort_reverse!
  370. map oz set sort=random
  371. map os chain set sort=size; set sort_reverse=False
  372. map ob chain set sort=basename; set sort_reverse=False
  373. map on chain set sort=natural; set sort_reverse=False
  374. map om chain set sort=mtime; set sort_reverse=False
  375. map oc chain set sort=ctime; set sort_reverse=False
  376. map oa chain set sort=atime; set sort_reverse=False
  377. map ot chain set sort=type; set sort_reverse=False
  378. map oe chain set sort=extension; set sort_reverse=False
  379. map oS chain set sort=size; set sort_reverse=True
  380. map oB chain set sort=basename; set sort_reverse=True
  381. map oN chain set sort=natural; set sort_reverse=True
  382. map oM chain set sort=mtime; set sort_reverse=True
  383. map oC chain set sort=ctime; set sort_reverse=True
  384. map oA chain set sort=atime; set sort_reverse=True
  385. map oT chain set sort=type; set sort_reverse=True
  386. map oE chain set sort=extension; set sort_reverse=True
  387. map dc get_cumulative_size
  388. # Settings
  389. map zc set collapse_preview!
  390. map zd set sort_directories_first!
  391. map zh set show_hidden!
  392. map <C-h> set show_hidden!
  393. map zI set flushinput!
  394. map zi set preview_images!
  395. map zm set mouse_enabled!
  396. map zp set preview_files!
  397. map zP set preview_directories!
  398. map zs set sort_case_insensitive!
  399. map zu set autoupdate_cumulative_size!
  400. map zv set use_preview_script!
  401. map zf console filter%space
  402. copymap zf zz
  403. # Bookmarks
  404. map `<any> enter_bookmark %any
  405. map '<any> enter_bookmark %any
  406. map m<any> set_bookmark %any
  407. map um<any> unset_bookmark %any
  408. map m<bg> draw_bookmarks
  409. copymap m<bg> um<bg> `<bg> '<bg>
  410. # Generate all the chmod bindings with some python help:
  411. eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
  412. eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
  413. eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
  414. eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
  415. eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
  416. eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
  417. eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
  418. eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
  419. eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
  420. eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
  421. # ===================================================================
  422. # == Define keys for the console
  423. # ===================================================================
  424. # Note: Unmapped keys are passed directly to the console.
  425. # Basic
  426. cmap <tab> eval fm.ui.console.tab()
  427. cmap <s-tab> eval fm.ui.console.tab(-1)
  428. cmap <ESC> eval fm.ui.console.close()
  429. cmap <CR> eval fm.ui.console.execute()
  430. cmap <C-l> redraw_window
  431. copycmap <ESC> <C-c>
  432. copycmap <CR> <C-j>
  433. # Move around
  434. cmap <up> eval fm.ui.console.history_move(-1)
  435. cmap <down> eval fm.ui.console.history_move(1)
  436. cmap <left> eval fm.ui.console.move(left=1)
  437. cmap <right> eval fm.ui.console.move(right=1)
  438. cmap <home> eval fm.ui.console.move(right=0, absolute=True)
  439. cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
  440. cmap <a-left> eval fm.ui.console.move_word(left=1)
  441. cmap <a-right> eval fm.ui.console.move_word(right=1)
  442. # Line Editing
  443. cmap <backspace> eval fm.ui.console.delete(-1)
  444. cmap <delete> eval fm.ui.console.delete(0)
  445. cmap <C-w> eval fm.ui.console.delete_word()
  446. cmap <A-d> eval fm.ui.console.delete_word(backward=False)
  447. cmap <C-k> eval fm.ui.console.delete_rest(1)
  448. cmap <C-u> eval fm.ui.console.delete_rest(-1)
  449. cmap <C-y> eval fm.ui.console.paste()
  450. # And of course the emacs way
  451. copycmap <up> <C-p>
  452. copycmap <down> <C-n>
  453. copycmap <left> <C-b>
  454. copycmap <right> <C-f>
  455. copycmap <home> <C-a>
  456. copycmap <end> <C-e>
  457. copycmap <delete> <C-d>
  458. copycmap <backspace> <C-h>
  459. # Note: There are multiple ways to express backspaces. <backspace> (code 263)
  460. # and <backspace2> (code 127). To be sure, use both.
  461. copycmap <backspace> <backspace2>
  462. # This special expression allows typing in numerals:
  463. cmap <allow_quantifiers> false
  464. # ===================================================================
  465. # == Pager Keybindings
  466. # ===================================================================
  467. # Movement
  468. pmap <down> pager_move down=1
  469. pmap <up> pager_move up=1
  470. pmap <left> pager_move left=4
  471. pmap <right> pager_move right=4
  472. pmap <home> pager_move to=0
  473. pmap <end> pager_move to=-1
  474. pmap <pagedown> pager_move down=1.0 pages=True
  475. pmap <pageup> pager_move up=1.0 pages=True
  476. pmap <C-d> pager_move down=0.5 pages=True
  477. pmap <C-u> pager_move up=0.5 pages=True
  478. copypmap <UP> k <C-p>
  479. copypmap <DOWN> j <C-n> <CR>
  480. copypmap <LEFT> h
  481. copypmap <RIGHT> l
  482. copypmap <HOME> g
  483. copypmap <END> G
  484. copypmap <C-d> d
  485. copypmap <C-u> u
  486. copypmap <PAGEDOWN> n f <C-F> <Space>
  487. copypmap <PAGEUP> p b <C-B>
  488. # Basic
  489. pmap <C-l> redraw_window
  490. pmap <ESC> pager_close
  491. copypmap <ESC> q Q i <F3>
  492. pmap E edit_file
  493. # ===================================================================
  494. # == Taskview Keybindings
  495. # ===================================================================
  496. # Movement
  497. tmap <up> taskview_move up=1
  498. tmap <down> taskview_move down=1
  499. tmap <home> taskview_move to=0
  500. tmap <end> taskview_move to=-1
  501. tmap <pagedown> taskview_move down=1.0 pages=True
  502. tmap <pageup> taskview_move up=1.0 pages=True
  503. tmap <C-d> taskview_move down=0.5 pages=True
  504. tmap <C-u> taskview_move up=0.5 pages=True
  505. copytmap <UP> k <C-p>
  506. copytmap <DOWN> j <C-n> <CR>
  507. copytmap <HOME> g
  508. copytmap <END> G
  509. copytmap <C-u> u
  510. copytmap <PAGEDOWN> n f <C-F> <Space>
  511. copytmap <PAGEUP> p b <C-B>
  512. # Changing priority and deleting tasks
  513. tmap J eval -q fm.ui.taskview.task_move(-1)
  514. tmap K eval -q fm.ui.taskview.task_move(0)
  515. tmap dd eval -q fm.ui.taskview.task_remove()
  516. tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
  517. tmap <pageup> eval -q fm.ui.taskview.task_move(0)
  518. tmap <delete> eval -q fm.ui.taskview.task_remove()
  519. # Basic
  520. tmap <C-l> redraw_window
  521. tmap <ESC> taskview_close
  522. copytmap <ESC> q Q w <C-c>
  523. # }}} #
  524. source /home/kevin/.config/ranger/shortcuts.conf
  525. # image preview {{{ #
  526. # Use one of the supported image preview protocols
  527. set preview_images true
  528. # Set the preview image method. Supported methods:
  529. #
  530. # * w3m (default):
  531. # Preview images in full color with the external command "w3mimgpreview"?
  532. # This requires the console web browser "w3m" and a supported terminal.
  533. # It has been successfully tested with "xterm" and "urxvt" without tmux.
  534. #
  535. # * iterm2:
  536. # Preview images in full color using iTerm2 image previews
  537. # (http://iterm2.com/images.html). This requires using iTerm2 compiled
  538. # with image preview support.
  539. #
  540. # This feature relies on the dimensions of the terminal's font. By default, a
  541. # width of 8 and height of 11 are used. To use other values, set the options
  542. # iterm2_font_width and iterm2_font_height to the desired values.
  543. #
  544. # * urxvt:
  545. # Preview images in full color using urxvt image backgrounds. This
  546. # requires using urxvt compiled with pixbuf support.
  547. #
  548. # * urxvt-full:
  549. # The same as urxvt but utilizing not only the preview pane but the
  550. # whole terminal window.
  551. set preview_images_method w3m
  552. # set preview_images_method urxvt
  553. # set preview_images_method urxvt-full
  554. # }}} image preview #
  555. # editing ranger config
  556. map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; source ~/.config/ranger/rc.conf
  557. map rr source ~/.config/ranger/rc.conf
  558. # backgrounds
  559. map w shell /usr/bin/wal -i %f
  560. map md shell mv %f dim
  561. map mb shell mv %f vibrant
  562. # bulk rename
  563. map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
  564. map gr fzf_select
  565. # map <C-f> fzf_select