Add complete edit history using fre

This commit is contained in:
Daniel Lundin 2024-04-01 11:04:47 +02:00
parent 6bc5bcee50
commit 182abc1ad0
5 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -exo pipefail
set -eo pipefail
eval "$(direnv export bash 2>/dev/null)"
@ -16,6 +16,8 @@ else
fre --store_name "$_store" --add "$_file"
fi
fre --store_name "edit-history" --add "$_file"
(tmux select-window -t helix &&
tmux send-keys -t helix Escape &&
tmux send-keys -t helix ":open ${_file}" Enter) || tmux new-window -t 42 -n helix helix "${_file}"