wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Ctrl+Shift+u unicode input on Linux

Open seqizz opened this issue 2 years ago • 1 comments

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 :grimacing:

Additional context nil

seqizz avatar Jun 22 '22 19:06 seqizz

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

tpoliaw avatar Jun 27 '22 09:06 tpoliaw

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.

wez avatar Sep 01 '22 01:09 wez

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?

MuhammedZakir avatar Sep 01 '22 04:09 MuhammedZakir

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

seqizz avatar Sep 07 '22 14:09 seqizz

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[bot] avatar Feb 03 '23 19:02 github-actions[bot]