mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
61339a8ae2
* [tests] Test fzf's placeholders and escaping on practical commands This tests some reasonable commands in fzf's templates (for commands, previews, rebinds etc.), how are those commands escaped (backslashes, double quotes), and documents if the output is executable in cmd.exe. Both on Unix and Windows. * [tests] Add testing of placeholder parsing and matching Adds tests and bit of docs for the curly brackets placeholders in fzf's template strings. Also tests the "placeholder" regex. * [tests] Add more test cases of replacing placeholders focused on flags Replacing placeholders in templates is already tested, this adds tests that focus more on the parameters of placeholders - e.g. flags, token ranges. There is at least one test for each flag, not all combinations are tested though. * [refactoring] Split OS-specific function quoteEntry() to corresponding source file This is minor refactoring, and also the function's test was made crossplatform. * [refactoring] Simplify replacePlaceholder function Should be equivalent to the original, but has simpler structure. |
||
---|---|---|
.. | ||
algo | ||
protector | ||
tui | ||
util | ||
ansi_test.go | ||
ansi.go | ||
cache_test.go | ||
cache.go | ||
chunklist_test.go | ||
chunklist.go | ||
constants.go | ||
core.go | ||
history_test.go | ||
history.go | ||
item_test.go | ||
item.go | ||
LICENSE | ||
matcher.go | ||
merger_test.go | ||
merger.go | ||
options_test.go | ||
options.go | ||
pattern_test.go | ||
pattern.go | ||
reader_test.go | ||
reader.go | ||
result_others.go | ||
result_test.go | ||
result_x86.go | ||
result.go | ||
terminal_test.go | ||
terminal_unix.go | ||
terminal_windows.go | ||
terminal.go | ||
tokenizer_test.go | ||
tokenizer.go |