From c0f2fc72eccb4127fba5f48ce4b422487d6ec752 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 13 Apr 2015 12:49:49 +0200 Subject: moved "doc/examples" to "examples" for more visibility --- examples/vim_file_chooser.vim | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/vim_file_chooser.vim (limited to 'examples/vim_file_chooser.vim') diff --git a/examples/vim_file_chooser.vim b/examples/vim_file_chooser.vim new file mode 100644 index 00000000..aa3af763 --- /dev/null +++ b/examples/vim_file_chooser.vim @@ -0,0 +1,36 @@ +" Compatible with ranger 1.4.2 through 1.6.* +" +" Add ranger as a file chooser in vim +" +" If you add this code to the .vimrc, ranger can be started using the command +" ":RangerChooser" or the keybinding "r". Once you select one or more +" files, press enter and ranger will quit again and vim will open the selected +" files. + +function! RangeChooser() + let temp = tempname() + " The option "--choosefiles" was added in ranger 1.5.1. Use the next line + " with ranger 1.4.2 through 1.5.0 instead. + "exec 'silent !ranger --choosefile=' . shellescape(temp) + exec 'silent !ranger --choosefiles=' . shellescape(temp) + if !filereadable(temp) + redraw! + " Nothing to read. + return + endif + let names = readfile(temp) + if empty(names) + redraw! + " Nothing to open. + return + endif + " Edit the first item. + exec 'edit ' . fnameescape(names[0]) + " Add any remaning items to the arg list/buffer list. + for name in names[1:] + exec 'argadd ' . fnameescape(name) + endfor + redraw! +endfunction +command! -bar RangerChooser call RangeChooser() +nnoremap r :RangerChooser -- cgit 1.4.1-2-gfad0 From 89146651e07830f15b59b5f076d61741747a0bea Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 14 Apr 2015 00:25:24 +0200 Subject: Should I dual ranger/cleric or wait for the THAC0 bonus? Squashed commit of the following: commit 7236dde27bf33fec5097c223f0d70598b10ba05f Author: hut Date: Mon Apr 13 14:33:59 2015 +0200 wrote changelog entry commit 73e76b0f9a22ad8122154c4a2763c27ebce9be37 Author: hut Date: Mon Apr 13 13:41:27 2015 +0200 update version number in man page commit b1948b9382027ed55d095a936610bc62f7cdba9a Author: hut Date: Mon Apr 13 13:41:08 2015 +0200 update rifle version number commit a96a8a808a3c68eb848a3e0361fd95cb8c643d59 Author: hut Date: Mon Apr 13 13:34:59 2015 +0200 s/ranger-master/ranger-stable/ commit 6967a48193227b4a0c843e8831e5511005179f69 Author: hut Date: Mon Apr 13 13:33:06 2015 +0200 updated version number commit 0cbc401fd25fc4d307d026628e12ef1106a42bdf Author: hut Date: Mon Apr 13 13:18:26 2015 +0200 updated version info in example plugins --- CHANGELOG | 24 ++++++++++++++++++++++++ README.md | 2 +- doc/ranger.1 | 2 +- doc/rifle.1 | 2 +- examples/bash_automatic_cd.sh | 2 +- examples/bash_subshell_notice.sh | 2 +- examples/plugin_chmod_keybindings.py | 2 +- examples/plugin_file_filter.py | 2 +- examples/plugin_hello_world.py | 2 +- examples/plugin_new_macro.py | 2 +- examples/plugin_new_sorting_method.py | 2 +- examples/rifle_different_file_opener.conf | 2 +- examples/rifle_sxiv.sh | 2 +- examples/vim_file_chooser.vim | 2 +- ranger/__init__.py | 4 ++-- ranger/ext/rifle.py | 2 +- 16 files changed, 40 insertions(+), 16 deletions(-) (limited to 'examples/vim_file_chooser.vim') diff --git a/CHANGELOG b/CHANGELOG index c5237279..041a7701 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,29 @@ This log documents changes between stable versions. +2015-04-13: version 1.7.0 +* The default editor is now "vim" instead of "nano" +* Added automatic updates of tags when a file is renamed from within ranger +* Added "preview_images_method" which can be set to "iterm2" to use native + iTerm2 image previews +* Added ":rename_append" command to rename files without the file extension +* Added ":linemode" command to change the way the files are displayed + Try this out by pressing M followed by one of the suggested keys. + New linemodes can be added with ranger.api.register_linemode(). +* Added ":filter_by_inode" command to only show directories, files or links +* Added ":meta" command for managing custom file metadata +* Added ":flat" command for displaying subdirectories +* Added "solarized" colorscheme +* Added generic ability to use scope.sh for image previews +* Added video previews in scope.sh +* Added option "sort_unicode" to sort according to unicode, not ASCII +* ":mkdir" can now create multiple directory levels (like `mkdir -p`) +* ":help" (key binding "?") is now interactive +* ":find" (key binding "/") is now case insensitive by default +* "ranger --copy-config=all" now copies a short sample commands.py rather than + the full one, so that you can update ranger without having broken commands. + The full commands.py is still copied to ~/.config/ranger/commands_full.py. +* Fixed broken copying of symlinks + 2013-05-24: Version 1.6.1 * Added support for version control systems, see: http://lists.nongnu.org/archive/html/ranger-users/2013-03/msg00007.html diff --git a/README.md b/README.md index a2026084..b5e42455 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -ranger v.1.6.1 +ranger v.1.7.0 ============== ranger is a console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. diff --git a/doc/ranger.1 b/doc/ranger.1 index 17795a7c..e7f64add 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.6.1" "04/13/2015" "ranger manual" +.TH RANGER 1 "ranger-1.7.0" "04/13/2015" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff --git a/doc/rifle.1 b/doc/rifle.1 index 21c53276..95010452 100644 --- a/doc/rifle.1 +++ b/doc/rifle.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RIFLE 1" -.TH RIFLE 1 "rifle-1.6.1" "04/10/2015" "rifle manual" +.TH RIFLE 1 "rifle-1.7.0" "04/13/2015" "rifle manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff --git a/examples/bash_automatic_cd.sh b/examples/bash_automatic_cd.sh index 465c9c80..ac96ea12 100644 --- a/examples/bash_automatic_cd.sh +++ b/examples/bash_automatic_cd.sh @@ -1,4 +1,4 @@ -# Compatible with ranger 1.4.2 through 1.6.* +# Compatible with ranger 1.4.2 through 1.7.* # # Automatically change the directory in bash after closing ranger # diff --git a/examples/bash_subshell_notice.sh b/examples/bash_subshell_notice.sh index bc44d5a8..4c9269c4 100644 --- a/examples/bash_subshell_notice.sh +++ b/examples/bash_subshell_notice.sh @@ -1,4 +1,4 @@ -# Compatible with ranger 1.5.3 through 1.6.* +# Compatible with ranger 1.5.3 through 1.7.* # # Change the prompt when you open a shell from inside ranger # diff --git a/examples/plugin_chmod_keybindings.py b/examples/plugin_chmod_keybindings.py index 0ab975ed..1c9558f7 100644 --- a/examples/plugin_chmod_keybindings.py +++ b/examples/plugin_chmod_keybindings.py @@ -1,4 +1,4 @@ -# Compatible with ranger 1.6.* +# Compatible with ranger 1.6.0 through ranger 1.7.* # # This plugin serves as an example for adding key bindings through a plugin. # It could replace the ten lines in the rc.conf that create the key bindings diff --git a/examples/plugin_file_filter.py b/examples/plugin_file_filter.py index b9bea1f3..d5ea2d2d 100644 --- a/examples/plugin_file_filter.py +++ b/examples/plugin_file_filter.py @@ -1,4 +1,4 @@ -# Compatible since ranger 1.6.1, git commit c82a8a76989c +# Compatible since ranger 1.7.0 (git commit c82a8a76989c) # # This plugin hides the directories "/boot", "/sbin", "/proc" and "/sys" unless # the "show_hidden" option is activated. diff --git a/examples/plugin_hello_world.py b/examples/plugin_hello_world.py index a803e21b..b64916d4 100644 --- a/examples/plugin_hello_world.py +++ b/examples/plugin_hello_world.py @@ -1,4 +1,4 @@ -# Compatible with ranger 1.6.* +# Compatible with ranger 1.6.0 through 1.7.* # # This is a sample plugin that displays "Hello World" in ranger's console after # it started. diff --git a/examples/plugin_new_macro.py b/examples/plugin_new_macro.py index 159a92f2..6757e491 100644 --- a/examples/plugin_new_macro.py +++ b/examples/plugin_new_macro.py @@ -1,4 +1,4 @@ -# Compatible with ranger 1.6.* +# Compatible with ranger 1.6.0 through 1.7.* # # This plugin adds the new macro %date which is substituted with the current # date in commands that allow macros. You can test it with the command diff --git a/examples/plugin_new_sorting_method.py b/examples/plugin_new_sorting_method.py index 6b41b0e1..c6e35a68 100644 --- a/examples/plugin_new_sorting_method.py +++ b/examples/plugin_new_sorting_method.py @@ -1,4 +1,4 @@ -# Compatible with ranger 1.6.* +# Compatible with ranger 1.6.0 through 1.7.* # # This plugin adds the sorting algorithm called 'random'. To enable it, type # ":set sort=random" or create a key binding with ":map oz set sort=random" diff --git a/examples/rifle_different_file_opener.conf b/examples/rifle_different_file_opener.conf index 4a8250b8..695f27c6 100644 --- a/examples/rifle_different_file_opener.conf +++ b/examples/rifle_different_file_opener.conf @@ -1,4 +1,4 @@ -# Compatible with ranger 1.6.* +# Compatible with ranger 1.6.0 through 1.7.* # # Replace your rifle.conf with this file to use xdg-open as your file opener. # This is, of course, adaptable for use with any other file opener. diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh index 6307f1c2..8cb13907 100755 --- a/examples/rifle_sxiv.sh +++ b/examples/rifle_sxiv.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Compatible with ranger 1.6.* +# Compatible with ranger 1.6.0 through 1.7.* # # This script searches image files in a directory, opens them all with sxiv and # sets the first argument to the first image displayed by sxiv. diff --git a/examples/vim_file_chooser.vim b/examples/vim_file_chooser.vim index aa3af763..fb9b7e1b 100644 --- a/examples/vim_file_chooser.vim +++ b/examples/vim_file_chooser.vim @@ -1,4 +1,4 @@ -" Compatible with ranger 1.4.2 through 1.6.* +" Compatible with ranger 1.4.2 through 1.7.* " " Add ranger as a file chooser in vim " diff --git a/ranger/__init__.py b/ranger/__init__.py index b850f455..fa9ba033 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -13,7 +13,7 @@ import os # Information __license__ = 'GPL3' -__version__ = '1.6.1' +__version__ = '1.7.0' __author__ = __maintainer__ = 'Roman Zimbelmann' __email__ = 'hut@hut.pm' @@ -27,7 +27,7 @@ DEFAULT_PAGER = 'less' LOGFILE = '/tmp/ranger_errorlog' CACHEDIR = os.path.expanduser("~/.cache/ranger") USAGE = '%prog [options] [path]' -VERSION = 'ranger-master %s\n\nPython %s' % (__version__, sys.version) +VERSION = 'ranger-stable %s\n\nPython %s' % (__version__, sys.version) # If the environment variable XDG_CONFIG_HOME is non-empty, CONFDIR is ignored # and the configuration directory will be $XDG_CONFIG_HOME/ranger instead. diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 640cb382..3f360968 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -19,7 +19,7 @@ import re from subprocess import Popen, PIPE import sys -__version__ = 'rifle 1.6.1' +__version__ = 'rifle 1.7.0' # Options and constants that a user might want to change: DEFAULT_PAGER = 'less' -- cgit 1.4.1-2-gfad0