Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: Commit message GUI #1190

Closed
MiroslavMikus opened this issue Mar 16, 2021 · 9 comments
Closed

Q: Commit message GUI #1190

MiroslavMikus opened this issue Mar 16, 2021 · 9 comments

Comments

@MiroslavMikus
Copy link

First things first, huge thanks to the author and all contributors. 🙏

Topic
Commit message GUI.

image

Your thoughts

  • Is there a way to enter a multiline commit message?
  • It would be nice to have some more editing features like
    • Home: navigate to the start
    • End: navigate to the end
    • Ctrl: with the combination of Left or Right arrow: Skip whole word

Are these features possible with the console GUI library?

Thanks in Advice

@danielfalbo
Copy link

danielfalbo commented Mar 22, 2021

  • Press tab to go to the next line
  • Press ctrl+a to jump at the beginning of the current line of the message
  • Press ctrl+e to jump at the end of the current line of the message

@MiroslavMikus
Copy link
Author

Works like a charm 🎉
Many thanks, @danielfalbo!

Did I miss it in the docu?

@danielfalbo
Copy link

danielfalbo commented Mar 22, 2021

ctrl+a and ctrl+e work pretty much everywhere in the shell 👍 but yeah I didn't find tab in the documentation either, I remember asking it under an issue myself in the past.

@jesseduffield
Copy link
Owner

Apologies for the lacking documentation. I'm currently experimenting with having alt+enter add a newline, because using tab is admittedly quite awkward

@thislooksfun
Copy link

@jesseduffield Just updated to 0.27.1 and I can't enter newlines because alt-enter doesn't work on macOS since we have no alt key (yes I tried all the modifier keys, they all just committed).

My suggestions, in order would be:

  1. shift+enter
  2. meta+enter (would need an alternate on Windows/Linux)
  3. ctrl+enter

@jesseduffield
Copy link
Owner

@thislooksfun it says alt but on mac it's actually your cmd key (I'm also on mac). Using iterm you can enable it by following these instructions:

Canop/broot#86 (comment)

I'm not actually sure if the other options you listed work, or if it's possible to make them work, with the rendering library we're now using (tcell). In fact it may not be possible at all, but I haven't looked into it very far

@thislooksfun
Copy link

I'm using Terminal.app, but I was able to get it working by checking "Use Option as Meta key".

@jesseduffield
Copy link
Owner

Using home/end is now supported with #1523

Jumping word by word is yet to come

@jesseduffield
Copy link
Owner

Given that #795 is more specific to the issue of jumping word by word, I'll close this ticket in favour of that

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

No branches or pull requests

4 participants