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.

725 lines
22 KiB

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 w3m
  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 false
  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 gs cd /srv
  354. map gp cd /tmp
  355. map gr cd /
  356. map gR eval fm.cd(ranger.RANGERDIR)
  357. map g/ cd /
  358. map g? cd /usr/share/doc/ranger
  359. # External Programs
  360. map E edit
  361. map du shell -p du --max-depth=1 -h --apparent-size
  362. map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
  363. map yp yank path
  364. map yd yank dir
  365. map yn yank name
  366. map y. yank name_without_extension
  367. # Filesystem Operations
  368. map = chmod
  369. map cw console rename%space
  370. map a rename_append
  371. map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
  372. map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
  373. map pp paste
  374. map po paste overwrite=True
  375. map pP paste append=True
  376. map pO paste overwrite=True append=True
  377. map pl paste_symlink relative=False
  378. map pL paste_symlink relative=True
  379. map phl paste_hardlink
  380. map pht paste_hardlinked_subtree
  381. map dD console delete
  382. map dd cut
  383. map ud uncut
  384. map da cut mode=add
  385. map dr cut mode=remove
  386. map dt cut mode=toggle
  387. map yy copy
  388. map uy uncut
  389. map ya copy mode=add
  390. map yr copy mode=remove
  391. map yt copy mode=toggle
  392. # Temporary workarounds
  393. map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
  394. map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
  395. map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
  396. map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
  397. map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
  398. map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
  399. map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
  400. map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
  401. # Searching
  402. map / console search%space
  403. map n search_next
  404. map N search_next forward=False
  405. map ct search_next order=tag
  406. map cs search_next order=size
  407. map ci search_next order=mimetype
  408. map cc search_next order=ctime
  409. map cm search_next order=mtime
  410. map ca search_next order=atime
  411. # Tabs
  412. map <C-n> tab_new
  413. map <C-w> tab_close
  414. map <TAB> tab_move 1
  415. map <S-TAB> tab_move -1
  416. map <A-Right> tab_move 1
  417. map <A-Left> tab_move -1
  418. map gt tab_move 1
  419. map gT tab_move -1
  420. map gn tab_new
  421. map gc tab_close
  422. map uq tab_restore
  423. map <a-1> tab_open 1
  424. map <a-2> tab_open 2
  425. map <a-3> tab_open 3
  426. map <a-4> tab_open 4
  427. map <a-5> tab_open 5
  428. map <a-6> tab_open 6
  429. map <a-7> tab_open 7
  430. map <a-8> tab_open 8
  431. map <a-9> tab_open 9
  432. map <a-r> tab_shift 1
  433. map <a-l> tab_shift -1
  434. # Sorting
  435. map or set sort_reverse!
  436. map oz set sort=random
  437. map os chain set sort=size; set sort_reverse=False
  438. map ob chain set sort=basename; set sort_reverse=False
  439. map on chain set sort=natural; set sort_reverse=False
  440. map om chain set sort=mtime; set sort_reverse=False
  441. map oc chain set sort=ctime; set sort_reverse=False
  442. map oa chain set sort=atime; set sort_reverse=False
  443. map ot chain set sort=type; set sort_reverse=False
  444. map oe chain set sort=extension; set sort_reverse=False
  445. map oS chain set sort=size; set sort_reverse=True
  446. map oB chain set sort=basename; set sort_reverse=True
  447. map oN chain set sort=natural; set sort_reverse=True
  448. map oM chain set sort=mtime; set sort_reverse=True
  449. map oC chain set sort=ctime; set sort_reverse=True
  450. map oA chain set sort=atime; set sort_reverse=True
  451. map oT chain set sort=type; set sort_reverse=True
  452. map oE chain set sort=extension; set sort_reverse=True
  453. map dc get_cumulative_size
  454. # Settings
  455. map zc set collapse_preview!
  456. map zd set sort_directories_first!
  457. map zh set show_hidden!
  458. map <C-h> set show_hidden!
  459. copymap <C-h> <backspace>
  460. copymap <backspace> <backspace2>
  461. map zI set flushinput!
  462. map zi set preview_images!
  463. map zm set mouse_enabled!
  464. map zp set preview_files!
  465. map zP set preview_directories!
  466. map zs set sort_case_insensitive!
  467. map zu set autoupdate_cumulative_size!
  468. map zv set use_preview_script!
  469. map zf console filter%space
  470. copymap zf zz
  471. # Filter stack
  472. map .n console filter_stack add name%space
  473. map .m console filter_stack add mime%space
  474. map .d filter_stack add type d
  475. map .f filter_stack add type f
  476. map .l filter_stack add type l
  477. map .| filter_stack add or
  478. map .& filter_stack add and
  479. map .! filter_stack add not
  480. map .r console filter_stack rotate
  481. map .c filter_stack clear
  482. map .* filter_stack decompose
  483. map .p filter_stack pop
  484. map .. filter_stack show
  485. # Bookmarks
  486. map `<any> enter_bookmark %any
  487. map '<any> enter_bookmark %any
  488. map m<any> set_bookmark %any
  489. map um<any> unset_bookmark %any
  490. map m<bg> draw_bookmarks
  491. copymap m<bg> um<bg> `<bg> '<bg>
  492. # Generate all the chmod bindings with some python help:
  493. eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
  494. eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
  495. eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
  496. eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
  497. eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
  498. eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
  499. eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
  500. eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
  501. eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
  502. eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
  503. # ===================================================================
  504. # == Define keys for the console
  505. # ===================================================================
  506. # Note: Unmapped keys are passed directly to the console.
  507. # Basic
  508. cmap <tab> eval fm.ui.console.tab()
  509. cmap <s-tab> eval fm.ui.console.tab(-1)
  510. cmap <ESC> eval fm.ui.console.close()
  511. cmap <CR> eval fm.ui.console.execute()
  512. cmap <C-l> redraw_window
  513. copycmap <ESC> <C-c>
  514. copycmap <CR> <C-j>
  515. # Move around
  516. cmap <up> eval fm.ui.console.history_move(-1)
  517. cmap <down> eval fm.ui.console.history_move(1)
  518. cmap <left> eval fm.ui.console.move(left=1)
  519. cmap <right> eval fm.ui.console.move(right=1)
  520. cmap <home> eval fm.ui.console.move(right=0, absolute=True)
  521. cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
  522. cmap <a-b> eval fm.ui.console.move_word(left=1)
  523. cmap <a-f> eval fm.ui.console.move_word(right=1)
  524. copycmap <a-b> <a-left>
  525. copycmap <a-f> <a-right>
  526. # Line Editing
  527. cmap <backspace> eval fm.ui.console.delete(-1)
  528. cmap <delete> eval fm.ui.console.delete(0)
  529. cmap <C-w> eval fm.ui.console.delete_word()
  530. cmap <A-d> eval fm.ui.console.delete_word(backward=False)
  531. cmap <C-k> eval fm.ui.console.delete_rest(1)
  532. cmap <C-u> eval fm.ui.console.delete_rest(-1)
  533. cmap <C-y> eval fm.ui.console.paste()
  534. # And of course the emacs way
  535. copycmap <ESC> <C-g>
  536. copycmap <up> <C-p>
  537. copycmap <down> <C-n>
  538. copycmap <left> <C-b>
  539. copycmap <right> <C-f>
  540. copycmap <home> <C-a>
  541. copycmap <end> <C-e>
  542. copycmap <delete> <C-d>
  543. copycmap <backspace> <C-h>
  544. # Note: There are multiple ways to express backspaces. <backspace> (code 263)
  545. # and <backspace2> (code 127). To be sure, use both.
  546. copycmap <backspace> <backspace2>
  547. # This special expression allows typing in numerals:
  548. cmap <allow_quantifiers> false
  549. # ===================================================================
  550. # == Pager Keybindings
  551. # ===================================================================
  552. # Movement
  553. pmap <down> pager_move down=1
  554. pmap <up> pager_move up=1
  555. pmap <left> pager_move left=4
  556. pmap <right> pager_move right=4
  557. pmap <home> pager_move to=0
  558. pmap <end> pager_move to=-1
  559. pmap <pagedown> pager_move down=1.0 pages=True
  560. pmap <pageup> pager_move up=1.0 pages=True
  561. pmap <C-d> pager_move down=0.5 pages=True
  562. pmap <C-u> pager_move up=0.5 pages=True
  563. copypmap <UP> k <C-p>
  564. copypmap <DOWN> j <C-n> <CR>
  565. copypmap <LEFT> h
  566. copypmap <RIGHT> l
  567. copypmap <HOME> g
  568. copypmap <END> G
  569. copypmap <C-d> d
  570. copypmap <C-u> u
  571. copypmap <PAGEDOWN> n f <C-F> <Space>
  572. copypmap <PAGEUP> p b <C-B>
  573. # Basic
  574. pmap <C-l> redraw_window
  575. pmap <ESC> pager_close
  576. copypmap <ESC> q Q i <F3>
  577. pmap E edit_file
  578. # ===================================================================
  579. # == Taskview Keybindings
  580. # ===================================================================
  581. # Movement
  582. tmap <up> taskview_move up=1
  583. tmap <down> taskview_move down=1
  584. tmap <home> taskview_move to=0
  585. tmap <end> taskview_move to=-1
  586. tmap <pagedown> taskview_move down=1.0 pages=True
  587. tmap <pageup> taskview_move up=1.0 pages=True
  588. tmap <C-d> taskview_move down=0.5 pages=True
  589. tmap <C-u> taskview_move up=0.5 pages=True
  590. copytmap <UP> k <C-p>
  591. copytmap <DOWN> j <C-n> <CR>
  592. copytmap <HOME> g
  593. copytmap <END> G
  594. copytmap <C-u> u
  595. copytmap <PAGEDOWN> n f <C-F> <Space>
  596. copytmap <PAGEUP> p b <C-B>
  597. # Changing priority and deleting tasks
  598. tmap J eval -q fm.ui.taskview.task_move(-1)
  599. tmap K eval -q fm.ui.taskview.task_move(0)
  600. tmap dd eval -q fm.ui.taskview.task_remove()
  601. tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
  602. tmap <pageup> eval -q fm.ui.taskview.task_move(0)
  603. tmap <delete> eval -q fm.ui.taskview.task_remove()
  604. # Basic
  605. tmap <C-l> redraw_window
  606. tmap <ESC> taskview_close
  607. copytmap <ESC> q Q w <C-c>