Commit graph

279 commits

Author SHA1 Message Date
Andrea Alberti 6d7fb94ef5
fix: Fixed bug where color of symlinks was not suitably assigned because the case was not handled (#541) 2025-09-18 09:58:56 +08:00
Kyle Andelin 74589572f8
feat: Use shell parsing to split fzf-command into words (#517)
Small change only to apply the `(z)` flag when expanding the
`fzf_command` parameter. This allows for proper command lists to be
provided e.g. `zstyle ':fzf-tab:*' fzf-command 'env SOME_VAR=foo fzf'`.
2025-09-18 09:50:40 +08:00
司辰 fc6f0dcb2d
fix: solving msys2 regressions (#531) 2025-07-11 13:55:03 +08:00
Kyle Andelin 2abe1f2f1c
feat: Support retaining ${group} values while not displaying group headers (#518)
This commit adds a new `show-group` style value: `quiet`. Specifying
this option prevents any group headers from displaying in the completion
list, while still providing the ${group} value(s) to FZF preview/shell
commands. This is an alternative to `show-group none` where no headers
are shown, but all ${group} values are replaced by `__hide__`.
2025-04-09 10:36:38 +08:00
jyn 2b9882c710
fix: Avoid spawning a subshell in -ftb-compadd (#514)
Subshells cause zsh to try and render their prompt. For reasons I do not
entirely understand, zsh does not expand `$PROMPT` correctly in this
case when PROMPT_SUBST is set.

Fortunately, using a brace group instead of a subshell is simple and has
the same meaning.
2025-04-09 10:27:52 +08:00
Aloxaf 4398f451c8
fix: nounset (#519) 2025-04-09 10:18:00 +08:00
Aloxaf Yin 01dad759c4
fix: there is no need to clear FZF_DEFAULT_OPTS in ftb-tmux-popup
Some checks failed
Linux compability / test (archlinux:latest) (push) Has been cancelled
Linux compability / test (ubuntu:latest) (push) Has been cancelled
macOS compability / test (push) Has been cancelled
Zsh compability / test (5.3.1) (push) Has been cancelled
Zsh compability / test (5.4.2) (push) Has been cancelled
Zsh compability / test (5.5.1) (push) Has been cancelled
Zsh compability / test (5.6.2) (push) Has been cancelled
Zsh compability / test (5.7.1) (push) Has been cancelled
Zsh compability / test (5.8) (push) Has been cancelled
Zsh compability / test (5.9) (push) Has been cancelled
close #509
2025-02-18 15:17:53 +08:00
Peter Downs 6aced3f35d
fix: Remove text-coloring that interferes with fzf theming (#484)
Some checks failed
Linux compability / test (archlinux:latest) (push) Has been cancelled
Linux compability / test (ubuntu:latest) (push) Has been cancelled
macOS compability / test (push) Has been cancelled
Zsh compability / test (5.3.1) (push) Has been cancelled
Zsh compability / test (5.4.2) (push) Has been cancelled
Zsh compability / test (5.5.1) (push) Has been cancelled
Zsh compability / test (5.6.2) (push) Has been cancelled
Zsh compability / test (5.7.1) (push) Has been cancelled
Zsh compability / test (5.8) (push) Has been cancelled
Zsh compability / test (5.9) (push) Has been cancelled
* Remove hardcoded --color=hl fzf flag

* remove hardcoded default color of ANSI white
2024-11-06 18:30:31 +08:00
Prayag Savsani b6e1b22458
feat: Add use-fzf-default-opts (#479)
Some checks failed
macOS compability / test (push) Has been cancelled
Zsh compability / test (5.8) (push) Has been cancelled
Linux compability / test (archlinux:latest) (push) Has been cancelled
Linux compability / test (ubuntu:latest) (push) Has been cancelled
Zsh compability / test (5.3.1) (push) Has been cancelled
Zsh compability / test (5.4.2) (push) Has been cancelled
Zsh compability / test (5.5.1) (push) Has been cancelled
Zsh compability / test (5.6.2) (push) Has been cancelled
Zsh compability / test (5.7.1) (push) Has been cancelled
Zsh compability / test (5.9) (push) Has been cancelled
* Add `use-fzf-default-opts`

Ref: https://github.com/Aloxaf/fzf-tab/issues/475

0b49f3e8a3 introduces a change that makes the plugin ignore
`FZF_DEFAULT_OPTS` by default.

This commit adds a flag to disable this behavior.

Signed-off-by: PrayagS <prayagsavsani@gmail.com>

* Add an additional note for `use-fzf-default-opts`

Signed-off-by: PrayagS <prayagsavsani@gmail.com>

---------

Signed-off-by: PrayagS <prayagsavsani@gmail.com>
2024-10-11 09:38:14 +08:00
Aloxaf cf57116eb2
docs: update example configuration
Some checks failed
Linux compability / test (archlinux:latest) (push) Has been cancelled
Linux compability / test (ubuntu:latest) (push) Has been cancelled
macOS compability / test (push) Has been cancelled
Zsh compability / test (5.3.1) (push) Has been cancelled
Zsh compability / test (5.4.2) (push) Has been cancelled
Zsh compability / test (5.5.1) (push) Has been cancelled
Zsh compability / test (5.6.2) (push) Has been cancelled
Zsh compability / test (5.7.1) (push) Has been cancelled
Zsh compability / test (5.8) (push) Has been cancelled
Zsh compability / test (5.9) (push) Has been cancelled
Signed-off-by: Aloxaf <aloxafx@gmail.com>
2024-09-25 19:12:31 +08:00
Aloxaf 0b49f3e8a3
fix: always ignore FZF_DEFAULT_OPTS
FZF_DEFAULT_OPTS causes too many bugs.
use fzf-flags and fzf-preview instead.

close #455
close #461
2024-09-25 19:03:21 +08:00
Aloxaf 0ef51dcab1
fix: unable to build binary module on some new systems (#472)
Some checks are pending
Linux compability / test (archlinux:latest) (push) Waiting to run
Linux compability / test (ubuntu:latest) (push) Waiting to run
macOS compability / test (push) Waiting to run
Zsh compability / test (5.3.1) (push) Waiting to run
Zsh compability / test (5.4.2) (push) Waiting to run
Zsh compability / test (5.5.1) (push) Waiting to run
Zsh compability / test (5.6.2) (push) Waiting to run
Zsh compability / test (5.7.1) (push) Waiting to run
Zsh compability / test (5.8) (push) Waiting to run
Zsh compability / test (5.9) (push) Waiting to run
* fix: unable to build binary module on some new systems

* ci: test on archlinux
2024-09-25 18:14:12 +08:00
Luis Sebastian Urrutia Fuentes 7fed01afba
docs: add info about completions (#454)
Some checks failed
test on linux / test (ubuntu-latest) (push) Has been cancelled
test on macOS / test (push) Has been cancelled
test on different zsh versions / test (5.3.1) (push) Has been cancelled
test on different zsh versions / test (5.4.2) (push) Has been cancelled
test on different zsh versions / test (5.5.1) (push) Has been cancelled
test on different zsh versions / test (5.6.2) (push) Has been cancelled
test on different zsh versions / test (5.7.1) (push) Has been cancelled
test on different zsh versions / test (5.8) (push) Has been cancelled
test on different zsh versions / test (5.9) (push) Has been cancelled
2024-08-02 09:05:07 +08:00
Aloxaf 14e16f0d36
fix: prefix completion in quoted string (#448)
* fix: prefix completion in quote string

close #447

* add test
2024-06-12 13:52:43 +08:00
Aloxaf c7fb028ec0
fix: remove -E from zparseopts (#433)
* fix: remove -E from zparseopts

this fix following bugs:

_tst() {
  compadd -J packages -X package openpgp-keys-gentoo-release -MERGING-pnpm-bin
}
compdef _tst tst

* fix: tests
2024-04-26 10:50:24 +08:00
Aloxaf cf3c151d33
ci: install dependency on macos (#434) 2024-04-26 10:11:55 +08:00
Aloxaf a61331c790
fix: completion is missing for history command (#432) 2024-04-25 08:39:18 +08:00
Aloxaf bf3ef5588a
fix: name collision on case insensitive filesystem (#422) 2024-03-12 22:44:43 +08:00
Aloxaf f3d892cf19
refactor: clean up binary module (#415)
* refactor: clean code

* refactor: use struct instead of array

* refactor: clean
2024-03-01 21:49:05 +08:00
Aloxaf aa69e9f2b2 fix(ftb-tmux-popup): make sure layout is as expected
close #417
2024-02-29 08:51:50 +08:00
Aloxaf a975fce2af fix: print more information in debug message 2024-02-27 13:53:00 +08:00
Aloxaf 1133a883b6 fix: parameter completion 2024-02-26 17:57:06 +08:00
Aloxaf 981cf96c81 docs: update recommend settings 2024-02-26 13:55:12 +08:00
Aloxaf 5b660107ef fix: better function trace 2024-02-26 11:31:24 +08:00
Aloxaf acdc37214b
feat: prefix completion (#413)
* feat: complete prefix

* fix: normal completion

* fix: follow zsh menu setting

* fix: tests

* fix: multiple selection

* test: force list

* fix: don't complete unambiguous prefix in continous completion

* fix: clear intermediate variables

* fix: -ftb-complete-apply -> _fzf-tab-apply

* test: docs
2024-02-26 11:02:09 +08:00
Aloxaf 02ce77cc85 fix: compability with zsh 5.4.2 2024-02-25 22:31:04 +08:00
Aloxaf 9874405235 ci: miss libncurses-dev 2024-02-25 22:31:04 +08:00
Aloxaf 7de6ec0c56 ci: test different version of zsh 2024-02-25 22:31:04 +08:00
Aloxaf cdc34ee646 fix: better error handling when build module 2024-02-25 12:52:19 +08:00
Aloxaf 325b639512
feat: allow user overwrite default bindings
close #391 #400
2024-02-23 18:57:14 +08:00
Aloxaf f55a348696
Merge remote-tracking branch 'refs/remotes/origin/master' 2024-02-23 18:42:33 +08:00
Aloxaf 0915fb94a7
fix: XTRACE is disabled on user-defined completion widgets since 5.9 2024-02-23 18:42:03 +08:00
Aloxaf f045ed050d docs: update README 2024-02-22 16:41:47 +08:00
Aloxaf 8b20cc4fb2 ci: run tests on pull request 2024-02-21 15:51:14 +08:00
Aloxaf dc038b2ffb fix: don't break normal alias 2024-02-21 15:45:29 +08:00
Aloxaf cdc36de953 Merge branch 'master' of github.com:Aloxaf/fzf-tab 2024-02-21 15:42:43 +08:00
Aloxaf 14caec7445 fix: survive from strange global alias
close #385
2024-02-21 15:40:03 +08:00
Aloxaf 869acb58ca
fix(ftb-tmux-popup): default shell (#412)
* fix(ftb-tmux-popup): default shell

close #410

* fix: invoke fzf with env command
2024-02-21 15:10:51 +08:00
Aloxaf 7cd93f6a83 misc: update license year 2024-02-21 13:31:41 +08:00
Aloxaf da414b8d56
refactor(module): build binary module with zsh source code from git (#334)
* refactor: build binary module with zsh source code from git

* fix(module): don't use 'for' loop initial declarations

* misc: remove .gitattributes
2024-02-21 11:34:34 +08:00
Yury b06e757457
Update suggested config to use eza instead of unmaintained exa (#405) 2024-02-01 11:12:22 +08:00
Bengt Brodersen c2b4aa5ad2
feat: close fzf selection if backspace is pressed on empty input (#351) 2023-06-11 23:14:15 +08:00
Vamsi Avula f95cdcf2c3
tmux-popup: conditionally import math functions (#363)
Co-authored-by: Aloxaf <bailong104@gmail.com>
2023-06-09 14:54:28 +08:00
xtorker 5a81e13792
fix: Adds -std=c99 compiler flag in build-fzf-tab-module() (#361) 2023-03-19 09:49:13 +08:00
Aloxaf 69024c2773
fix: error message is missing
close #335
2023-02-09 21:58:00 +08:00
Aloxaf ffb7b776be feat: popup-smart-tab 2022-12-08 09:16:05 +08:00
Aloxaf 426271fb1b
fix: set $SHELL to current zsh when invoke fzf
This make sure fzf always call zsh for preview.

close #330
2022-11-29 00:13:38 +08:00
Aloxaf c8eee6e118
fix: module extension on macOS
shipped zsh will use .so as DL_EXT while brew zsh use .bundle
2022-11-27 21:13:28 +08:00
Dale Morgan b84faa93dc
fix: Only add to $FPATH once (#324)
Co-authored-by: Aloxaf <bailong104@gmail.com>
2022-11-25 15:45:48 +08:00
Aloxaf ff0ef4e2ea fix: show warning message in zsh 5.9
Caused by * 49450: Src/Zle/compcore.c: don't display explanation with
compadd -x if any of -D, -A or -O are also used

close #308
2022-11-24 17:01:21 +08:00