blob: 42708f3a5ca612529688e7fb3bc7c279df1bbe4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# fzy
# https://github.com/jhawthorn/fzy
# Dependencies:
# – fd (https://github.com/sharkdp/fd)
# – ripgrep (https://github.com/BurntSushi/ripgrep)
provide-module connect-fzy %{
# Modules
require-module connect
# Register our paths
set-option -add global connect_paths "%opt{connect_modules_path}/fzy/aliases" "%opt{connect_modules_path}/fzy/commands"
# Commands
# Files
define-command fzy-files -params .. -file-completion -docstring 'Open files with fzy' %{
+ :fzy-files %arg{@}
}
# Buffers
define-command fzy-buffers -params ..1 -buffer-completion -docstring 'Open buffers with fzy' %{
+ :fzy-buffers %arg{@}
}
# Grep
define-command fzy-grep -params .. -file-completion -docstring 'Open files (search by content) with fzy' %{
+ :fzy-grep %arg{@}
}
# Aliases
alias global fzy fzy-files
}
|