summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Temporarily disable open_all_images if there are too many imagesWojciech Siewierski2019-03-101-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | In extreme cases, all the images may be too much to handle by the system ("Argument list too long", errno 7). In such cases, let's Do The Right Thing™ and temporarily disable the open_all_images setting. Without this option we'll only open the single image. Fixes #1488.
* | | Fix dest check for :pastetoonn2019-03-051-7/+7
| | | | | | | | | | | | | | | | | | | | | The new destination argument for `:paste` requires a guard on whether it is a valid target. A bug snuck in because of copious negation : ) This is now fixed, we only allow the target to be a directory or `None` which means the current tab's working directory.
* | | Minor docstring rephrasingtoonn2019-02-281-2/+2
| | |
* | | Fixing the dumb clearing mistakeStanislav Arnaudov2019-02-271-1/+1
| | |
* | | Clearing up some whitespacesStanislav Arnaudov2019-02-262-2/+2
| | |
* | | Implementing destination argument for the built in paste commandStanislav Arnaudov2019-02-242-7/+12
| | |
* | | Ensure that `--clean` doesn't require writable confdirhut2019-02-052-3/+12
| | |
* | | Merge pull request #1418 from cjbassi/masterWojciech Siewierski2019-01-251-2/+9
|\ \ \ | | | | | | | | Load plugin directories located in ~/.config/ranger/plugins
| * | | Load plugin directories located in ~/.config/ranger/pluginsCaleb Bassi2019-01-241-2/+9
| |/ /
* | | Don't create the image cache directory preemptivelyWojciech Siewierski2019-01-091-5/+0
| | | | | | | | | | | | | | | | | | Since now this directory is recreated if needed on each use of it, there is no need to create it just because the user has these options enabled on startup.
* | | Always check for the image cache directory and create it if neededWojciech Siewierski2019-01-091-0/+2
| | | | | | | | | | | | Fixes #1435.
* | | Merge branch 'master' into anypathmacroWojciech Siewierski2018-12-264-27/+117
|\| |
| * | Merge branch 'seebye-master'toonn2018-11-071-1/+5
| |\ \
| | * \ Merge branch 'master' into masterWojciech Siewierski2018-10-272-9/+11
| | |\ \
| | * \ \ Merge branch 'master' into masterseebye2018-10-251-2/+5
| | |\ \ \ | | | | |/ | | | |/|
| | * | | Merge branch 'master' into masterseebye2018-10-102-5/+98
| | |\ \ \
| | * | | | quit image displayer on changing preview_images_methodseebye2018-08-281-0/+2
| | | | | |
| | * | | | support ueberzug image displayerseebye2018-08-251-1/+3
| | | | | |
| * | | | | 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