Age | Commit message (Collapse) | Author |
|
|
|
|
|
As was noticed by @FedericoStra, escaping for regular expressions was painful. For example you had to do `/\\d` to search for a digit.
This PR brings more complex escaping rules so that less escaping is necessary:
- when after '/': only ' ', ':', '/' and '\' need escaping
- otherwise, '&,' '|', '(', ')', '\' need escaping
Fix #592
|
|
Selecting lines up or down with the mouse wheel now wraps in both direction (ie going up when your on top brings you to the bottom, and vice-versa)
|
|
|
|
|
|
|
|
This allows verb definitions such as the following ones:
```Hjson
{
invocation: "gos"
execution: ":focus"
}
{
invocation: "go {path}"
execution: ":focus {path}"
}
{
invocation: "goroot"
execution: ":focus /"
}
{
invocation: "gotar {path}"
execution: ":focus {path}/target"
}
```
Fix #389
|
|
which isn't useful right now as the theme isn't persisted.
It's an addition for a future use.
|
|
|
|
Fix #508
|
|
|
|
This keys.rs file was copied into so many of my TUI applications,
I had to make it a distinct crate.
|
|
Previously, when typing a space to start a verb, not typing
it, then typing enter to open, a 'verb "" not found' message
was displayed. Now the space is just ignored.
|
|
|
|
Fix #438
|
|
|
|
Especially move the selection when you're at one end and you
try to scroll the blocked way. Fix #419
|
|
Fix #395
|
|
|
|
Fix #24
|
|
new auto_exec verb argument
new standard verb arguments:
file-name, file-stem, file-extension and file-dot-extension
|
|
|
|
|
|
|
|
The execution of a verb can have many different side effects
affecting the execution of a following one: a verb can (un)stage,
change files, change their types, change the focused panel, etc.
It's too hard to reason about all those effects, and this can't
be expected from the user. So, at least for now, I forbid sequence
execution on multiple files.
|
|
|
|
|
|
|
|
The staging area will be the way to operate on multiple files.
See issue #266
(it's far from ready)
|
|
Fix #361
|
|
|
|
May be mapped instead of :line_up and :line_down when you
don't want to cycle (ie arrive on top when you go down past
the end of the tree/list):
{
key: ctrl-u
internal: line_up_no_cycle
}
{
key: ctrl-j
internal: line_down_no_cycle
}
|
|
Fix crash on inputs like `:a!b`.
Fix #326
|
|
|
|
The selection was sometimes scrolled away on unfiltering.
Also change some formatting.
|
|
|
|
|
|
|
|
|
|
Fix #280
|
|
The syntax changed. Instead of `execution` (which is still allowed),
`internal`, `external` and `cmd` are now prefered.
The syntax of the `cmd` property is the same than the `--cmd`
launch argument, with the added possibility to have dynamic parts.
Two examples of sequence based verbs:
[[verbs]]
name = "myplaces"
key = "ctrl-g"
cmd = ":focus ~;:!focus /"
[[verbs]]
name = "backup"
invocation = "bu {name}"
cmd = ":cp {file}-back_{name};:!focus {file}-back_{name}"
apply_to = "directory"
Fix #277
|
|
|
|
when the "clipboard" feature is on.
This behaviour may be mapped to another key, it's based on
the new `:input_paste` verb
|
|
This makes it possible to open files directly on the line
which was selected in the preview
|
|
|
|
|
|
A little too much code duplication for scroll.
I'll refactor at some point.
|
|
|
|
You may now add this kind of shortcuts:
```toml
[[verbs]]
key = "alt-b"
execution = ":input_go_word_left"
[[verbs]]
key = "alt-f"
execution = ":input_go_word_right"
[[verbs]]
key = "alt-l"
execution = ":input_del_word_left"
[[verbs]]
key = "alt-r"
execution = ":input_del_word_right"
```
Fix #235
|