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.

707 lines
21 KiB

6 years ago
6 years ago
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 true
  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 s shell fish -C "cd %d"
  215. map : console
  216. map ; console
  217. map ! console shell%space
  218. map @ console -p6 shell %%s
  219. map # console shell -p%space
  220. map S console shell%space
  221. map r chain draw_possible_programs; console open_with%%space
  222. map f console find%space
  223. map cd console cd%space
  224. # Change the line mode
  225. map Mf linemode filename
  226. map Mi linemode fileinfo
  227. map Mm linemode mtime
  228. map Mp linemode permissions
  229. map Ms linemode sizemtime
  230. map Mt linemode metatitle
  231. # Tagging / Marking
  232. map t tag_toggle
  233. map ut tag_remove
  234. map "<any> tag_toggle tag=%any
  235. map <Space> mark_files toggle=True
  236. map v mark_files all=True toggle=True
  237. # unmark/clear selection
  238. map uv mark_files all=True val=False
  239. map V toggle_visual_mode
  240. map uV toggle_visual_mode reverse=True
  241. # For the nostalgics: Midnight Commander bindings
  242. map <F1> help
  243. map <F2> rename_append
  244. map <F3> display_file
  245. map <F4> edit
  246. map <F5> copy
  247. map <F6> cut
  248. map <F7> console mkdir%space
  249. map <F8> console delete
  250. map <F10> exit
  251. # In case you work on a keyboard with dvorak layout
  252. map <UP> move up=1
  253. map <DOWN> move down=1
  254. map <LEFT> move left=1
  255. map <RIGHT> move right=1
  256. map <HOME> move to=0
  257. map <END> move to=-1
  258. map <PAGEDOWN> move down=1 pages=True
  259. map <PAGEUP> move up=1 pages=True
  260. map <CR> move right=1
  261. map <DELETE> console delete
  262. map <INSERT> console touch%space
  263. # VIM-like
  264. copymap <UP> k
  265. copymap <DOWN> j
  266. copymap <LEFT> h
  267. copymap <RIGHT> l
  268. copymap <HOME> gg
  269. copymap <END> G
  270. copymap <PAGEDOWN> <C-F>
  271. copymap <PAGEUP> <C-B>
  272. map J move down=0.5 pages=True
  273. map K move up=0.5 pages=True
  274. copymap J <C-D>
  275. copymap K <C-U>
  276. # Jumping around
  277. map H history_go -1
  278. map L history_go 1
  279. map ] move_parent 1
  280. map [ move_parent -1
  281. map } traverse
  282. map ) jump_non
  283. map gh cd ~
  284. map ge cd /etc
  285. map gu cd /usr
  286. map gd cd /dev
  287. map gl cd -r .
  288. map gL cd -r %f
  289. map go cd /opt
  290. map gv cd /var
  291. map gm cd /media
  292. map gM cd /mnt
  293. map gs cd /srv
  294. map gp cd /tmp
  295. # map gr cd /
  296. map gR eval fm.cd(ranger.RANGERDIR)
  297. map g/ cd /
  298. map g? cd /usr/share/doc/ranger
  299. # External Programs
  300. map E edit
  301. map du shell -p du --max-depth=1 -h --apparent-size
  302. map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
  303. map yp yank path
  304. map yd yank dir
  305. map yn yank name
  306. # Filesystem Operations
  307. map = chmod
  308. map cw console rename%space
  309. map a rename_append
  310. map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
  311. map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
  312. map pp paste
  313. map po paste overwrite=True
  314. map pP paste append=True
  315. map pO paste overwrite=True append=True
  316. map pl paste_symlink relative=False
  317. map pL paste_symlink relative=True
  318. map phl paste_hardlink
  319. map pht paste_hardlinked_subtree
  320. map dD console delete
  321. map dd cut
  322. map ud uncut
  323. map da cut mode=add
  324. map dr cut mode=remove
  325. map dt cut mode=toggle
  326. map yy copy
  327. map uy uncut
  328. map ya copy mode=add
  329. map yr copy mode=remove
  330. map yt copy mode=toggle
  331. # Temporary workarounds
  332. map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
  333. map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
  334. map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
  335. map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
  336. map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
  337. map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
  338. map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
  339. map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
  340. # Searching
  341. map / console search%space
  342. map gr fzf_select
  343. map n search_next
  344. map N search_next forward=False
  345. map ct search_next order=tag
  346. map cs search_next order=size
  347. map ci search_next order=mimetype
  348. map cc search_next order=ctime
  349. map cm search_next order=mtime
  350. map ca search_next order=atime
  351. # Tabs
  352. map <C-n> tab_new
  353. map <C-w> tab_close
  354. map <TAB> tab_move 1
  355. map <S-TAB> tab_move -1
  356. map <A-Right> tab_move 1
  357. map <A-Left> tab_move -1
  358. map gt tab_move 1
  359. map gT tab_move -1
  360. map gn tab_new
  361. map gc tab_close
  362. map uq tab_restore
  363. map <a-1> tab_open 1
  364. map <a-2> tab_open 2
  365. map <a-3> tab_open 3
  366. map <a-4> tab_open 4
  367. map <a-5> tab_open 5
  368. map <a-6> tab_open 6
  369. map <a-7> tab_open 7
  370. map <a-8> tab_open 8
  371. map <a-9> tab_open 9
  372. # Sorting
  373. map or set sort_reverse!
  374. map oz set sort=random
  375. map os chain set sort=size; set sort_reverse=False
  376. map ob chain set sort=basename; set sort_reverse=False
  377. map on chain set sort=natural; set sort_reverse=False
  378. map om chain set sort=mtime; set sort_reverse=False
  379. map oc chain set sort=ctime; set sort_reverse=False
  380. map oa chain set sort=atime; set sort_reverse=False
  381. map ot chain set sort=type; set sort_reverse=False
  382. map oe chain set sort=extension; set sort_reverse=False
  383. map oS chain set sort=size; set sort_reverse=True
  384. map oB chain set sort=basename; set sort_reverse=True
  385. map oN chain set sort=natural; set sort_reverse=True
  386. map oM chain set sort=mtime; set sort_reverse=True
  387. map oC chain set sort=ctime; set sort_reverse=True
  388. map oA chain set sort=atime; set sort_reverse=True
  389. map oT chain set sort=type; set sort_reverse=True
  390. map oE chain set sort=extension; set sort_reverse=True
  391. map dc get_cumulative_size
  392. # Settings
  393. map zc set collapse_preview!
  394. map zd set sort_directories_first!
  395. map zh set show_hidden!
  396. map <C-h> set show_hidden!
  397. map zI set flushinput!
  398. map zi set preview_images!
  399. map zm set mouse_enabled!
  400. map zp set preview_files!
  401. map zP set preview_directories!
  402. map zs set sort_case_insensitive!
  403. map zu set autoupdate_cumulative_size!
  404. map zv set use_preview_script!
  405. map zf console filter%space
  406. copymap zf zz
  407. # Bookmarks
  408. map `<any> enter_bookmark %any
  409. map '<any> enter_bookmark %any
  410. map b<any> set_bookmark %any
  411. map ub<any> unset_bookmark %any
  412. # map m<bg> draw_bookmarks
  413. # copymap m<bg> um<bg> `<bg> '<bg>
  414. # Generate all the chmod bindings with some python help:
  415. eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
  416. eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
  417. eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
  418. eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
  419. eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
  420. eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
  421. eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
  422. eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
  423. eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
  424. eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
  425. # ===================================================================
  426. # == Define keys for the console
  427. # ===================================================================
  428. # Note: Unmapped keys are passed directly to the console.
  429. # Basic
  430. cmap <tab> eval fm.ui.console.tab()
  431. cmap <s-tab> eval fm.ui.console.tab(-1)
  432. cmap <ESC> eval fm.ui.console.close()
  433. cmap <CR> eval fm.ui.console.execute()
  434. cmap <C-l> redraw_window
  435. copycmap <ESC> <C-c>
  436. copycmap <CR> <C-j>
  437. # Move around
  438. cmap <up> eval fm.ui.console.history_move(-1)
  439. cmap <down> eval fm.ui.console.history_move(1)
  440. cmap <left> eval fm.ui.console.move(left=1)
  441. cmap <right> eval fm.ui.console.move(right=1)
  442. cmap <home> eval fm.ui.console.move(right=0, absolute=True)
  443. cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
  444. cmap <a-left> eval fm.ui.console.move_word(left=1)
  445. cmap <a-right> eval fm.ui.console.move_word(right=1)
  446. # Line Editing
  447. cmap <backspace> eval fm.ui.console.delete(-1)
  448. cmap <delete> eval fm.ui.console.delete(0)
  449. cmap <C-w> eval fm.ui.console.delete_word()
  450. cmap <A-d> eval fm.ui.console.delete_word(backward=False)
  451. cmap <C-k> eval fm.ui.console.delete_rest(1)
  452. cmap <C-u> eval fm.ui.console.delete_rest(-1)
  453. cmap <C-y> eval fm.ui.console.paste()
  454. # And of course the emacs way
  455. copycmap <up> <C-p>
  456. copycmap <down> <C-n>
  457. copycmap <left> <C-b>
  458. copycmap <right> <C-f>
  459. copycmap <home> <C-a>
  460. copycmap <end> <C-e>
  461. copycmap <delete> <C-d>
  462. copycmap <backspace> <C-h>
  463. # Note: There are multiple ways to express backspaces. <backspace> (code 263)
  464. # and <backspace2> (code 127). To be sure, use both.
  465. copycmap <backspace> <backspace2>
  466. # This special expression allows typing in numerals:
  467. cmap <allow_quantifiers> false
  468. # ===================================================================
  469. # == Pager Keybindings
  470. # ===================================================================
  471. # Movement
  472. pmap <down> pager_move down=1
  473. pmap <up> pager_move up=1
  474. pmap <left> pager_move left=4
  475. pmap <right> pager_move right=4
  476. pmap <home> pager_move to=0
  477. pmap <end> pager_move to=-1
  478. pmap <pagedown> pager_move down=1.0 pages=True
  479. pmap <pageup> pager_move up=1.0 pages=True
  480. pmap <C-d> pager_move down=0.5 pages=True
  481. pmap <C-u> pager_move up=0.5 pages=True
  482. copypmap <UP> k <C-p>
  483. copypmap <DOWN> j <C-n> <CR>
  484. copypmap <LEFT> h
  485. copypmap <RIGHT> l
  486. copypmap <HOME> g
  487. copypmap <END> G
  488. copypmap <C-d> d
  489. copypmap <C-u> u
  490. copypmap <PAGEDOWN> n f <C-F> <Space>
  491. copypmap <PAGEUP> p b <C-B>
  492. # Basic
  493. pmap <C-l> redraw_window
  494. pmap <ESC> pager_close
  495. copypmap <ESC> q Q i <F3>
  496. pmap E edit_file
  497. # ===================================================================
  498. # == Taskview Keybindings
  499. # ===================================================================
  500. # Movement
  501. tmap <up> taskview_move up=1
  502. tmap <down> taskview_move down=1
  503. tmap <home> taskview_move to=0
  504. tmap <end> taskview_move to=-1
  505. tmap <pagedown> taskview_move down=1.0 pages=True
  506. tmap <pageup> taskview_move up=1.0 pages=True
  507. tmap <C-d> taskview_move down=0.5 pages=True
  508. tmap <C-u> taskview_move up=0.5 pages=True
  509. copytmap <UP> k <C-p>
  510. copytmap <DOWN> j <C-n> <CR>
  511. copytmap <HOME> g
  512. copytmap <END> G
  513. copytmap <C-u> u
  514. copytmap <PAGEDOWN> n f <C-F> <Space>
  515. copytmap <PAGEUP> p b <C-B>
  516. # Changing priority and deleting tasks
  517. tmap J eval -q fm.ui.taskview.task_move(-1)
  518. tmap K eval -q fm.ui.taskview.task_move(0)
  519. tmap dd eval -q fm.ui.taskview.task_remove()
  520. tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
  521. tmap <pageup> eval -q fm.ui.taskview.task_move(0)
  522. tmap <delete> eval -q fm.ui.taskview.task_remove()
  523. # Basic
  524. tmap <C-l> redraw_window
  525. tmap <ESC> taskview_close
  526. copytmap <ESC> q Q w <C-c>
  527. # }}} #
  528. # image preview {{{ #
  529. # Use one of the supported image preview protocols
  530. set preview_images true
  531. # Set the preview image method. Supported methods:
  532. #
  533. # * w3m (default):
  534. # Preview images in full color with the external command "w3mimgpreview"?
  535. # This requires the console web browser "w3m" and a supported terminal.
  536. # It has been successfully tested with "xterm" and "urxvt" without tmux.
  537. #
  538. # * iterm2:
  539. # Preview images in full color using iTerm2 image previews
  540. # (http://iterm2.com/images.html). This requires using iTerm1 compiled
  541. # with image preview support.
  542. #
  543. # This feature relies on the dimensions of the terminal's font. By default, a
  544. # width of 8 and height of 11 are used. To use other values, set the options
  545. # iterm2_font_width and iterm2_font_height to the desired values.
  546. #
  547. # * urxvt:
  548. # Preview images in full color using urxvt image backgrounds. This
  549. # requires using urxvt compiled with pixbuf support.
  550. #
  551. # * urxvt-full:
  552. # The same as urxvt but utilizing not only the preview pane but the
  553. # whole terminal window.
  554. set preview_images_method w3m
  555. # set preview_images_method urxvt
  556. # set preview_images_method urxvt-full
  557. # }}} image preview #
  558. # custom {{{ #
  559. # editing ranger config
  560. map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; source ~/.config/ranger/rc.conf
  561. map rr source ~/.config/ranger/rc.conf
  562. # backgrounds {{{ #
  563. map w shell /usr/bin/wal -i %f
  564. map bde shell mv %f dim/editing
  565. map bdn shell mv %f dim/non-editing
  566. map bbe shell mv %f bright/editing
  567. map bbn shell mv %f bright/non-editing
  568. map be shell mv %f editing
  569. map bn shell mv %f non-editing
  570. # }}} backgrounds #
  571. # bulk rename
  572. map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
  573. map zu shell unzip %f
  574. map zr shell unzip %f && rm %f
  575. map e. open_with evince f
  576. map v. shell $EDITOR %f
  577. # map gr fzf_select
  578. source /home/kevin/.config/ranger/key_mappings.conf
  579. map dg shell dragon-drag-and-drop -a -x %p
  580. # map <C-d> shell dragon-drag-and-drop -a -x %p
  581. # a plugin that adds file glyphs / icon support to Ranger:
  582. # https://github.com/alexanderjeurissen/ranger_devicons
  583. default_linemode devicons
  584. # }}} custom #