summary refs log tree commit diff stats
path: root/ranger
Commit message (Collapse)AuthorAgeFilesLines
* config/rc.conf: delete() does not accept argumentszmode2013-02-052-5/+2
| | | | | The delete() command as defined in rc.conf does not accept arguments, but asks for confirmation after enter is pressed.
* config/commands: helpful error message for :delete in empty dirhut2013-02-051-0/+3
|
* added tab completion for open_withhut2013-02-052-0/+14
|
* config/commands: style improvementhut2013-02-051-2/+3
|
* config/commands: fix error message in copymaphut2013-02-051-1/+1
|
* config/commands: less global importshut2013-02-051-5/+8
| | | | | | | | the point of this is that you can copy&paste commands to your own commands.py without having to care about what modules it uses. It should work as long as you import * from ranger.api.commands and make sure that you also include the base class if your command is a subclass of something other than Command.
* core.fm: ask user to update configs when updating rangerhut2013-02-051-1/+5
|
* config/commands: added tab completion to mkdir/touchhut2013-02-051-0/+6
|
* data/scope.sh: shorten previous commithut2013-02-051-2/+1
|
* data/scope.sh: fix hanging on password-protectet rar filehut2013-02-051-1/+5
|
* config/rc.conf: revert value for "xterm_alt_key" to falsehut2013-02-041-1/+1
| | | | No idea why this was turned to true by default :S
* data/scope.sh: change shebang to #!/usr/bin/env bashhut2013-02-031-1/+1
|
* Image preview: clear images without full redrawEmanuel Guevel2013-02-032-2/+18
|
* Allow to pass custom options to w3mimgdisplayEmanuel Guevel2013-02-031-2/+3
| | | | | | | | Can be useful to change image display offset or adapt to term background color. See http://w3m.cvs.sourceforge.net/viewvc/w3m/w3m/doc/README.img for available options.
* gui.ui: shift column levels by 1 when pressing "i"hut2013-02-032-0/+13
|
* widgets.pager: no unnecessary redrawing of imageshut2013-02-031-2/+4
|
* widgets.pager: draw the image at the very endhut2013-02-032-10/+11
|
* widgets.browserview: don't collapse preview when drawing imageshut2013-02-031-7/+10
|
* fsobject.file: remove is_image(), use existing "image" attributehut2013-02-033-6/+3
|
* Merge remote-tracking branch 'potato/img-preview'hut2013-02-037-12/+152
|\
| * Add 'preview_images' settingEmanuel Guevel2013-02-023-3/+4
| |
| * Display image preview using w3mimgdisplayEmanuel Guevel2013-02-025-12/+72
| | | | | | | | It works, but is rather hackish.
| * ext: add img_displayEmanuel Guevel2013-02-021-0/+79
| | | | | | | | This new file provides functions to draw images in the terminal.
* | widgets.statusbar: removed space between size and size unithut2013-02-011-1/+3
|/
* core.tab: fix incorrect pointer on tab changehut2013-01-281-1/+7
| | | | | | | | | | | | To reproduce the bug that this patch fixes, do: 1. start in a place where the second item is a directory that contains at least two files (the usual $HOME with sort_directories_first=True will likely do) 2. open (and enter) a new tab with ^N 3. move down and right, entering the directory. The cursor is now on file 1 4. switch to tab 1, then back to tab 2 5. now the cursor is on file 2 instead of file 1.
* widgets.browsercolumn: fix hidden infostring with python2hut2013-01-271-1/+1
|
* Merge branch 'master' of https://github.com/tonycpsu/rangerhut2013-01-223-2/+6
|\
| * Add option to draw status bar above the browser window with ↵root2013-01-203-2/+6
| | | | | | | | "status_bar_on_top" setting.
* | gui.displayable: turn "out of bounds" crashes into warningshut2013-01-221-12/+6
|/
* widgets.console: fix pasting of CJK charactershut2013-01-151-6/+14
|
* core.main: Fix plugins when using custom color schemeshut2013-01-121-0/+4
| | | | | | | fm.source(custom_conf) could execute a "set colorscheme = ..." which would lead to a "allow_access_to_confdir(..., False)" and that would result in ranger not being able to find plugins since the confdir is not in os.path anymore.
* config.commands: Throw error when running :delete w/ argumentshut2013-01-101-7/+3
|
* widgets.console: more documentationhut2013-01-101-0/+13
|
* config.command: fix default answers for :deletehut2013-01-101-1/+1
| | | | | "y" shouldn't be the first answer because Enter would use "y" even though it should use "n"
* config.commands: use new prompting mechanism for :deletehut2013-01-101-5/+9
|
* widgets.console: more documentationhut2013-01-101-9/+9
|
* widgets.console: remove debug codehut2013-01-101-1/+0
|
* widgets.console: implement question promptshut2013-01-102-31/+107
|
* config/commands: Added commands 'mark_tag' and 'unmark_tag'hut2013-01-011-0/+35
|
* core.actions: fix another case in tab_openhut2012-12-171-1/+4
| | | | | if you use ":tab_open 1 /path" while being in tab 1, the path should change to /path, but it doesn't.
* widgets.statusbar: avoid an exception on bad current pathhut2012-12-171-1/+5
|
* core.actions: fix incorrect tab creation in tab_openhut2012-12-171-5/+4
|
* core.tab: fix %s macro in empty directorieshut2012-12-151-1/+3
|
* config/rc.conf: fix "ot"/"oT" keybindingshut2012-12-141-2/+2
| | | | | The quotes are not required anymore since :set doesn't eval the argument anymore.
* config/rc.conf: prettier "or" keybindinghut2012-12-141-1/+1
|
* core.actions: make macros %F/%S work with new tab systemhut2012-12-141-3/+3
|
* core.tab: make tab.get_selection() cursor-agnostichut2012-12-141-1/+4
| | | | | | | Without this, if you enter another tab, the cursor of the directory may change and get_selection() will not return the actual selected file of the tab anymore (unless they have been marked, in which case everything's fine).
* core.loader: ensure that loaders are stopped on errorhut2012-12-111-4/+8
|
* core.actions: more debug outputhut2012-12-111-0/+2
|
* container.settingobject: added setting "update_tmux_title"hut2012-12-103-0/+7
|
toggle_visual_mode # For the nostalgics: Midnight Commander bindings map <F1> help map <F3> display_file map <F4> edit map <F5> copy map <F6> cut map <F7> console mkdir%space map <F8> console delete map <F10> exit # Direction keys map <UP> move up=1 map <DOWN> move down=1 map <LEFT> move left=1 map <RIGHT> move right=1 map <HOME> move to=0 map <END> move to=-1 map <PAGEDOWN> move down=1 pages=True map <PAGEUP> move up=1 pages=True map <CR> move right=1 #map <DELETE> console delete map <INSERT> console touch%space copymap <UP> <C-p> copymap <DOWN> <C-n> copymap <LEFT> <C-b> copymap <RIGHT> <C-f> copymap <HOME> <A-LT> copymap <END> <A-GT> copymap <PAGEDOWN> <A-v> copymap <PAGEUP> <C-v> # Jumping around map <C-u><C-space> history_go -1 map <A-}> move_parent 1 map <A-{> move_parent -1 map <C-x>gh cd ~ map <C-x>ge cd /etc map <C-x>gu cd /usr map <C-x>gd cd /dev map <C-x>gl cd -r . map <C-x>gL cd -r %f map <C-x>go cd /opt map <C-x>gv cd /var map <C-x>gm cd /media map <C-x>gM cd /mnt map <C-x>gs cd /srv map <C-x>gr cd / map <C-x>gR eval fm.cd(ranger.RANGERDIR) map <C-x>g/ cd / map <C-x>g? cd /usr/share/doc/ranger # External Programs map <C-x><C-f> edit map <C-x>du shell -p du --max-depth=1 -h --apparent-size map <C-x>dU shell -p du --max-depth=1 -h --apparent-size | sort -rh map <C-x>wp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b map <C-x>wd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b map <C-x>wn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b # Filesystem Operations map <C-x>= chmod map <A-d> console rename%space map <C-e> eval fm.open_console('rename ' + fm.thisfile.relative_path) map <C-a> eval fm.open_console('rename ' + fm.thisfile.relative_path, position=7) map <C-y>y paste map <C-y>o paste overwrite=True map <C-y>l paste_symlink relative=False map <C-y>L paste_symlink relative=True map <C-y>hl paste_hardlink map <C-y>ht paste_hardlinked_subtree map <C-w> cut map <C-_>w uncut map <C-x><C-w>a cut mode=add map <C-x><C-w>r cut mode=remove map <A-w> copy map <C-x><A-w>a copy mode=add map <C-x><A-w>r copy mode=remove # Searching map <C-x>s console search_inc%space map <C-s> search_next map <C-r> search_next forward=False # Tabs #map <C-n> tab_new ~ map <C-x>b tab_move 1 map <A-Right> tab_move 1 map <A-Left> tab_move -1 map <C-x>f tab_new ~ map <C-_>k tab_restore map <a-1> tab_open 1 map <a-2> tab_open 2 map <a-3> tab_open 3 map <a-4> tab_open 4 map <a-5> tab_open 5 map <a-6> tab_open 6 map <a-7> tab_open 7 map <a-8> tab_open 8 map <a-9> tab_open 9 # Sorting map <C-x>or toggle_option sort_reverse map <C-x>oz set sort=random map <C-x>os chain set sort=size; set sort_reverse=False map <C-x>ob chain set sort=basename; set sort_reverse=False map <C-x>on chain set sort=natural; set sort_reverse=False map <C-x>om chain set sort=mtime; set sort_reverse=False map <C-x>oc chain set sort=ctime; set sort_reverse=False map <C-x>oa chain set sort=atime; set sort_reverse=False map <C-x>ot chain set sort=type; set sort_reverse=False map <C-x>oe chain set sort=extension; set sort_reverse=False map <C-x>oS chain set sort=size; set sort_reverse=True map <C-x>oB chain set sort=basename; set sort_reverse=True map <C-x>oN chain set sort=natural; set sort_reverse=True map <C-x>oM chain set sort=mtime; set sort_reverse=True map <C-x>oC chain set sort=ctime; set sort_reverse=True map <C-x>oA chain set sort=atime; set sort_reverse=True map <C-x>oT chain set sort=type; set sort_reverse=True map <C-x>oE chain set sort=extension; set sort_reverse=True map <C-x>dc get_cumulative_size # Settings map <C-x>zc toggle_option collapse_preview map <C-x>zd toggle_option sort_directories_first map <C-x>zh toggle_option show_hidden map <C-x>zi toggle_option flushinput map <C-x>zm toggle_option mouse_enabled map <C-x>zp toggle_option preview_files map <C-x>zP toggle_option preview_directories map <C-x>zs toggle_option sort_case_insensitive map <C-x>zu toggle_option autoupdate_cumulative_size map <C-x>zv toggle_option use_preview_script map <C-x>zf console filter%space # Bookmarks map <C-x>rb<any> enter_bookmark %any map <C-x>rm<any> set_bookmark %any map <C-x>ru<any> unset_bookmark %any map <C-x>rb<bg> draw_bookmarks copymap <C-x>rb<bg> <C-x>rm<bg> <C-x>ru<bg> # Generate all the chmod bindings with some python help: eval for arg in "rwxXst": cmd("map <C-x>+u{0} shell -f chmod u+{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>+g{0} shell -f chmod g+{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>+o{0} shell -f chmod o+{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>+a{0} shell -f chmod a+{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>+{0} shell -f chmod u+{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>-u{0} shell -f chmod u-{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>-g{0} shell -f chmod g-{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>-o{0} shell -f chmod o-{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>-a{0} shell -f chmod a-{0} %s".format(arg)) eval for arg in "rwxXst": cmd("map <C-x>-{0} shell -f chmod u-{0} %s".format(arg)) # Search for letters as you type them #eval for arg in "abcdefghijklmnopqrstuvwxyz": cmd("map {0} console search_inc {0}".format(arg)) # =================================================================== # == Define keys for the console # =================================================================== # Note: Unmapped keys are passed directly to the console. # Basic cmap <tab> eval fm.ui.console.tab() cmap <s-tab> eval fm.ui.console.tab(-1) cmap <C-g> eval fm.ui.console.close() cmap <CR> eval fm.ui.console.execute() cmap <C-l> redraw_window copycmap <C-g> <esc> copycmap <CR> <C-j> # Move around cmap <up> eval fm.ui.console.history_move(-1) cmap <down> eval fm.ui.console.history_move(1) cmap <left> eval fm.ui.console.move(left=1) cmap <right> eval fm.ui.console.move(right=1) cmap <home> eval fm.ui.console.move(right=0, absolute=True) cmap <end> eval fm.ui.console.move(right=-1, absolute=True) # Line Editing cmap <backspace> eval fm.ui.console.delete(-1) cmap <delete> eval fm.ui.console.delete(0) cmap <C-w> eval fm.ui.console.delete_word() cmap <C-k> eval fm.ui.console.delete_rest(1) cmap <C-u> eval fm.ui.console.delete_rest(-1) cmap <C-y> eval fm.ui.console.paste() # And of course the emacs way copycmap <up> <C-p> copycmap <down> <C-n> copycmap <left> <C-b> copycmap <right> <C-f> copycmap <home> <C-a> copycmap <end> <C-e> copycmap <delete> <C-d> copycmap <backspace> <C-h> # Note: There are multiple ways to express backspaces. <backspace> (code 263) # and <backspace2> (code 127). To be sure, use both. copycmap <backspace> <backspace2> # This special expression allows typing in numerals: cmap <allow_quantifiers> false # =================================================================== # == Pager Keybindings # =================================================================== # Movement pmap <down> pager_move down=1 pmap <up> pager_move up=1 pmap <left> pager_move left=4 pmap <right> pager_move right=4 pmap <home> pager_move to=0 pmap <end> pager_move to=-1 pmap <pagedown> pager_move down=1.0 pages=True pmap <pageup> pager_move up=1.0 pages=True copypmap <UP> <C-p> copypmap <DOWN> <C-n> <CR> copypmap <LEFT> <C-b> copypmap <RIGHT> <C-f> copypmap <HOME> <A-LT> copypmap <END> <A-GT> copypmap <PAGEDOWN> <C-F> <A-v> <Space> copypmap <PAGEUP> <C-B> <C-v> # Basic pmap <C-l> redraw_window pmap <C-g> pager_close copypmap <C-g> q Q i <F3> pmap E edit_file # =================================================================== # == Taskview Keybindings # =================================================================== # Movement tmap <up> taskview_move up=1 tmap <down> taskview_move down=1 tmap <home> taskview_move to=0 tmap <end> taskview_move to=-1 tmap <pagedown> taskview_move down=1.0 pages=True tmap <pageup> taskview_move up=1.0 pages=True tmap <C-d> taskview_move down=0.5 pages=True tmap <C-u> taskview_move up=0.5 pages=True copytmap <UP> k <C-p> copytmap <DOWN> j <C-n> <CR> copytmap <HOME> g copytmap <END> G copytmap <C-u> u copytmap <PAGEDOWN> n f <C-F> <Space> copytmap <PAGEUP> p b <C-B> # Changing priority and deleting tasks tmap <A-n> eval -q fm.ui.taskview.task_move(-1) tmap <A-p> eval -q fm.ui.taskview.task_move(0) tmap <C-d> eval -q fm.ui.taskview.task_remove() tmap <pagedown> eval -q fm.ui.taskview.task_move(-1) tmap <pageup> eval -q fm.ui.taskview.task_move(0) tmap <delete> eval -q fm.ui.taskview.task_remove() # Basic tmap <C-l> redraw_window tmap <C-g> taskview_close