tmux: M-e invokes edit-helper, repeat to replace with edit-history

This commit is contained in:
Daniel Lundin 2024-04-01 13:07:30 +02:00
parent 182abc1ad0
commit 6e27ee2b5f
3 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -eo pipefail
_file=$(fre --store_name edit-history --sorted | exec fzf --no-sort)
_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)")
[ -n "$_file" ] && exec tmux-edit-helper "$_file"