about summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Placate our pep 8 overlordstoonn2018-10-281-4/+2
| | | | | |
| * | | | | Refactor encoding detectiontoonn2018-10-281-19/+22
| | | | | |
| * | | | | Put our guesses back in the except clausetoonn2018-10-281-13/+12
| | | | | |
| * | | | | File encoding guessing order changed.Baranovskiy Konstantin2018-10-261-13/+16
| | |_|_|/ | |/| | | | | | | | | | | | | Fixes #1350
| * | | | Broken preview of highlighted text with Python3Baranovskiy Konstantin2018-10-261-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ranger/core/loader.py: CommandLoader.generate() gets text for preview panel from scope.sh as the blocks of byrearray (max 512 bytes). This blocks immediately decoded to utf-8. But in case when muli-byte unicode characters is present they may be split and python will can't correctly to decode it. For example: b'abc\xd0', b'\x9a...' b'\xd0\x9a' - is cyrillic letter 'K' and it can't be decoded separately (UnicodeDecodeError occurs). So, received data blocks (bytearrays) must be collected and only after that decoded as one whole byrearray. Fixes #906 Fixes #967 Fixes #1166
| * | | | Restoration of scrolling in pager.Baranovskiy Konstantin2018-10-261-4/+1
| | | | | | | | | | | | | | | | | | | | Fixes #1347
| * | | | Restoration of scrolling in pager.Baranovskiy Konstantin2018-10-251-2/+2
| | |_|/ | |/| | | | | | | | | | Fixes #1347
| * | | Do not allow scrolling beyond end of file previewGermainZ2018-10-141-2/+5
| | |/ | |/|
| * | Add a bindable action for scrolling the file previewWojciech Siewierski2018-10-081-0/+11
| | |
| * | Fix a misnamed command in the documentationWojciech Siewierski2018-10-071-1/+1
| | |
| * | 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
* | / | Silence KeyError for bookmarks while expanding macrostoonn2018-12-261-2/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation for the `%any_path` macro relies on the bookmark being defined, however when expanding the macro for uses of `%any` that don't involve existing bookmarks you get error messages even though the failure's expected. Simplest solution is to just fail silently, like the existing `%any` macro already did. Lazy evaluation would silence the error for all uses of `%any`, since the value for `%any_path` would never be used, but that would require altering all the generation and consumption of macro values. Another solution is to only resolve the `%any_path` macro when it's necessary but that would involve changing the way `wildcards` are passed distinguishing between `any` and `any_path` macros. Fixes #1419
* | | 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