Skip to content

Conversation

@jsibbison-square
Copy link
Contributor

I tried all sorts of modifiers with ENTER and couldn't get any to work. We could implement it so if line ends with \ and enter is pressed it adds a newline but its a bit fragile given its only for the last line.

Therefore I ended up with Ctrl+j which is 'linefeed' generally speaking. So it adds a newline wherever you are you can navigate anywhere with the arrow keys, you can also delete the new lines as needed so its a pretty good experience. The problem is knowing that 'Ctrl+j' is the shortcut to use. I added it to the help section but its the best option I've come across at the moment.

Copy link
Collaborator

@baxen baxen left a comment

Choose a reason for hiding this comment

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

LGTM, easier to hit than ESC+Enter was

@jsibbison-square jsibbison-square merged commit cd6bd04 into v1.0 Dec 17, 2024
3 checks passed
jsibbison-square added a commit that referenced this pull request Dec 17, 2024
* v1.0:
  Newline in cli (#485)
  remove cliclack prompt (#484)
  feat:model-specific-configuration (#466)
lifeizhou-ap added a commit that referenced this pull request Dec 17, 2024
* v1.0:
  Restore command history when resuming session (#483)
  Newline in cli (#485)
  remove cliclack prompt (#484)
  feat:model-specific-configuration (#466)
  Adds session cost to goose.log (#474)
michaelneale added a commit that referenced this pull request Dec 18, 2024
* v1.0:
  feat: add google provider (#489)
  feat: flappy goose easter egg (#479)
  Restore command history when resuming session (#483)
  Newline in cli (#485)
  remove cliclack prompt (#484)
  feat:model-specific-configuration (#466)
@yingjiehe-xyz yingjiehe-xyz deleted the jsibbison-20241217-newline branch February 5, 2025 21:05
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.

3 participants