aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-common
diff options
context:
space:
mode:
authorJacob Evan Shreve <jacob@shreve.io>2022-10-07 23:31:30 -0400
committerGitHub <noreply@github.com>2022-10-07 20:31:30 -0700
commit0f77f8ae72f8ef9e6b9a435a9b77d09df459fa2a (patch)
tree8c7d1c88ee931118bdab71fe462e3804b60c8ed9 /atuin-common
parentAdd `style` to config.toml and config.md (#552) (diff)
downloadatuin-0f77f8ae72f8ef9e6b9a435a9b77d09df459fa2a.zip
Fix compatability with fish vi key bindings (#541)
PR #420 addressed the existence of pagination in a fish prompt by trying to track when pagination was enabled and disabled. This introduced atuin-specific bindings for common keys: `\t`, `\e`, `\r`, and `\n` which exports a variable and informs the `_autiun_search` function to not show the TUI. Fish has a commandline function that will instead tell you whether pagination is enabled so the user doesn't need to keep track of that state. This PR uses this function, `commandline -P` to replace the prior TUI supression scheme. Removing these extra function calls allows us to remove the additional bindings which were breaking fish vi key bindings. Replacing the value for `bind -M insert \e` completely breaks vi mode by blocking the user from exiting insert mode. By removing these extra binds, this PR restores fish vi mode compatability.
Diffstat (limited to 'atuin-common')
0 files changed, 0 insertions, 0 deletions