Commit graph

129 commits

Author SHA1 Message Date
Aloxaf 060c028143
Merge branch 'master' into approximate 2020-10-18 10:20:24 +08:00
Aloxaf f4bbee2729
Merge pull request #125 from rcarriga/master
Check tab groups exist before hiding
2020-10-12 19:57:01 +08:00
Rónán Carrigan f64008bd7d
Check tab groups exist 2020-10-07 10:22:38 +01:00
Aloxaf bd689868d9
Merge pull request #122 from MenkeTechnologies/fix_complete_tags
fix _complete_tag calling _main_complete with args
2020-09-23 18:20:21 +08:00
MenkeTechnologies cd0a6a7a3e fix _complete_tag calling _main_complete with args 2020-09-22 20:19:13 -04:00
Aloxaf 3c48aa0b83
Merge pull request #121 from solarizedalias/module_macOS
[Fix #112] Set DL_EXT=bundle if $OSTYPE is darwin*
2020-09-08 21:55:59 +08:00
Aloxaf 06eb3a6f99
Merge pull request #118 from fluxtendu/patch-2
added link to Prezto install
2020-09-08 18:12:05 +08:00
solarizedalias 3989ab196c Set DL_EXT to bundle if OSTYPE is darwin* 2020-09-06 08:10:24 +09:00
fluxtendu c64f12a67c
added link to Prezto install 2020-08-31 17:12:56 +02:00
fluxtendu 8c369c1c97
Added Prezto install how-to to README.md (#116)
added Prezto install how-to
2020-08-30 20:40:02 +08:00
Frank Rügamer 4108af7dc3
docs: fix typos (#108) 2020-07-31 15:26:58 +08:00
Aloxaf 3bbf14918e
fix: add missing fzf in FZF_TAB_COMMAND 2020-07-31 09:42:06 +08:00
Aloxaf c8c78e6e03
fix: should check FZF_TAB_COMMAND instead of FZF_TAB_OPTS
FZF_TAB_OPTS is deprecated.

Fix #107.
2020-07-31 08:56:17 +08:00
Aloxaf 8d8a31785c
feat: add support of print-query (#106) 2020-07-30 09:13:30 +08:00
Aloxaf ebe6d1b28a
Update issue templates 2020-07-24 08:58:50 +08:00
Aloxaf d92299baaf
ignore tag can be a number, see #96 2020-06-04 16:06:49 +08:00
Aloxaf dfaa09ed01
Should respect 'list_types' option
Fix #83
2020-06-03 11:12:22 +08:00
Aloxaf d1dbe14870
Update .gitattributes 2020-05-27 10:39:17 +08:00
Aloxaf c32ad7195a
Add .gitattributes 2020-05-27 09:58:57 +08:00
Aloxaf add3e6fc2b
Add binary module (#64)
* Initial support of binary module

* Update fzf-tab.zsh to support binary module

* Fix bug of cannot clear list-colors

* Improve performance

* Fix some bugs and clang-format

* Clean files

* Colorize chinese filename

* You can choose if you want to rebuild now

* Add symbol for socket

* rename: fzf-tab-build-module -> build-fzf-tab-module
2020-05-26 13:24:25 +08:00
Aloxaf dac608ba2a
Update README 2020-05-22 20:22:30 +08:00
Aloxaf 84e606844b
Merge pull request #88 from romkatv/split-undo
Undo completions from contiguous trigger one by one
2020-05-18 16:56:38 +08:00
Aloxaf 8fa0e8e86b
Merge pull request #87 from romkatv/fix-redisplay
Bug fix: don't eat prompt line on continuous trigger
2020-05-18 16:55:28 +08:00
romkatv d752ac7f41 undo completions from contiguous trigger one by one
Currently, when you invoke `fzf-tab-complete`, insert several completions
with continous trigger and invoke `undo`, everything added by
`fzf-tab-complete` gets removed. With this PR only the last completion
gets removed.

To demonstrate:

    zsh -f
    autoload -Uz compinit; compinit; source ~/fzf-tab/fzf-tab.zsh
    ls /<TAB>
    usr/
    bin<ENTER>
    <CTRL-X><CTRL-U>
2020-05-18 09:14:12 +02:00
romkatv 16cabbc10b bug fix: don't eat prompt line on continuous trigger
To reproduce:

    git clone https://github.com/Aloxaf/fzf-tab.git
    zsh -f
    autoload -Uz compinit; compinit; source ~/fzf-tab/fzf-tab.zsh
    ls /<TAB>
    /

Expected:

    ❯ zsh -f
    adam% autoload -Uz compinit; compinit; source ~/fzf-tab/fzf-tab.zsh
    adam% ls /bin/
    >
    167/167
    > bash

Note that current prompt shows `adam% ls /bin/`.

Actual:

    ❯ zsh -f
    adam% autoload -Uz compinit; compinit; source ~/fzf-tab/fzf-tab.zsh
    >
      167/167
    > bash

Note that current prompt is missing.
2020-05-18 09:11:35 +02:00
Aloxaf f3809cc151
Dont't create unnecessary gloabl variable
See #80
2020-05-12 09:38:06 +08:00
Aloxaf 607a28b895
Minor fixes with filename
1. Don't expand `xx` and $(xx) in filename
2. Colorize filename starts with `-` correctly
2020-04-16 11:26:43 +08:00
Aloxaf 38b182a122
Fix the filepath. (See #75)
1. Consider IPREFIX
2. Perform single-word shell expansions
2020-04-15 23:13:31 +08:00
romkatv fca05e66d1 replace sort -t '\0' with a portable alternative
`sort -t '\0'` doesn't work on busybox:

  ❯ sort -t $'\0'
  sort: bad -t parameter
  ❯ echo ${commands[sort]:A}
  /bin/busybox
2020-04-09 12:18:41 +08:00
Aloxaf aa4a3567af
Update README
Make it more clear. See #71.
2020-04-07 11:06:46 +08:00
Aloxaf 47ed49e721
Fix support of matcher-list
Related to #67.
We should tell zsh that a matcher has failed so that zsh will
try another matcher.
2020-03-25 19:19:02 +08:00
Aloxaf b9726dc909
Remove C-j bind
This fix #66.
Vim users use C-j/k for up/down. Only bind C-j to accpet is
confusing.
2020-03-24 11:27:31 +08:00
Aloxaf dc909ab196
Allow empty match
see #63
`git init; mkdir -p foo/bar; git add foo\t` will add an empty match
with `/` as hidden prefix to just add a slash.
2020-03-20 10:06:40 +08:00
Aloxaf b41cedb006
No duplicate candidates 2020-03-17 20:29:53 +08:00
Aloxaf bb53e90e78
Some bug fix and improve performance
Replace assoc array with array to keep original order of candidates.
This fix the wrong order of files and improve huge performance when
disabling sort, but is a little slower if not disable sort.

And other small bugs
2020-03-17 14:42:27 +08:00
Aloxaf e7a0b6ffe2
Fix wrong order of candidates
order of files is still wrong
2020-03-17 00:18:33 +08:00
Aloxaf a0fa026833
Fix bug when disable sort
Should remove hidden prefix when detecting whether dscr is a existing file.
2020-03-16 23:28:37 +08:00
Aloxaf f0627fe580
Only use GNU sort when completing files 2020-03-16 22:46:38 +08:00
Aloxaf b4c302e447
Keep group order until number of group >= 36 2020-03-16 21:30:10 +08:00
Aloxaf 749e86b28f
Fix bug of resolving symlink 2020-03-16 15:53:52 +08:00
Aloxaf b67a865a52
Fix test 2020-03-15 15:02:44 +08:00
Aloxaf f81cee85dc
Improve performance and fix a small bug 2020-03-15 15:00:53 +08:00
Aloxaf 4786af110e
Resolve the symlink 2020-03-14 23:14:46 +08:00
Aloxaf 0b06324f68 Add zsh-ls-colors as a subtree 2020-03-14 22:26:16 +08:00
Aloxaf 2ea7ea1a1b Squashed 'lib/zsh-ls-colors/' content from commit bf8be8b
git-subtree-dir: lib/zsh-ls-colors
git-subtree-split: bf8be8b3558336372679acd525127ff37d28ca96
2020-03-14 22:26:16 +08:00
Aloxaf 9b4a71eb40
Remove zsh-ls-colors 2020-03-14 22:25:24 +08:00
Aloxaf d7ed42b475
Add support of list-colors (#52)
Only support `name=value`, with the help of `xPMo/zsh-ls-colors`
2020-03-14 20:39:29 +08:00
Aloxaf a6a01d410e
Improve little performance 2020-03-14 12:55:47 +08:00
Aloxaf e255e5b3f2
Some small fixes 2020-03-13 17:25:50 +08:00
Aloxaf eb80cff9d2
Merge branch 'master' into approximate 2020-03-12 19:32:04 +08:00