helm/home/profiles/desktop/bin/ku

12 lines
354 B
Plaintext
Raw Normal View History

2023-06-04 03:04:50 -07:00
#!/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}"