blob: d1af9c80d972a1a35751a17dda5db82cd363e18b (
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
|
# Rofi
# https://github.com/davatorium/rofi
# Dependencies:
# – fd (https://github.com/sharkdp/fd)
# – ripgrep (https://github.com/BurntSushi/ripgrep)
provide-module connect-rofi %{
# Modules
require-module connect
# Register our paths
set-option -add global connect_paths "%opt{connect_modules_path}/rofi/aliases" "%opt{connect_modules_path}/rofi/commands"
# Commands
# Files
define-command rofi-files -params .. -file-completion -docstring 'Open files with Rofi' %{
$ :rofi-files %arg{@}
}
# Buffers
define-command rofi-buffers -params ..1 -buffer-completion -docstring 'Open buffers with Rofi' %{
$ :rofi-buffers %arg{@}
}
# Grep
define-command rofi-grep -params .. -file-completion -docstring 'Open files (search by content) with Rofi' %{
$ :rofi-grep %arg{@}
}
# Aliases
alias global rofi rofi-files
}
|