~pvsr/qpm

qpm/completions/qbpm.fish -rw-r--r-- 487 bytes
8b6b26a0Peter Rice document dmenu-wl support 2 months ago
                                                                                
1
2
3
4
5
6
7
set -l commands new from-session desktop launch run list edit

complete -c qbpm -f
complete -c qbpm -n "not __fish_seen_subcommand_from $commands" -a "launch new from-session edit list"
complete -c qbpm -n "__fish_seen_subcommand_from launch edit" -a "(qbpm list)"
set -l data_home (set -q XDG_DATA_HOME; and echo $XDG_DATA_HOME; or echo ~/.local/share)
complete -c qbpm -n "__fish_seen_subcommand_from from-session" -a "(ls $data_home/qutebrowser/sessions | xargs basename -a -s .yml)"