dotfiles/bin/tmux-edit-history

5 lines
307 B
Text
Raw Normal View History

2024-04-01 11:04:47 +02:00
#!/usr/bin/env bash
set -eo pipefail
_file=$(fre --store_name edit-history --sorted | exec fzf --no-sort --preview "bat {}" --preview-window=down,70%,wrap,border-top --color=bg+:16,fg+:49,pointer:49 --layout=reverse "--bind=alt-e:become(tmux-edit-helper)")
2024-04-01 11:04:47 +02:00
[ -n "$_file" ] && exec tmux-edit-helper "$_file"