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.

727 lines
22 KiB

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