Skip to content

Provide autosuggestions#1914

Open
aca wants to merge 2 commits intoelves:mainfrom
aca:autosuggestion
Open

Provide autosuggestions#1914
aca wants to merge 2 commits intoelves:mainfrom
aca:autosuggestion

Conversation

@aca
Copy link
Copy Markdown
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
Copy Markdown
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