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.

683 lines
21 KiB

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. # set sort extension
  129. # Additional sorting options
  130. set sort_reverse false
  131. set sort_case_insensitive true
  132. set sort_directories_first true
  133. set sort_unicode false
  134. # Enable this if key combinations with the Alt Key don't work for you.
  135. # (Especially on xterm)
  136. set xterm_alt_key false
  137. # Whether to include bookmarks in cd command
  138. set cd_bookmarks true
  139. # Changes case sensitivity for the cd command tab completion
  140. set cd_tab_case sensitive
  141. # Use fuzzy tab completion with the "cd" command. For example,
  142. # ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
  143. set cd_tab_fuzzy false
  144. # Avoid previewing files larger than this size, in bytes. Use a value of 0 to
  145. # disable this feature.
  146. set preview_max_size 0
  147. # Add the highlighted file to the path in the titlebar
  148. set show_selection_in_titlebar true
  149. # The delay that ranger idly waits for user input, in milliseconds, with a
  150. # resolution of 100ms. Lower delay reduces lag between directory updates but
  151. # increases CPU load.
  152. set idle_delay 2000
  153. # When the metadata manager module looks for metadata, should it only look for
  154. # a ".metadata.json" file in the current directory, or do a deep search and
  155. # check all directories above the current one as well?
  156. set metadata_deep_search false
  157. # Clear all existing filters when leaving a directory
  158. set clear_filters_on_dir_change false
  159. # Disable displaying line numbers in main column
  160. set line_numbers false
  161. # Start line numbers from 1 instead of 0
  162. set one_indexed false
  163. # Save tabs on exit
  164. set save_tabs_on_exit false
  165. # Enable scroll wrapping - moving down while on the last item will wrap around to
  166. # the top and vice versa.
  167. set wrap_scroll false
  168. # Set the global_inode_type_filter to nothing. Possible options: d, f and l for
  169. # directories, files and symlinks respectively.
  170. set global_inode_type_filter
  171. # ===================================================================
  172. # == Local Options
  173. # ===================================================================
  174. # You can set local options that only affect a single directory.
  175. # Examples:
  176. # setlocal path=~/downloads sort mtime
  177. # ===================================================================
  178. # == Command Aliases in the Console
  179. # ===================================================================
  180. alias e edit
  181. alias q quit
  182. alias q! quit!
  183. alias qa quitall
  184. alias qa! quitall!
  185. alias qall quitall
  186. alias qall! quitall!
  187. alias setl setlocal
  188. alias filter scout -prt
  189. alias find scout -aeit
  190. alias mark scout -mr
  191. alias unmark scout -Mr
  192. alias search scout -rs
  193. alias search_inc scout -rts
  194. alias travel scout -aefklst
  195. # ===================================================================
  196. # == Define keys for the browser
  197. # ===================================================================
  198. # Basic
  199. map Q quitall
  200. map q quit
  201. copymap q ZZ ZQ
  202. map R reload_cwd
  203. map F set freeze_files!
  204. map <C-r> reset
  205. map <C-l> redraw_window
  206. map <C-c> abort
  207. map <esc> change_mode normal
  208. map ~ set viewmode!
  209. map i display_file
  210. map ? help
  211. map W display_log
  212. # map w taskview_open
  213. map S shell $SHELL
  214. map : console
  215. map ; console
  216. map ! console shell%space
  217. map @ console -p6 shell %%s
  218. map # console shell -p%space
  219. map s console shell%space
  220. map r chain draw_possible_programs; console open_with%%space
  221. map f console find%space
  222. map cd console cd%space
  223. # Change the line mode
  224. map Mf linemode filename
  225. map Mi linemode fileinfo
  226. map Mm linemode mtime
  227. map Mp linemode permissions
  228. map Ms linemode sizemtime
  229. map Mt linemode metatitle
  230. # Tagging / Marking
  231. map t tag_toggle
  232. map ut tag_remove
  233. map "<any> tag_toggle tag=%any
  234. map <Space> mark_files toggle=True
  235. map v mark_files all=True toggle=True
  236. map uv mark_files all=True val=False
  237. map V toggle_visual_mode
  238. map uV toggle_visual_mode reverse=True
  239. # For the nostalgics: Midnight Commander bindings
  240. map <F1> help
  241. map <F2> rename_append
  242. map <F3> display_file
  243. map <F4> edit
  244. map <F5> copy
  245. map <F6> cut
  246. map <F7> console mkdir%space
  247. map <F8> console delete
  248. map <F10> exit
  249. # In case you work on a keyboard with dvorak layout
  250. map <UP> move up=1
  251. map <DOWN> move down=1
  252. map <LEFT> move left=1
  253. map <RIGHT> move right=1
  254. map <HOME> move to=0
  255. map <END> move to=-1
  256. map <PAGEDOWN> move down=1 pages=True
  257. map <PAGEUP> move up=1 pages=True
  258. map <CR> move right=1
  259. map <DELETE> console delete
  260. map <INSERT> console touch%space
  261. # VIM-like
  262. copymap <UP> k
  263. copymap <DOWN> j
  264. copymap <LEFT> h
  265. copymap <RIGHT> l
  266. copymap <HOME> gg
  267. copymap <END> G
  268. copymap <PAGEDOWN> <C-F>
  269. copymap <PAGEUP> <C-B>
  270. map J move down=0.5 pages=True
  271. map K move up=0.5 pages=True
  272. copymap J <C-D>
  273. copymap K <C-U>
  274. # Jumping around
  275. map H history_go -1
  276. map L history_go 1
  277. map ] move_parent 1
  278. map [ move_parent -1
  279. map } traverse
  280. map ) jump_non
  281. map gh cd ~
  282. map ge cd /etc
  283. map gu cd /usr
  284. map gd cd /dev
  285. map gl cd -r .
  286. map gL cd -r %f
  287. map go cd /opt
  288. map gv cd /var
  289. map gm cd /media
  290. map gM cd /mnt
  291. map gs cd /srv
  292. map gp cd /tmp
  293. # map gr cd /
  294. map gR eval fm.cd(ranger.RANGERDIR)
  295. map g/ cd /
  296. map g? cd /usr/share/doc/ranger
  297. # External Programs
  298. map E edit
  299. map du shell -p du --max-depth=1 -h --apparent-size
  300. map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
  301. map yp yank path
  302. map yd yank dir
  303. map yn yank name
  304. # Filesystem Operations
  305. map = chmod
  306. map cw console rename%space
  307. map a rename_append
  308. map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
  309. map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
  310. map pp paste
  311. map po paste overwrite=True
  312. map pP paste append=True
  313. map pO paste overwrite=True append=True
  314. map pl paste_symlink relative=False
  315. map pL paste_symlink relative=True
  316. map phl paste_hardlink
  317. map pht paste_hardlinked_subtree
  318. map dD console delete
  319. map dd cut
  320. map ud uncut
  321. map da cut mode=add
  322. map dr cut mode=remove
  323. map dt cut mode=toggle
  324. map yy copy
  325. map uy uncut
  326. map ya copy mode=add
  327. map yr copy mode=remove
  328. map yt copy mode=toggle
  329. # Temporary workarounds
  330. map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
  331. map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
  332. map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
  333. map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
  334. map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
  335. map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
  336. map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
  337. map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
  338. # Searching
  339. map / console search%space
  340. map gr fzf_select
  341. map n search_next
  342. map N search_next forward=False
  343. map ct search_next order=tag
  344. map cs search_next order=size
  345. map ci search_next order=mimetype
  346. map cc search_next order=ctime
  347. map cm search_next order=mtime
  348. map ca search_next order=atime
  349. # Tabs
  350. map <C-n> tab_new
  351. map <C-w> tab_close
  352. map <TAB> tab_move 1
  353. map <S-TAB> tab_move -1
  354. map <A-Right> tab_move 1
  355. map <A-Left> tab_move -1
  356. map gt tab_move 1
  357. map gT tab_move -1
  358. map gn tab_new
  359. map gc tab_close
  360. map uq tab_restore
  361. map <a-1> tab_open 1
  362. map <a-2> tab_open 2
  363. map <a-3> tab_open 3
  364. map <a-4> tab_open 4
  365. map <a-5> tab_open 5
  366. map <a-6> tab_open 6
  367. map <a-7> tab_open 7
  368. map <a-8> tab_open 8
  369. map <a-9> tab_open 9
  370. # Sorting
  371. map or set sort_reverse!
  372. map oz set sort=random
  373. map os chain set sort=size; set sort_reverse=False
  374. map ob chain set sort=basename; set sort_reverse=False
  375. map on chain set sort=natural; set sort_reverse=False
  376. map om chain set sort=mtime; set sort_reverse=False
  377. map oc chain set sort=ctime; set sort_reverse=False
  378. map oa chain set sort=atime; set sort_reverse=False
  379. map ot chain set sort=type; set sort_reverse=False
  380. map oe chain set sort=extension; set sort_reverse=False
  381. map oS chain set sort=size; set sort_reverse=True
  382. map oB chain set sort=basename; set sort_reverse=True
  383. map oN chain set sort=natural; set sort_reverse=True
  384. map oM chain set sort=mtime; set sort_reverse=True
  385. map oC chain set sort=ctime; set sort_reverse=True
  386. map oA chain set sort=atime; set sort_reverse=True
  387. map oT chain set sort=type; set sort_reverse=True
  388. map oE chain set sort=extension; set sort_reverse=True
  389. map dc get_cumulative_size
  390. # Settings
  391. map zc set collapse_preview!
  392. map zd set sort_directories_first!
  393. map zh set show_hidden!
  394. map <C-h> set show_hidden!
  395. map zI set flushinput!
  396. map zi set preview_images!
  397. map zm set mouse_enabled!
  398. map zp set preview_files!
  399. map zP set preview_directories!
  400. map zs set sort_case_insensitive!
  401. map zu set autoupdate_cumulative_size!
  402. map zv set use_preview_script!
  403. map zf console filter%space
  404. copymap zf zz
  405. # Bookmarks
  406. map `<any> enter_bookmark %any
  407. map '<any> enter_bookmark %any
  408. map b<any> set_bookmark %any
  409. map ub<any> unset_bookmark %any
  410. # map m<bg> draw_bookmarks
  411. # copymap m<bg> um<bg> `<bg> '<bg>
  412. # Generate all the chmod bindings with some python help:
  413. eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
  414. eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
  415. eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
  416. eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
  417. eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
  418. eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
  419. eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
  420. eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
  421. eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
  422. eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
  423. # ===================================================================
  424. # == Define keys for the console
  425. # ===================================================================
  426. # Note: Unmapped keys are passed directly to the console.
  427. # Basic
  428. cmap <tab> eval fm.ui.console.tab()
  429. cmap <s-tab> eval fm.ui.console.tab(-1)
  430. cmap <ESC> eval fm.ui.console.close()
  431. cmap <CR> eval fm.ui.console.execute()
  432. cmap <C-l> redraw_window
  433. copycmap <ESC> <C-c>
  434. copycmap <CR> <C-j>
  435. # Move around
  436. cmap <up> eval fm.ui.console.history_move(-1)
  437. cmap <down> eval fm.ui.console.history_move(1)
  438. cmap <left> eval fm.ui.console.move(left=1)
  439. cmap <right> eval fm.ui.console.move(right=1)
  440. cmap <home> eval fm.ui.console.move(right=0, absolute=True)
  441. cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
  442. cmap <a-left> eval fm.ui.console.move_word(left=1)
  443. cmap <a-right> eval fm.ui.console.move_word(right=1)
  444. # Line Editing
  445. cmap <backspace> eval fm.ui.console.delete(-1)
  446. cmap <delete> eval fm.ui.console.delete(0)
  447. cmap <C-w> eval fm.ui.console.delete_word()
  448. cmap <A-d> eval fm.ui.console.delete_word(backward=False)
  449. cmap <C-k> eval fm.ui.console.delete_rest(1)
  450. cmap <C-u> eval fm.ui.console.delete_rest(-1)
  451. cmap <C-y> eval fm.ui.console.paste()
  452. # And of course the emacs way
  453. copycmap <up> <C-p>
  454. copycmap <down> <C-n>
  455. copycmap <left> <C-b>
  456. copycmap <right> <C-f>
  457. copycmap <home> <C-a>
  458. copycmap <end> <C-e>
  459. copycmap <delete> <C-d>
  460. copycmap <backspace> <C-h>
  461. # Note: There are multiple ways to express backspaces. <backspace> (code 263)
  462. # and <backspace2> (code 127). To be sure, use both.
  463. copycmap <backspace> <backspace2>
  464. # This special expression allows typing in numerals:
  465. cmap <allow_quantifiers> false
  466. # ===================================================================
  467. # == Pager Keybindings
  468. # ===================================================================
  469. # Movement
  470. pmap <down> pager_move down=1
  471. pmap <up> pager_move up=1
  472. pmap <left> pager_move left=4
  473. pmap <right> pager_move right=4
  474. pmap <home> pager_move to=0
  475. pmap <end> pager_move to=-1
  476. pmap <pagedown> pager_move down=1.0 pages=True
  477. pmap <pageup> pager_move up=1.0 pages=True
  478. pmap <C-d> pager_move down=0.5 pages=True
  479. pmap <C-u> pager_move up=0.5 pages=True
  480. copypmap <UP> k <C-p>
  481. copypmap <DOWN> j <C-n> <CR>
  482. copypmap <LEFT> h
  483. copypmap <RIGHT> l
  484. copypmap <HOME> g
  485. copypmap <END> G
  486. copypmap <C-d> d
  487. copypmap <C-u> u
  488. copypmap <PAGEDOWN> n f <C-F> <Space>
  489. copypmap <PAGEUP> p b <C-B>
  490. # Basic
  491. pmap <C-l> redraw_window
  492. pmap <ESC> pager_close
  493. copypmap <ESC> q Q i <F3>
  494. pmap E edit_file
  495. # ===================================================================
  496. # == Taskview Keybindings
  497. # ===================================================================
  498. # Movement
  499. tmap <up> taskview_move up=1
  500. tmap <down> taskview_move down=1
  501. tmap <home> taskview_move to=0
  502. tmap <end> taskview_move to=-1
  503. tmap <pagedown> taskview_move down=1.0 pages=True
  504. tmap <pageup> taskview_move up=1.0 pages=True
  505. tmap <C-d> taskview_move down=0.5 pages=True
  506. tmap <C-u> taskview_move up=0.5 pages=True
  507. copytmap <UP> k <C-p>
  508. copytmap <DOWN> j <C-n> <CR>
  509. copytmap <HOME> g
  510. copytmap <END> G
  511. copytmap <C-u> u
  512. copytmap <PAGEDOWN> n f <C-F> <Space>
  513. copytmap <PAGEUP> p b <C-B>
  514. # Changing priority and deleting tasks
  515. tmap J eval -q fm.ui.taskview.task_move(-1)
  516. tmap K eval -q fm.ui.taskview.task_move(0)
  517. tmap dd eval -q fm.ui.taskview.task_remove()
  518. tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
  519. tmap <pageup> eval -q fm.ui.taskview.task_move(0)
  520. tmap <delete> eval -q fm.ui.taskview.task_remove()
  521. # Basic
  522. tmap <C-l> redraw_window
  523. tmap <ESC> taskview_close
  524. copytmap <ESC> q Q w <C-c>
  525. # }}} #
  526. source /home/kevin/.config/ranger/shortcuts.conf
  527. # image preview {{{ #
  528. # Use one of the supported image preview protocols
  529. set preview_images true
  530. # Set the preview image method. Supported methods:
  531. #
  532. # * w3m (default):
  533. # Preview images in full color with the external command "w3mimgpreview"?
  534. # This requires the console web browser "w3m" and a supported terminal.
  535. # It has been successfully tested with "xterm" and "urxvt" without tmux.
  536. #
  537. # * iterm2:
  538. # Preview images in full color using iTerm2 image previews
  539. # (http://iterm2.com/images.html). This requires using iTerm2 compiled
  540. # with image preview support.
  541. #
  542. # This feature relies on the dimensions of the terminal's font. By default, a
  543. # width of 8 and height of 11 are used. To use other values, set the options
  544. # iterm2_font_width and iterm2_font_height to the desired values.
  545. #
  546. # * urxvt:
  547. # Preview images in full color using urxvt image backgrounds. This
  548. # requires using urxvt compiled with pixbuf support.
  549. #
  550. # * urxvt-full:
  551. # The same as urxvt but utilizing not only the preview pane but the
  552. # whole terminal window.
  553. set preview_images_method w3m
  554. # set preview_images_method urxvt
  555. # set preview_images_method urxvt-full
  556. # }}} image preview #
  557. # editing ranger config
  558. map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; source ~/.config/ranger/rc.conf
  559. map rr source ~/.config/ranger/rc.conf
  560. # backgrounds
  561. map w shell /usr/bin/wal -i %f
  562. map bgd shell mv %f dim
  563. map bgb shell mv %f vibrant
  564. # bulk rename
  565. map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
  566. # map gr fzf_select