summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)Author
2025-03-17[bash] Fix $FZF_COMPLETION_{DIR,PATH}_OPTS to support non-trivial argumentsJunegunn Choi
This used to fail with 'unknown option: World>' export FZF_COMPLETION_PATH_OPTS="--prompt 'Hello World> '"
2025-02-26[fish] Enable multiple history commands insertion (#4280)bitraid
Enable inserting multiple history commands. To disable, set `--no-multi` through `$FZF_CTRL_R_OPTS`. Also, remove the usage of `become` action, to avoid leaving behind temporary files. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2025-02-20[zsh/key-bindings] don't unescape FZF_DEFAULT_OPTS (addendum: #4262)Junegunn Choi
2025-02-20[zsh/completion] don't unescape FZF_DEFAULT_OPTS (#4262)Steve Williams
2025-02-20[fish] Add comment about fish version compatibilitybitraid
2025-02-20[fish] Reorder functionsbitraid
Move the helper functions to the top of the main function, and the main function commands (bind command) to the bottom.
2025-02-20[fish] Refactor bind commandsbitraid
Use single check for each default command variable.
2025-02-20[fish] Refactor fzf-cd-widgetbitraid
- Remove check/set of FZF_TMUX_HEIGHT variable. It is already done by __fzf_defaults. - Remove unnecessary begin/end block. - Simplify result variable check. - Set the command line using a single call to commandline.
2025-02-20[fish] Refactor fzf-history-widgetbitraid
- Remove check/set of FZF_TMUX_HEIGHT variable. It is already done by __fzf_defaults. - Remove unnecessary begin/end block. - Pass all fzf options (except query) through FZF_DEFAULT_OPTS variable.
2025-02-20[fish] Refactor fzf-file-widgetbitraid
- Remove check/set of FZF_TMUX_HEIGHT variable. It is already done by __fzf_defaults. - Remove unnecessary begin/end block. - Simplify result variable check. - Insert file names using a single call to commandline.
2025-02-20[fish] Refactor __fzf_parse_commandline, remove __fzf_get_dirbitraid
The __fzf_get_dir function was called only once, and was basically a single command in a while loop.
2025-02-20[fish] __fzfcmd: Don't set FZF_TMUXbitraid
The FZF_TMUX variable check has already been changed from numeric to string, so there is no need to set it to 0 if it's empty or undefined.
2025-02-20[fish] Refactor __fzf_defaultsbitraid
Append all arguments after the first one, so that functions don't have to pass all appending options as a single string. Also, output everything as a single string (an array of one item).
2025-02-11[fish] Unescape query from commandline (#4236)bitraid
More natural processing of the query taken from command line, by unquoting/unescaping the token. Unescaped open quotes are removed. Because of how `string unescape` works, if both single and double quotes are present, with the outer quotes open, only the outer quotes are removed. Examples: `'foo bar'`, `"foo bar"`, `foo\ bar` becomes `foo bar` `"foobar`, `'foobar`, `foo"bar`, `foo'bar` becomes `foobar` `'"foo"'`, `'"foo"` becomes `"foo"` `"'foo'"`, `"'foo'` becomes `'foo'` `"'foo` becomes `'foo` `'"foo` becomes `"foo`
2025-02-08[fish] Fix for directories with special characters (#4230)bitraid
Using CTRL-T or ALT-C when the current command line token contained a directory with special characters, the script would fail to detect it. For exampe, an existing directory named `it\'s\ a\ test`, instead of using it as walker-root, it would use it as the query.
2025-01-28[fish] Improve fish binary path detection (#4208)bitraid
Instead of exporting a local `$SHELL` containing the location of fish in `$PATH` when global `$SHELL` is not fish, always set `--with-shell` with the actual binary path of fish that the function is running from.
2025-01-28Enhance --min-height option to take number followed by +Junegunn Choi
2025-01-27[completion] Replace 'tr' with built-in string substitutionJunegunn Choi
2025-01-27Enhance click-header eventJunegunn Choi
* Expose the name of the mouse action as $FZF_KEY * Trigger click-header on mouse up * Enhanced clickable header for `kill` completion
2025-01-26[completion] Make kill completion header clickableJunegunn Choi
2025-01-24[fish] Fix compatibility with v3.1.2 - v3.3.1 (#4200)bitraid
Don't use the command substitution syntax: $(cmd) Fix #4196
2025-01-19[fish] Allow setting multi-select and list reload for history (#4179)bitraid
* [fish] Drop support for versions older than 3.0b1 * [fish] Use `set` instead of `read` for `$result` This effectively makes CTRL-R non-blocking (the previous attempt was unsuccessful). * [fish] Allow FZF_CTRL_R_OPTS to set multi-select
2025-01-18[fish] CTRL-R: Make loading non-blockingJunegunn Choi
2025-01-12[fish] Optimize history formatting without perl (#4171)bitraid
2025-01-10[fish] Fix history formatting when perl is missing (#4166)bitraid
Don't add tab after escaped newline.
2025-01-09[fish] remove defunct bind feature detection (#4165)Kid
2024-12-20[fish] Partly revert change of 0167691 (#4137)bitraid
Don't use the `-f` switch of `string split`, because it was added in fish version 3.2.0.
2024-12-19[fish] Small syntax modification of some commandsbitraid
No actual change, just for consistency with the rest of the code.
2024-12-19[fish] Enable home dir expansion of leading ~/bitraid
Enable expanding to user's home directory, when pressing <Ctrl-T> or <Alt-C>, and the current command line token starts with `~/`.
2024-12-19[fish] Don't strip leading dot (.) characterbitraid
Fix the removal of the leading dot character from the query, when <Ctrl-T> was pressed and the current command line token started with a dot. It was also removed when <Alt-C> was pressed and the directory didn't exist under the current path.
2024-12-03chore: completion test command sequence (#4115)LangLangBart
cleanup zsh global scope
2024-11-18[fish] Enable keys for scripts that use readbitraid
Remove the check that exits when the shell is non-interactive, so that the key bindings will work for the read command, when used by scripts.
2024-11-18[fish] Use more native syntaxbitraid
Mainly, replace [ with test. Also, change $FZF_TMUX check from numeric to string, so that it won't show error if doesn't contain a number.
2024-11-18[fish] Format history using builtins if perl is missingbitraid
2024-11-18[fish] Replace external commands with builtinsbitraid
- Use `string collect` instead of cat to get the contents of $FZF_DEFAULT_OPTS_FILE. Also, check if the file is readable first. - Use `string split` instead of cut to set $FISH_MAJOR, $FISH_MINOR. - Use `string replace` instead of perl to strip leading tabs.
2024-11-18[fish] Improve commandline parsingbitraid
- Enable using unescaped quotes for exact-match, exact-boundary-match. - Enable suffix-exact-match. - Enable inverse-exact-match, inverse-prefix/suffix-exact-match. - Allow searching for double quotes and backslashes. - Combine multiple consecutive slashes into one. - Workaround for test command bug, allowing $dir or $commandline be a single `!`.
2024-11-14fix(zsh): handle backtick trigger edge case (#4090)LangLangBart
2024-11-14revert(zsh): remove 'fc -RI' call in the history widget (#4093)LangLangBart
2024-11-12Fix zsh $+name syntax does not work with setopt ksh_arrays (#4084)林千里
2024-11-10Enhance command extraction in zsh completion (#4082)LangLangBart
Fix #1992
2024-11-02fix(zsh): move 'fc -RI' inside command substitution (#4073)LangLangBart
* fix(zsh): move 'fc -RI' inside command substitution * chore: follow existing option check format
2024-11-01fix(zsh): history loading with shared option (#4071)LangLangBart
Fix #4061
2024-10-15Use eval to evaluate $post variable as command. (#4023)Thomas Martitz
2024-09-23[bash] Fix infinite retry loop for completion setting without "-F func" (#4004)Koichi Murase
2024-08-22[bash] Revert skipping setting up fuzzy path completionJunegunn Choi
This partially reverts a2d0e8f not to break backward compatibility.
2024-08-11[bash] Enable fuzzy path completion for all commands (#3958)Junegunn Choi
All commands with no custom completion defined. Close #3957
2024-08-07fix: Add fallback for cygwin ps (#3955)Eduardo D Sanchez
2024-07-17fix(fish): partially revert dbe8dc3 by removing the 'builtin' for cdLangLangBart
2024-07-08[bash] Add code to the default list of programs to support completionJunegunn Choi
Close #3843
2024-07-08Bind CTRL-/ and ALT-/ to toggle-wrap by defaultJunegunn Choi