Skip to content

Conversation

@ayax79
Copy link
Contributor

@ayax79 ayax79 commented Jun 3, 2025

By default the cli only supports emacs key bindings. This pull request allows a configuration parameter EDIT_MODE to be set that will allow the rustyline edit mode to be explicitly set. The following config allows the edit mode to be set to vi:

> ❯ : cat ~/.config/goose/config.yaml
GOOSE_PROVIDER: github_copilot
extensions:
  developer:
    bundled: true
    display_name: Developer
    enabled: true
    name: developer
    timeout: 300
    type: builtin
GOOSE_MODEL: gpt-4o
EDIT_MODE: vi

Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Not a maintainer here, just doing a few drive by PR reviews in the hope of paying down some debt to get mine reviewed 😉 )

@zanesq zanesq requested review from baxen and michaelneale June 18, 2025 20:48
…_edit_mode

* 'vi_edit_mode' of github.com:ayax79/goose:
  Made edit_mode optional and inlined determine_edit_mode
  Add the ability to configure rustyline to use EDIT_MODE
@michaelneale
Copy link
Collaborator

nice - I think people that know about emacs conventions in UI input and want an alternative should have it, and doesn't change default

@cgwalters appreciate your diligence - we will need more maintainers soon I think! be careful what you wish for haha

I updated this to main, and tidied up some clippy/fmt errors

@michaelneale michaelneale changed the base branch from main to micn/main June 19, 2025 00:08
@michaelneale michaelneale changed the base branch from micn/main to main June 19, 2025 00:09
@michaelneale
Copy link
Collaborator

sorry @cgwalters do you mind updating/resolving the conflicts? I had a look but worry I would break it

@michaelneale michaelneale added clarification provide explanation for goose's behavior waiting and removed clarification provide explanation for goose's behavior labels Jul 8, 2025
@cgwalters
Copy link
Contributor

@cgwalters appreciate your diligence - we will need more maintainers soon I think! be careful what you wish for haha

I am interested in this conversation; I like four aspects of Goose:

  • FOSS
  • Rust
  • CLI but with support for GUIs
  • multi-model

And I'd like to try to convince my employer to invest a bit more formally based on this. I can't promise anything right now, but that's my hope.

sorry @cgwalters do you mind updating/resolving the conflicts? I had a look but worry I would break it

Hi @michaelneale I'm not the PR author. I just did a drive by review here.

@michaelneale
Copy link
Collaborator

oh apologies @cgwalters !

sorry @ayax79 would you be interested in continuing (some conflicts to resolve)

@ayax79
Copy link
Contributor Author

ayax79 commented Jul 10, 2025

@michaelneale fixed!

@michaelneale michaelneale merged commit ad1e322 into block:main Jul 14, 2025
7 checks passed
zanesq added a commit that referenced this pull request Jul 14, 2025
* 'main' of github.com:block/goose:
  feat: fetch openrouter supported models in `goose configure` (#3347)
  Add the ability to configure rustyline to use a different edit mode (e.g. vi) (#2769)
  docs: update CLI provider guide (#3397)
  Streamable HTTP CLI flag (#3394)
  docs: Show both remote options for extensions in CLI (#3392)
michaelneale added a commit to jackjackbits/goose that referenced this pull request Jul 14, 2025
* main: (51 commits)
  docs: reflecting benefits of CLI providers (block#3399)
  feat: fetch openrouter supported models in `goose configure` (block#3347)
  Add the ability to configure rustyline to use a different edit mode (e.g. vi) (block#2769)
  docs: update CLI provider guide (block#3397)
  Streamable HTTP CLI flag (block#3394)
  docs: Show both remote options for extensions in CLI (block#3392)
  docs: fix YouTube Transcript MCP package manager (block#3390)
  docs: simplify alby mcp (block#3379)
  docs: add max turns (block#3372)
  feat(cli): add cost estimation per provider for Goose CLI (block#3330)
  feat: Allow Ollama for non-tool models for chat only (block#3308)
  [cli] Add --provider and --model CLI options to run command (block#3295)
  Docs: Lead/worker model in Goose Desktop (block#3342)
  revert: refactor: abstract keyring logic to better enable DI (block#3358)
  Drop temporal-service binary (block#3340)
  docs: add fuzzy search (block#3357)
  Fix name of GPT-4.1 System Prompt (block#3348) (block#3351)
  docs: add goose-mobile (block#3315)
  refactor: abstract keyring logic to better enable DI (block#3262)
  fix: correct tool use for anthropic (block#3311)
  ...
@ayax79 ayax79 deleted the vi_edit_mode branch July 14, 2025 16:43
atarantino pushed a commit to atarantino/goose that referenced this pull request Jul 14, 2025
…e.g. vi) (block#2769)

Co-authored-by: Jack Wright <[email protected]>
Co-authored-by: Michael Neale <[email protected]>
Signed-off-by: Adam Tarantino <[email protected]>
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
…e.g. vi) (block#2769)

Co-authored-by: Jack Wright <[email protected]>
Co-authored-by: Michael Neale <[email protected]>
Signed-off-by: Soroosh <[email protected]>
kwsantiago pushed a commit to kwsantiago/goose that referenced this pull request Jul 19, 2025
…e.g. vi) (block#2769)

Co-authored-by: Jack Wright <[email protected]>
Co-authored-by: Michael Neale <[email protected]>
Signed-off-by: Kyle Santiago <[email protected]>
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants