summaryrefslogtreecommitdiffstats
path: root/src/command
AgeCommit message (Collapse)Author
2022-12-15allow going to help with just `?` on WindowsCanop
2022-10-22restrict verbs to specific panels (#620)Denys Séguret
2022-10-04New escaping rules (#609)Denys Séguret
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
2022-09-23wraps mouse wheel selection in treeCanop
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)
2022-09-22remove some warningsCanop
2022-08-30upgrade version of crokeyCanop
2022-07-24fix typosKian-Meng Ang
2022-07-10allow :focus based verbs to take a patternCanop
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
2022-06-30add the set_syntax_theme verbCanop
which isn't useful right now as the theme isn't persisted. It's an addition for a future use.
2022-06-19[WIP] introduce verb arg definitionCanop
2022-03-27verb filtering by file extensionCanop
Fix #508
2022-01-31use crokey to clean keybinding related codeCanop
2022-01-30export key event parsing and formatting in crokeyCanop
This keys.rs file was copied into so many of my TUI applications, I had to make it a distinct crate.
2021-11-07consider an input containing only spaces as empty on enterCanop
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.
2021-10-29bunch of small improvements of clipboard & input fieldCanop
2021-10-22make it possible to rebind left and right arrow keysCanop
Fix #438
2021-09-05upgrade termimad to 0.16Canop
2021-08-04improve scrolling behaviorsCanop
Especially move the selection when you're at one end and you try to scroll the blocked way. Fix #419
2021-06-13`{root}` verb argumentCanop
Fix #395
2021-06-11"client-server" no longer feature gatedCanop
2021-06-02`:input_clear` internalCanop
Fix #24
2021-05-29:rename verb (and what makes it possible)Canop
new auto_exec verb argument new standard verb arguments: file-name, file-stem, file-extension and file-dot-extension
2021-05-17use lazy-static 2Canop
2021-05-08upgrade lazy-regex to 1.0Canop
2021-05-02spill some blood for the Clippy godCanop
2021-04-26better check of verb conditions, sequences not allowed on SACanop
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.
2021-04-21scrolling in staging areaCanop
2021-04-20staging area filtered with patternCanop
2021-04-20modal: '/' never appended to input if used to enter input modeCanop
2021-04-15staging area [WIP]Canop
The staging area will be the way to operate on multiple files. See issue #266 (it's far from ready)
2021-03-18Fix crash on `:input_del_word_left`Canop
Fix #361
2021-02-22use ahash of some of the hashmaps with big keysCanop
2021-02-14:line_up_no_cycle and :line_down_no_cyleCanop
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 }
2021-01-21fix "post bang" crashCanop
Fix crash on inputs like `:a!b`. Fix #326
2021-01-10experimental "modal mode"modesCanop
2020-12-13keep selection visible on unfilteringCanop
The selection was sometimes scrolled away on unfiltering. Also change some formatting.
2020-12-11use serde's derive to deserialize confCanop
2020-11-02display date and size on symlinksCanop
2020-10-21filesystems view now filterableCanop
2020-10-07change the syntax of `cols_order` in confCanop
2020-09-27fix opening of link of linkCanop
Fix #280
2020-09-24allow cmd sequences in verb executionCanop
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
2020-09-22refactor: move the invocation pattern from execution to verbCanop
2020-09-09ctrl-v now inserts the clipboard content in the inputCanop
when the "clipboard" feature is on. This behaviour may be mapped to another key, it's based on the new `:input_paste` verb
2020-07-26{line} in a verb execution pattern refers to the line numberCanop
This makes it possible to open files directly on the line which was selected in the preview
2020-07-23selected line in previewCanop
2020-07-20"client-server" featureCanop
2020-07-14previews now scrollableCanop
A little too much code duplication for scroll. I'll refactor at some point.
2020-06-27sacrifices to the Clippy godCanop
2020-06-22new internal to define readline-like input edition shortcutsCanop
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