Skip to content

Commit

Permalink
Use open pager as a heuristic for selecting/executing (closes #472)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Dec 26, 2023
1 parent cd94c08 commit 3f97ee1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions functions/fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,13 @@ if test "$tide_prompt_transient_enabled" = true
function _tide_enter_transient
# If the commandline will be executed, or is empty
if commandline --is-valid || test -z "$(commandline)"
set -g _tide_transient
set -g _tide_repaint
commandline -f repaint
# Pager open usually means selecting, not running
# Can be untrue, but it's better than the alternative
if not commandline --paging-mode
set -g _tide_transient
set -g _tide_repaint
commandline -f repaint
end
end
commandline -f execute
end
Expand Down

0 comments on commit 3f97ee1

Please sign in to comment.