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

Ctrl+Shift+u unicode input on Linux #2163

Closed
seqizz opened this issue Jun 22, 2022 · 5 comments
Closed

Ctrl+Shift+u unicode input on Linux #2163

seqizz opened this issue Jun 22, 2022 · 5 comments
Labels
enhancement New feature or request fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. keyboard Keyboard mapping/handling

Comments

@seqizz
Copy link

seqizz commented Jun 22, 2022

Is your feature request related to a problem? Please describe.
Afaik Linux does not support alt codes, but we can have nice things with Ctrl-Shift-u unicode input method. This seems not supported.

Describe the solution you'd like
Most other GUI apps / some terminal emulators supports it. It might be nice to have on wezterm.

Describe alternatives you've considered
Copy-paste 😬

Additional context
nil

@seqizz seqizz added the enhancement New feature or request label Jun 22, 2022
@tpoliaw
Copy link

tpoliaw commented Jun 27, 2022

An alternative that already works is to use the compose key. eg RightAlt, ", a = ä

@wez wez added the keyboard Keyboard mapping/handling label Jul 7, 2022
wez added a commit that referenced this issue Sep 1, 2022
CTRL-SHIFT-U is a new default key assignment for this new modal.
It opens up a fuzzy searchable browser that defaults to showing
emoji/emoticons.  The category can by cycled through the suggested
emoji categories using CTRL-r.  Unlike the system emoji palette,
wezterm includes a category for nerdfont symbols, and another
that is a list of all unicode codepoint names, so you should be
able to browse for pretty much any codepoint you can think of.

The modal also allows fuzzy searching based on:

* The official unicode name
* The github shortcode
* codepoint value in hex

so if you know the codepoint value but not the name, you can
still find a way to input what you're looking for.

Pressing Enter will copy the selected item to the clipboard
send it to the active pane, and cancel the modal. You can therefore
repeat the insert by simply pasting.

I plan to add frecency to this in a later commit: that way the
frequently/recently used selections will show in a category of
their own and make it easier to re-input them.

refs: #2163
@wez
Copy link
Owner

wez commented Sep 1, 2022

main now has a character selector overlay which you can activate with CTRL-SHIFT-U (u for unicode). It looks like this:

image

Blurb from the commit message:

CTRL-SHIFT-U is a new default key assignment for this new modal.
It opens up a fuzzy searchable browser that defaults to showing
emoji/emoticons. The category can by cycled through the suggested
emoji categories using CTRL-r. Unlike the system emoji palette,
wezterm includes a category for nerdfont symbols, and another
that is a list of all unicode codepoint names, so you should be
able to browse for pretty much any codepoint you can think of.

The modal also allows fuzzy searching based on:

  • The official unicode name
  • The github shortcode
  • codepoint value in hex

so if you know the codepoint value but not the name, you can
still find a way to input what you're looking for.

Pressing Enter will copy the selected item to the clipboard
send it to the active pane, and cancel the modal. You can therefore
repeat the insert by simply pasting.

I plan to add frecency to this in a later commit: that way the
frequently/recently used selections will show in a category of
their own and make it easier to re-input them.

It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer.

Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs.

If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a .dmg file on macOS, a .zip file on Windows and an .AppImage file on Linux) that can be run without permanently installing or replacing an existing package, and can then simply be deleted once you no longer need them.

If you are eager and can build from source then you may be able to try this out more quickly.

@MuhammedZakir
Copy link
Contributor

Pressing Enter will copy the selected item to the clipboard

Can you add an option to send it to the active pane without copying it to clipboard?

wez added a commit that referenced this issue Sep 1, 2022
The default behavior for charselect is to show the recent category
if you have previously used it, otherwise, show the default emotion
category.

refs: #2163
wez added a commit that referenced this issue Sep 3, 2022
@wez wez added the fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. label Sep 4, 2022
@wez wez closed this as completed Sep 4, 2022
@seqizz
Copy link
Author

seqizz commented Sep 7, 2022

Oh wow sorry for late response. This is way more than enough, thanks for the effort 🎉

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. keyboard Keyboard mapping/handling
Projects
None yet
Development

No branches or pull requests

4 participants