Skip to content

Commit

Permalink
🐛 Fix Makefile
Browse files Browse the repository at this point in the history
Add a screenshot of make
  • Loading branch information
Freed-Wu committed Oct 15, 2022
1 parent df5ea8d commit eb794e5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all: README.md

README.md: fzf-tab-source.plugin.zsh README.md.in
cp $@.in $@
perl -pe's=^#\s.*\n==g;s=^## *==g' $^ >> $@
perl -pe's=^#\s.*\n==g;s=^## *==g' $< >> $@

clean:
rm -rf README.md
50 changes: 12 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# fzf-tab-source

[![github/license](https://shields.io/github/license/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/blob/master/LICENSE)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Freed-Wu/fzf-tab-source/main.svg)](https://results.pre-commit.ci/latest/github/Freed-Wu/fzf-tab-source/main)

[![github/downloads](https://shields.io/github/downloads/Freed-Wu/fzf-tab-source/total)](https://github.com/Freed-Wu/fzf-tab-source/releases)
Expand All @@ -19,6 +18,7 @@
[![github/last-commit](https://shields.io/github/last-commit/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/commits)
[![github/release-date](https://shields.io/github/release-date/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/releases/latest)

[![github/license](https://shields.io/github/license/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/blob/master/LICENSE)
![github/languages](https://shields.io/github/languages/count/Freed-Wu/fzf-tab-source)
![github/languages/top](https://shields.io/github/languages/top/Freed-Wu/fzf-tab-source)
![github/directory-file-count](https://shields.io/github/directory-file-count/Freed-Wu/fzf-tab-source)
Expand Down Expand Up @@ -191,6 +191,17 @@ zstyle ':fzf-tab:complete:(\\|*/|)(kill|ps):argument-rest' fzf-flags \

![kill](https://user-images.githubusercontent.com/32936898/195972969-437326bb-4514-4c46-8a55-fe16808a0368.png)

```zsh
zstyle ':fzf-tab:complete:(\\|*/|)(g|b|d|p|freebsd-|)make:*' fzf-preview \
'case "$group" in
"make target") make -n $word | bat --color=always -plsh;;
"make variable") make -pq | rg -Ns "^$word = " | bat --color=always -plsh;;
file) less ${realpath#--*=};;
esac'
```

![make](https://user-images.githubusercontent.com/32936898/195984087-c802d78f-00ae-4139-904c-74fb668cb844.png)

```zsh
zstyle ':fzf-tab:complete:(\\|*/|)has:*' fzf-preview \
'case "$group" in
Expand All @@ -217,12 +228,6 @@ file) less ${realpath#--*=};;
user) (($+commands[finger])) && finger $word || pinky $word;;
*host*) grc --colour=on ping -c1 $word;;
esac'
zstyle ':fzf-tab:complete:(\\|*/|)(g|b|d|p|freebsd-|)make:*' fzf-preview \
'case "$group" in
"make target") make -n $word | bat --color=always -plsh;;
"make variable") make -pq | rg -Ns "^$word = " | bat --color=always -plsh;;
file) less ${realpath#--*=};;
esac'
zstyle ':fzf-tab:complete:(\\|*/|)bat:*' fzf-preview \
'case "$group" in
subcommand) bat cache --help | bat --color=always -plhelp;;
Expand Down Expand Up @@ -369,34 +374,3 @@ esac'

unset cmd cmds bin bins
```

[![github/license](https://shields.io/github/license/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/blob/master/LICENSE)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Freed-Wu/fzf-tab-source/main.svg)](https://results.pre-commit.ci/latest/github/Freed-Wu/fzf-tab-source/main)

[![github/downloads](https://shields.io/github/downloads/Freed-Wu/fzf-tab-source/total)](https://github.com/Freed-Wu/fzf-tab-source/releases)
[![github/downloads/latest](https://shields.io/github/downloads/Freed-Wu/fzf-tab-source/latest/total)](https://github.com/Freed-Wu/fzf-tab-source/releases/latest)
[![github/issues](https://shields.io/github/issues/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/issues)
[![github/issues-closed](https://shields.io/github/issues-closed/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/issues?q=is%3Aissue+is%3Aclosed)
[![github/issues-pr](https://shields.io/github/issues-pr/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/pulls)
[![github/issues-pr-closed](https://shields.io/github/issues-pr-closed/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/pulls?q=is%3Apr+is%3Aclosed)
[![github/discussions](https://shields.io/github/discussions/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/discussions)
[![github/milestones](https://shields.io/github/milestones/all/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/milestones)
[![github/forks](https://shields.io/github/forks/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/network/members)
[![github/stars](https://shields.io/github/stars/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/stargazers)
[![github/watchers](https://shields.io/github/watchers/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/watchers)
[![github/contributors](https://shields.io/github/contributors/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/graphs/contributors)
[![github/commit-activity](https://shields.io/github/commit-activity/w/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/graphs/commit-activity)
[![github/last-commit](https://shields.io/github/last-commit/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/commits)
[![github/release-date](https://shields.io/github/release-date/Freed-Wu/fzf-tab-source)](https://github.com/Freed-Wu/fzf-tab-source/releases/latest)

![github/languages](https://shields.io/github/languages/count/Freed-Wu/fzf-tab-source)
![github/languages/top](https://shields.io/github/languages/top/Freed-Wu/fzf-tab-source)
![github/directory-file-count](https://shields.io/github/directory-file-count/Freed-Wu/fzf-tab-source)
![github/code-size](https://shields.io/github/languages/code-size/Freed-Wu/fzf-tab-source)
![github/repo-size](https://shields.io/github/repo-size/Freed-Wu/fzf-tab-source)
![github/v](https://shields.io/github/v/release/Freed-Wu/fzf-tab-source)

This zsh plugin is a collection of
<https://github.com/Aloxaf/fzf-tab/wiki/Preview>. Please read the wiki first.

**NOTE: Don't edit this file directly!** It is generated by `make`.
17 changes: 11 additions & 6 deletions fzf-tab-source.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ zstyle ':fzf-tab:complete:(\\|*/|)(kill|ps):argument-rest' fzf-flags \
##
## ![kill](https://user-images.githubusercontent.com/32936898/195972969-437326bb-4514-4c46-8a55-fe16808a0368.png)

## ```zsh
zstyle ':fzf-tab:complete:(\\|*/|)(g|b|d|p|freebsd-|)make:*' fzf-preview \
'case "$group" in
"make target") make -n $word | bat --color=always -plsh;;
"make variable") make -pq | rg -Ns "^$word = " | bat --color=always -plsh;;
file) less ${realpath#--*=};;
esac'
## ```
##
## ![make](https://user-images.githubusercontent.com/32936898/195984087-c802d78f-00ae-4139-904c-74fb668cb844.png)

## ```zsh
zstyle ':fzf-tab:complete:(\\|*/|)has:*' fzf-preview \
'case "$group" in
Expand All @@ -186,12 +197,6 @@ file) less ${realpath#--*=};;
user) (($+commands[finger])) && finger $word || pinky $word;;
*host*) grc --colour=on ping -c1 $word;;
esac'
zstyle ':fzf-tab:complete:(\\|*/|)(g|b|d|p|freebsd-|)make:*' fzf-preview \
'case "$group" in
"make target") make -n $word | bat --color=always -plsh;;
"make variable") make -pq | rg -Ns "^$word = " | bat --color=always -plsh;;
file) less ${realpath#--*=};;
esac'
zstyle ':fzf-tab:complete:(\\|*/|)bat:*' fzf-preview \
'case "$group" in
subcommand) bat cache --help | bat --color=always -plhelp;;
Expand Down

0 comments on commit eb794e5

Please sign in to comment.