Skip to content

Handle empty fish_key_bindings in fish 4.3 (fixes #620, #622)#626

Open
sstieger wants to merge 1 commit intoIlanCosman:mainfrom
sstieger:fix/character-empty-fish-key-bindings
Open

Handle empty fish_key_bindings in fish 4.3 (fixes #620, #622)#626
sstieger wants to merge 1 commit intoIlanCosman:mainfrom
sstieger:fix/character-empty-fish-key-bindings

Conversation

@sstieger
Copy link

@sstieger sstieger commented Jan 7, 2026

Fish 4.3 seems to leave $fish_key_bindings empty by default, leading the check for default bindings in _tide_item_character to fail, and causing tide to render the vi-mode icons instead of the standard prompt character.

Description

Updated _tide_item_character to include a check for empty $fish_key_bindings.

Closes #620.
Closes #622.

How Has This Been Tested

  • I have tested using Linux.
  • I have tested using MacOS.

Checklist

  • I am ready to update the wiki accordingly.
  • I have updated the tests accordingly.

@sstieger sstieger requested a review from IlanCosman as a code owner January 7, 2026 02:06
…nCosman#622)

Fish 4.3 seems to leave $fish_key_bindings empty by default, leading
the check for default bindings in _tide_item_character to fail, and
causing tide to render the vi-mode icons instead of the standard prompt
character.
@sstieger sstieger force-pushed the fix/character-empty-fish-key-bindings branch from b414be3 to 0dcace8 Compare January 7, 2026 02:10
@sstieger
Copy link
Author

sstieger commented Jan 7, 2026

Oh, missed #619 when creating this, since it wasn't mentioned in the two issues.

@MalcolmWardlaw
Copy link

It's probably a little pedantic, but doesn't this style of running test with && and || a little non-robust. Might it be better to make it a formal if/else thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backwards Prompt Icon Incorrect character icon in fish 4.3.1

2 participants