-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fzf's execute[] function to render draw_diff
Instead of exiting the fzf snapshot browser, bind a key combination to the execute[] function in fzf, allowing you to keep your place in the list after viewing a diff. zfs-chroot does not correctly function here, because it loses access to the backing TTY. Bash/dash will not write command output to the fzf alternate screen. Discovering the tty is easy for local consoles (control_term from -exec), but is much more difficult for connections over SSH.
- Loading branch information
Showing
4 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# vim: softtabstop=2 shiftwidth=2 expandtab | ||
|
||
# shellcheck disable=SC1091 | ||
[ -r /lib/zfsbootmenu-lib.sh ] && source /lib/zfsbootmenu-lib.sh | ||
|
||
# First argument is the function name | ||
# the rest are positional params | ||
func="${1}" | ||
shift | ||
|
||
zdebug "Calling ${func} with $*" | ||
|
||
$func "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters