summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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
| * | | | Add a comment about encoding without previewsFichteFoll2018-03-091-0/+1
| | | | |
| * | | | Close an unclosed file handleFichteFoll2018-03-091-1/+2
| | | | |
| * | | | Add optional encoding detection with chardetFichteFoll2018-03-091-8/+30
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | If it's not available, test utf-8 and utf-16. If everything fails, fall back to latin1 as previously. Fixes #990.
* / / / Add traverse_backwards commandCaleb Bassi2018-03-291-0/+17
|/ / / | | | | | | | | | * bound to { by default
* | / Avoid calling os.getcwd()Wojciech Siewierski2018-03-071-5/+5
| |/ |/| | | | | | | | | os.getcwd() dereferences symlinks and it's usually undesirable. Fixes #1105.
* | Merge branch 'tag_add_parameters' of github:NoSuck/rangertoonn2018-02-141-4/+4
|\ \
| * | Fully encompass tag_toggleThe Flying Rapist2018-02-091-4/+4
| | |
* | | Allow to use >(...) in Bash for --choosedir & its friendsWojciech Siewierski2018-02-111-1/+1
|/ / | | | | | | | | | | | | I see no good reason why realpath was preferred there over abspath and it clearly was breaking the process substitution (">(...)") by turning for instance "/proc/self/fd/13" into "/proc/32444/fd/pipe:[4935093]", the latter not being a valid file.
* | Reload tags on resetThe Flying Rapist2018-02-091-0/+1
| | | | | | | | | | | | Without this, there is no way to reload the “tagged” file. Being able to reload it is nice, because you can tag paths using external utilities (e.g. a feh action).
* | change PATH to OUTFILE to avoid confusionAlexander Blesius2018-02-061-6/+6
|/ | | | | | The metavar "PATH" is likely being confused with the environment variable PATH. OUTFILE makes it clearer that the "PATH" in question is a file.
* Merge branch 'master' into v1.9.0hut2018-01-281-1/+2
|\
| * Added except catching for Python2.Jon Anderson2018-01-271-1/+2
| | | | | | | | | | | | | | When reading a file for which Ranger doesn't have permissions, Python3 throws an OSError. Python2 on the other hand throws a IOError, which wasn't being caught and caused Ranger to crash. IOError was added to catch statements for this reason.
* | core.main: rearranged command line itemshut2018-01-281-2/+2
|/
* Merge branch 'terminology' of https://github.com/drasill/rangerhut2017-12-201-0/+3
|\
| * Implement the terminology-based image previewsChristophe Badoit2017-05-181-0/+3
| |
* | Fix the "inconsistent-return-statements" Pylint warningWojciech Siewierski2017-12-173-22/+28
| | | | | | | | | | Some of the changes definitely could have been done better with some refactoring instead of adding a "return" or two. Patches welcome!
* | core.actions: reload rifle config on fm.reset() / Ctrl+Rhut2017-12-121-1/+2
| |
* | Merge branch 'one-indexed' of https://github.com/n1amr/rangerhut2017-10-171-0/+1
|\ \
| * | add settings option to use one indexed line numbersAmr Alaa2017-09-171-0/+1
| | |
* | | If the user config is not available, always load the global oneWojciech Siewierski2017-10-071-2/+4
| | | | | | | | | | | | | | | | | | Ignore the RANGER_LOAD_DEFAULT_RC environmental variable if the user config doesn't exist or is unreadable because not loading any config would result in an unusable ranger instance.
* | | Fix the badly indented line continuationWojciech Siewierski2017-10-071-1/+1
| | |