curve: add kitaab unlinked fzf command

This commit is contained in:
Anish Lakhwara 2023-06-04 20:04:50 +10:00
parent bba3ee8778
commit 2d7442c991
2 changed files with 12 additions and 0 deletions

11
home/profiles/desktop/bin/ku Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Use fzf to select a file and capture the output
selected_file=$(python3 poonam/main.py report --titles=false | head -n -2 | fzf --preview 'bat --color=always --terminal-width -1 ./vimwiki/{}')
# Add additional details to the file path
file_path="./vimwiki/${selected_file}"
# Open the file in vim for editing
vim "${file_path}"

View file

@ -135,6 +135,7 @@ in
".local/bin/screenshot".source = ./bin/screenshot;
".local/bin/mpv-ify".source = ./bin/mpv-ify;
".local/bin/bspswallow".source = ./bin/bspswallow;
".local/bin/ku".source = ./bin/ku;
".config/bspwm/terminals".text = "Kitty";
".config/eww/eww.yuck".source = ./eww/eww.yuck;
".config/eww/eww.scss".source = ./eww/eww.scss;