Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | doc: Document setinpath and setinregex | toonn | 2021-09-05 | 2 | -23/+57 |
| | | | | Fixes #2355 | ||||
* | commands: Implement setinregex | toonn | 2021-09-05 | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | The original behavior of `setlocal` allowed to pass in a regular expression that would be matched to paths. This was confusing for some users because many paths contain regular expression metacharacters and these would affect in which directories the settings apply in unexpected ways. To remedy this we decided to escape all metacharacters by default but this came at the cost of being unable to specify precisely which directories would match, as this made use of the `$` metacharacter with the original behavior. The behavior has been fixed to never match subdirectories but changing back to the original behavior and introducing a second backwards incompatible change was deemed a bad idea. So we decided to make `setlocal` an alias for the new `setinpath` and implement a `setinregex` that exhibits the original `setlocal` behavior, allowing for complex regular expressions. | ||||
* | commands: Rename setlocal to setinpath | toonn | 2021-09-05 | 1 | -18/+75 |
| | | | | | | | | | | | | | The `setlocal` name is hard to remember, `setintag` is much easier to recall, so we will follow the same naming style. `setlocal` remains available as an alias for `setinpath`. A new abstract class, `_setlocal`, is introduced as a basis for the `setinpath` command because we want to reuse it for the original behavior of `setlocal`. Several bug fixes have been integrated in this new base class. The shifting of arguments was only incidentally correct most of the time. The matching of quoted arguments only worked in the absence of nested quotes. | ||||
* | man: Regex chars have to be escaped in setlocal | jakanakae-envangel | 2021-09-02 | 2 | -3/+5 |
| | |||||
* | Make setlocal path=... argument a regex again | jakanakae-envangel | 2021-09-02 | 2 | -2/+2 |
| | | | | | | The man page says that the path argument to the setlocal command is a regex. This commit fixes the regression in 5b0b73fc, which made it a normal string. | ||||
* | Merge branch 'doc-deletion-confirmation' | toonn | 2021-09-01 | 1 | -1/+1 |
|\ | |||||
| * | Fix deletion confirmation default indication | toonn | 2020-08-22 | 2 | -2/+2 |
| | | |||||
* | | Merge branch 'drop-open23' | toonn | 2021-09-01 | 15 | -113/+82 |
|\ \ | |||||
| * | | bookmarks: Drop str requirement for bookmarks | toonn | 2021-09-01 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | In Python 2 they could be unicode objects instead. And if they're not we need to decode them before writing. | ||||
| * | | console: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | colorscheme: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -1/+1 |
| | | | |||||
| * | | vcs: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -1/+1 |
| | | | |||||
| * | | spawn: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -1/+1 |
| | | | |||||
| * | | popen_forked: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -2/+3 |
| | | | |||||
| * | | runner: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | metadata: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | main: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -4/+8 |
| | | | |||||
| * | | loader: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -1/+3 |
| | | | |||||
| * | | fm: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | actions: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -3/+7 |
| | | | |||||
| * | | tags: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -2/+4 |
| | | | |||||
| * | | bookmarks: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -3/+3 |
| | | | |||||
| * | | commands: Force UTF-8 encoding | toonn | 2021-09-01 | 1 | -3/+3 |
| | | | |||||
| * | | open23: Drop in favor of io.open | toonn | 2021-09-01 | 1 | -50/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | The @contextmanager decorator wrapped the file object in a `_GeneratorContextManager` object. This means you cannot access the same members on such an object and the stdlib expects to be able to do so. Fixes #2442 | ||||
| * | | actions: Fix source to encode lines to ASCII | toonn | 2021-09-01 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | The machinery behind `:source` expects "str"s everywhere so this is the easiest way to allow switching to `io.open()` without causing problems. | ||||
| * | | actions: Switch to io.open | toonn | 2021-09-01 | 1 | -7/+7 |
| | | | |||||
| * | | console: Switch to io.open | toonn | 2021-09-01 | 1 | -3/+3 |
| | | | |||||
| * | | colorscheme: Switch to io.open | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | vcs: Switch to io.open | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | spawn: Switch to io.open | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | popen_forked: Switch to io.open | toonn | 2021-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | runner: Switch to io.open | toonn | 2021-09-01 | 1 | -3/+4 |
| | | | |||||
| * | | metadata: Switch to io.open | toonn | 2021-09-01 | 1 | -3/+4 |
| | | | |||||
| * | | main: Switch to io.open | toonn | 2021-09-01 | 1 | -6/+6 |
| | | | |||||
| * | | loader: Switch to io.open | toonn | 2021-09-01 | 1 | -6/+6 |
| | | | |||||
| * | | fm: Switch to io.open | toonn | 2021-09-01 | 1 | -5/+5 |
| | | | |||||
| * | | tags: Switch to io.open | toonn | 2021-09-01 | 1 | -4/+4 |
| | | | |||||
| * | | bookmarks: Switch to io.open | toonn | 2021-09-01 | 1 | -4/+4 |
| | | | |||||
| * | | commands: Switch to io.open | toonn | 2021-09-01 | 1 | -9/+6 |
|/ / | |||||
* | | img_display: Fix comment formatting | toonn | 2021-08-29 | 1 | -2/+1 |
| | | |||||
* | | Merge remote-tracking branch 'pirate486743186/fix-w3m-32bit' | toonn | 2021-08-29 | 1 | -3/+5 |
|\ \ | |||||
| * | | fix w3m method in 32bit | pirate486743186 | 2021-08-27 | 1 | -3/+5 |
| | | | |||||
* | | | Merge branch 'fix-tmux-fix' | toonn | 2021-08-28 | 1 | -2/+2 |
|\ \ \ | |||||
| * | | | ui: Fix crash when TMUX not in environment | toonn | 2021-08-28 | 1 | -2/+2 |
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made a mistake when merging #2201. If the "TMUX" key isn't in the environment dictionary we'll get a KeyError. Providing an empty string default should fix the problem. I applied the same logic to the check for screen because TERM isn't guaranteed to be in the environment either, though this verges os malicious. | ||||
* | | | Merge branch 'pylint3k' | toonn | 2021-08-27 | 23 | -59/+87 |
|\ \ \ | |||||
| * | | | tests: Ignore encoding in manpage test | toonn | 2021-08-27 | 1 | -3/+2 |
| | | | | |||||
| * | | | config.commands: Switch to open23, forcing UTF-8 | toonn | 2021-08-27 | 1 | -4/+7 |
| | | | | |||||
| * | | | popen_forked: PEP8 fix | toonn | 2021-08-27 | 1 | -0/+1 |
| | | | | |||||
| * | | | open23: Workaround Pylint bug | toonn | 2021-08-27 | 1 | -3/+3 |
| | | | | |||||
| * | | | api.commands: Use literals | toonn | 2021-08-27 | 1 | -1/+1 |
| | | | |