From 25e47de2051c5be62604d93cc1d27965263a8294 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 29 Sep 2011 23:17:36 +0200 Subject: core.actions: fixed cycling by atime and mtime --- ranger/core/actions.py | 4 ++++ ranger/defaults/keys.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index c8dffa55..163cc3d6 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -424,6 +424,10 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): fnc = lambda item: item.mimetype elif order == 'ctime': fnc = lambda item: -int(item.stat and item.stat.st_ctime) + elif order == 'atime': + fnc = lambda item: -int(item.stat and item.stat.st_atime) + elif order == 'mtime': + fnc = lambda item: -int(item.stat and item.stat.st_mtime) lst.sort(key=fnc) cwd.set_cycle_list(lst) return cwd.cycle(forward=None) diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index e8acebb7..14ecef54 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -311,9 +311,11 @@ map('n', fm.search()) map('N', fm.search(forward=False)) map('c', fm.hint('*w*:rename ch*d*ir *search order:* ' \ - '*c*time *m*imetype *s*ize *t*ag')) + '*a*time *c*time *M*time *m*imetype *s*ize *t*ag')) map('ct', fm.search(order='tag')) map('cc', fm.search(order='ctime')) +map('ca', fm.search(order='atime')) +map('cM', fm.search(order='mtime')) map('cm', fm.search(order='mimetype')) map('cs', fm.search(order='size')) -- cgit 1.4.1-2-gfad0 From df6ceefe462d2e8927a507731e158fa0117d26f3 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 2 Oct 2011 17:46:35 +0200 Subject: manpage: document --choosedir and --choosefile --- doc/ranger.1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/ranger.1 b/doc/ranger.1 index 5b9d9df8..2b70cb18 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -33,6 +33,15 @@ Activate the clean mode: Ranger will not access or create any configuration files nor will it leave any traces on your system. This is useful when your configuration is broken, when you want to avoid clutter, etc. .TP +--choosefile=\fItargetfile\fR +Allows you to pick a file with ranger. This changes the behavior so that when +you open a file, ranger will exit and write the name of that file into +\fItargetfile\fR +.TP +--choosedir=\fItargetfile\fR +Allows you to pick a directory with ranger. When you exit ranger, it will +write the last visited directory into \fItargetfile\fR +.TP --copy-config=\fIwhich\fR Create copies of the default configuration files in your local configuration directory. Existing ones will not be overwritten. Possible values: -- cgit 1.4.1-2-gfad0 From 8f1a9a3a026aefc5092f1facebcb1a4f4de06bed Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 2 Oct 2011 17:47:21 +0200 Subject: manpage: updated website URL --- doc/ranger.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ranger.1 b/doc/ranger.1 index 2b70cb18..bee26231 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -223,7 +223,7 @@ not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .\"----------------------------------------- .SH SEE ALSO The project page: -.RB < http://savannah.nongnu.org/projects/ranger > +.RB < http://ranger.nongnu.org/ > .P The mailing list: .RB < http://savannah.nongnu.org/mail/?group=ranger > -- cgit 1.4.1-2-gfad0 From e9b880e2ef4da102846d9f75a65f7503500d73da Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 2 Oct 2011 18:02:02 +0200 Subject: Revert "defaults/keys: use = key for octal chmodding" This generates 512 keybindings which make ranger start almost twice as long. Just use the :chmod command instead. This reverts commit b441d4b3147c9399d7452074297c2a10d7f899ba. --- ranger/defaults/keys.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 14ecef54..07591691 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -196,23 +196,19 @@ map('ud', 'uy', fm.uncut()) # ------------------------------------ changing of file permissions # type "+ow" for "chmod o+w %s" and so on from itertools import product -octal_help = 'Enter the octal mode number for chmod' -symbolic_help = '%s %s to *r*ead, *w*rite, e*x*ecute' for mode in product('ugoa', 'rwxXst'): map('-%s%s' % mode, fm.execute_console('shell chmod %s-%s %%s' % mode)) map('+%s%s' % mode, fm.execute_console('shell chmod %s+%s %%s' % mode)) -for n in product(range(8), range(8), range(8)): - map('=%d%d%d' % n, fm.execute_console('shell chmod %d%d%d %%s' % n)) - map('=%d' % n[0], fm.hint(octal_help)) - map('=%d%d' % (n[0], n[1]), fm.hint(octal_help)) + map('=%s%s' % mode, fm.execute_console('shell chmod %s+%s %%s' % mode)) # hints: +template = '%s %s to *r*ead, *w*rite, e*x*ecute' for who, name in zip('ugoa', ('user', 'group', 'others', 'all')): - map('-%s' % who, fm.hint(symbolic_help % ('forbid', name))) - map('+%s' % who, fm.hint(symbolic_help % ('allow', name))) + map('-%s' % who, fm.hint(template % ('forbid', name))) + map('+%s' % who, fm.hint(template % ('allow', name))) + map('=%s' % who, fm.hint(template % ('allow', name))) map('-', '+', '=', fm.hint('change permission for *u*ser, ' '*g*roup, *o*thers, *a*ll')) -map('=', fm.hint(octal_help)) # ---------------------------------------------------- run programs map('S', fm.execute_command(os.environ['SHELL'])) -- cgit 1.4.1-2-gfad0 From 5abcb148c09184d788f2f5352025f63bc23da2e1 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 2 Oct 2011 18:09:48 +0200 Subject: One in five ranger users use it exclusively for browsing porn --- CHANGELOG | 21 +++++++++++++++++---- README | 2 +- doc/ranger.1 | 2 +- ranger/__init__.py | 2 +- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f934591d..718a180c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,20 @@ -NOTE: This log only documents changes between stable versions. -Stable versions are identifiable (since 1.2) through their even minor -version number, like 1.2.x, 1.4.x, etc. Odd minor version numbers -are used for rolling-release git snapshots. +This log documents changes between stable versions. + +2011-10-02: Version 1.4.4 +* Added various key bindings +* Fixed blocking when using interactive scripts in scope.sh +* Added wavpack and webm types to mime.types +* Forbid piping things into ranger +* Added bittorrent preview +* Improved hints +* Added option "display_tags_in_all_columns" +* Fixed issues with ALT key +* Added command.cancel method which is called when pressing ESC in console +* Added sorting and cycling by ctime and atime +* Added custom tags (press "x) +* Fixed pager crash when trying to read non-readable file +* Added keys for chmod (like +ow for "chmod o+w", etc) +* Added "c" flag for running files 2011-04-05: Version 1.4.3 * Fixed mimetype checking when invoking ranger with a filename diff --git a/README b/README index 2b46411f..e11a7b99 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Ranger v.1.4.3 +Ranger v.1.4.4 ============== Ranger is a free console file manager that gives you greater flexibility diff --git a/doc/ranger.1 b/doc/ranger.1 index bee26231..08776fc7 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -1,4 +1,4 @@ -.TH RANGER 1 ranger-1.4.3 +.TH RANGER 1 ranger-1.4.4 .SH NAME ranger - visual file manager .\"----------------------------------------- diff --git a/ranger/__init__.py b/ranger/__init__.py index 03a1d2da..3d2633cd 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -29,7 +29,7 @@ from ranger.core.main import main # Information __license__ = 'GPL3' -__version__ = '1.4.3' +__version__ = '1.4.4' __author__ = __maintainer__ = 'Roman Zimbelmann' __email__ = 'romanz@lavabit.com' -- cgit 1.4.1-2-gfad0 From fc0c76f9fa577cb8e5db2ba75963864c6ef67b33 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 2 Oct 2011 18:38:54 +0200 Subject: CHANGELOG: sorted items --- CHANGELOG | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 718a180c..5152c73e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,20 +1,20 @@ This log documents changes between stable versions. 2011-10-02: Version 1.4.4 +* Added keys for chmod (like +ow for "chmod o+w", etc) +* Added "c" flag for running files * Added various key bindings -* Fixed blocking when using interactive scripts in scope.sh * Added wavpack and webm types to mime.types -* Forbid piping things into ranger -* Added bittorrent preview -* Improved hints * Added option "display_tags_in_all_columns" -* Fixed issues with ALT key * Added command.cancel method which is called when pressing ESC in console * Added sorting and cycling by ctime and atime * Added custom tags (press "x) +* Added bittorrent preview +* Fixed blocking when using interactive scripts in scope.sh +* Fixed issues with ALT key * Fixed pager crash when trying to read non-readable file -* Added keys for chmod (like +ow for "chmod o+w", etc) -* Added "c" flag for running files +* Forbid piping things into ranger +* Improved hints 2011-04-05: Version 1.4.3 * Fixed mimetype checking when invoking ranger with a filename -- cgit 1.4.1-2-gfad0