summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
* New filter type for matching mimetypesWojciech Siewierski2018-09-081-0/+17
|
* Merge branch 'dbosst-master'toonn2018-09-081-0/+47
|\
| * Removed ghost of function definitiontoonn2018-08-231-53/+0
| |
| * Remove limit and change pos to totoonn2018-08-221-11/+5
| | | | | | | | | | | | | | Let's have the users report how they want shifting to work. You can currently create tabs at negative indices so it feels wrong not to be able to shift tabs there or have shifts of tabs at negative indices have a weird result.
| * use offset and pos to shift tabs:dbosst2018-08-221-16/+41
| | | | | | | | | | | | offset will shift the tab number as seen pos will shift the tab to the tav number given preserves as much as possible the tab numbers
| * Added: shift tabs right/leftdbosst2018-08-221-0/+28
| | | | | | | | shift selected tab right/left with ALT-p or ALT-o
| * use offset and pos to shift tabs:dbosst2018-03-281-16/+41
| | | | | | | | | | | | offset will shift the tab number as seen pos will shift the tab to the tav number given preserves as much as possible the tab numbers
| * Added: shift tabs right/leftdbosst2018-03-271-0/+28
| | | | | | | | shift selected tab right/left with ALT-p or ALT-o
* | Merge branch 'moveright'toonn2018-09-071-2/+5
|\ \
| * | Switch if/else branches to minimize negationToon Nolten2018-08-211-3/+3
| | |
| * | Fix type in execute_file docstringToon Nolten2018-08-211-1/+1
| | |
| * | Add selection argument to move actionToon Nolten2018-08-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If `selection == False` don't operate on the entire selection (the marked files) but only on the file under the cursor. Inconsistent, I noticed `move to=100 percentage=true` works as expected but `move right=1 selection=false` doesn't. You need to pass `False`, most other values test as `True` in python, so `true` works *but* surprisingly imo, `false == True`. Fixes #1233
* | | Fixed up pylint/flake8 warningstoonn2018-09-061-7/+9
| | |
* | | Add the %any_path macrotoonn2018-09-061-2/+15
|/ / | | | | | | | | | | | | | | | | | | | | | | The `%any` macro is very useful for commands that know about bookmarks. Bookmarks are just short names for paths really, so it'd be nice if they could be used with any commands that take paths as arguments. Now they can! `%any_pathX` where `X` refers to the which `<any>` the macro corresponds to (`%any_path` is synonymous with `%any_path0`) is replaced with the path of the bookmark entered if that bookmark exists. Fixes #1277
* | Merge branch 'rangerpath'Toon Nolten2018-08-201-7/+6
|\ \
| * | Check whether tfile is a dir not the entire selectionToon Nolten2018-08-201-7/+6
| | | | | | | | | | | | | | | | | | | | | Was erroneously checking the entire selection for being *a* directory but a list of 1 or more files/directories is obviously not a directory. Fixes #1269
* | | Merge pull request #1222 from Vifon/filter_stackWojciech Siewierski2018-08-201-0/+134
|\ \ \ | | | | | | | | Implement the filter stack
| * | | Add an explicit "AND" filter combinatorWojciech Siewierski2018-08-191-0/+20
| | | | | | | | | | | | | | | | Closes #1268.
| * | | Implement the filter stackWojciech Siewierski2018-07-041-0/+114
| | | | | | | | | | | | | | | | Inspired by https://github.com/Fuco1/dired-hacks#dired-filter
* | | | Merge pull request #1178 from toonn/rangerpathWojciech Siewierski2018-08-191-4/+7
|\ \ \ \ | | |/ / | |/| | Actually check whether selection is a directory for rangerpath patch
| * | | Actually check whether selection is a directoryToon Nolten2018-05-161-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `Actions.move()` used `enter_dir()` to determine whether the selection was a directory. Now we explicitly check whether it's a directory. Fixes #1177
* | | | Fix #1210 for Python 2 (it was never broken for Python 3)Wojciech Siewierski2018-07-311-1/+5
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new code from commit 08b08d70 returned a 'unicode' object instead of 'str' but here <https://github.com/ranger/ranger/blob/53e48ed044b3f69cf21a43a4c9c4450b56972165/ranger/gui/widgets/pager.py#L184> we were explicitly expecting 'str'. I wanted to use `isinstance(source, basestring)` (or `(str, unicode)` instead of `basestring`)) there but it won't work under Python 3. For now I'm re-encoding every Python 2 unicode string to a UTF-8 encoded 'str' object even though 'unicode' should work just as well, because it would be cumbersome under Python 3 otherwise.
* | | Fix the issues reported by the coverage test (#1206)Wojciech Siewierski2018-06-171-1/+1
| | | | | | | | | | | | | | | | | | Regarding the change in ranger/core/runner.py: setting the 'f' flag causes the 'r' flag to run sudo -b which forks on it own so it should be safe to not explicitly fork in this case.
* | | Merge branch 'kitty-img-preview'toonn2018-06-072-5/+9
|\ \ \ | | | | | | | | | | | | Adding kitty image previews to ranger : )
| * | | Style Fixesmark-dawn2018-05-292-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed response recieving to use bytestrings Pythonic "if b'XX' in resp:" used in response checks Disabled kitty preview when kitty is not in TERM PEP8 new style fixes Fixed operator newline in core/fm.py Added a new ignore for pylint in core/main.py:374,25: Using deprecated method load_module() (deprecated-method)
| * | | Automatic network detection, python2 and Exception fixesmark-dawn2018-05-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Created late_init method to handle task dependent on late facilities Enabled automatic network detection (required stdin to be properly init) Fixed proper handling of import Errors (required ranger Exception handling) Fixed handling of binary stdio differnces between py2/3 Unified said handling aross the module
| * | | Grammar Fixesmark-dawn2018-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | Fixed grammar horrors in ranger.pod and ranger.conf Improved resize handling
| * | | Bugfixes & Improvementsmark-dawn2018-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed support for terminology terminal emulator Fixed the annoying bug affecting fast scrolling (tnkx@kovidgoyal) Refactored some code repeated for the whole module Eliminated some dependencies
| * | | Kitty image protocol based preview, alphamark-dawn2018-05-291-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Displays images by sending kitty Application Programming Command. Requires PIL/pillow to work, possible enhancment to add a Imagemagik based version. Support for two modes, one slower that is network aware, possible enhancment to add sutomatic mode selection. Known BUGS: scrolling too fast will breakthe response catcher, leaking escape seq into stdin and corrupting the display. FIX? Ask kovidgoyal@kitty to implement a control sequence to disable responses
* | | | Fix the testsWojciech Siewierski2018-06-011-1/+2
| | | |
* | | | Add a new data type for rc.conf: floatWojciech Siewierski2018-06-011-0/+5
|/ / /
* | | Merge branch 'master' into masterWojciech Siewierski2018-05-283-32/+115
|\ \ \
| * \ \ Merge branch 'master' into detect_file_encodingWojciech Siewierski2018-05-283-23/+82
| |\ \ \
| | * | | Revert "ranger <path> can select files"hut2018-05-161-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to this commit, pressing `<Right>` on a file does nothing. Normally it should open the file. Until this is fixed, I'll remove this commit to restore this basic functionality. Unfortunately, the revert makes ranger crash when run like `ranger <somefilename>`, but this is a much less frequent use case, so the revert is still warranted. This reverts commit 2288a40b45ccdc57d287648c96c5bbe378b95a6d.
| | * | | Merge branch 'master' into breakbeforebinopshut2018-05-154-24/+87
| | |\ \ \
| | | * \ \ Merge branch 'allthetabs'toonn2018-05-152-7/+18
| | | |\ \ \
| | | | * | | Remove the implicit assumption tabs are numbers.toonn2018-04-191-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only get_tab_list() implicitly assumed that tab keys are numbers, or at least homogeneous. This assumption has now been removed by using a simple ordering class that orders numbers as expected but anything else lexically.
| | | | * | | Lift the limit on tabs for :tab_newtoonn2018-04-191-4/+4
| | | | | | |
| | | | * | | Save all the tabs, including the active tab.toonn2018-04-191-2/+2
| | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Remove the check preventing the active tab from being saved. Fixes #883
| | | * | | Merge branch 'master' of github:mxovd/ranger into mxovd-mastertoonn2018-05-141-0/+1
| | | |\ \ \
| | | | * | | Enter directory before executing command argumentsmxovd2018-04-131-0/+1
| | | | |/ /
| | | * | | Merge branch 'rangerpath'toonn2018-05-142-2/+7
| | | |\ \ \ | | | | | |/ | | | | |/|
| | | | * | Add a TODO on deprecating --selectfiletoonn2018-04-021-0/+1
| | | | | |
| | | | * | ranger <path> can select filestoonn2018-03-311-2/+6
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because `ranger somefile` used to invoke rifle but that moved to its own command `ranger somefile` seemed defunct. People expected ranger to select the file and were baffled when it crashed. Now the documentation using the verbiage "path" is no longer confusing/a lie because it just works™ (until it breaks). Fixes #930
| | | * | Merge branch 'start-path-resolving'toonn2018-05-091-4/+19
| | | |\ \
| | | | * | Implemented unit test for recent fixtau32018-02-151-2/+2
| | | | | |
| | | | * | Fixed start path resolving in case of absent working directorytau32018-02-151-4/+19
| | | | | |
| | | * | | Merge branch 'systemconf'toonn2018-05-081-12/+44
| | | |\ \ \ | | | | |_|/ | | | |/| |
| | | | * | Load system-wide configuration files.toonn2018-02-011-12/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both rc.conf and commands.py are now additionally loaded from `/etc/ranger` if they exist. Fix #869
| | * | | | MISSION CRITICAL update to adhere to pep8toonn2018-04-211-2/+2
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pep8 was changed to recommend breaking lines *before* rather than after binary operators. This patch makes everything right with the universe. Fixes #1145