Skip to content

Conversation

@aca
Copy link
Contributor

@aca aca commented Nov 16, 2025

Provide fish like autosuggestion. By default it suggest from history. But can be customized (maybe use it to provide AI suggestions?)

# enabled by default
set edit:auto-suggestion:enabled = $true

# optional
set edit:auto-suggestion:provider = {|code|
  if (str:has-prefix $code "hello ") {
    put "world"
  }
}

# default keymap
set edit:insert:binding[Ctrl-F] = $edit:auto-suggestion:accept~

fixes #322

@aca aca changed the title Provide autosuggestions [WIP] Provide autosuggestions Nov 16, 2025
@aca
Copy link
Contributor Author

aca commented Nov 16, 2025

image

@aca aca changed the title [WIP] Provide autosuggestions Provide autosuggestions Nov 22, 2025
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.

fish-like autosuggestion

1 participant