←back to thread

Okay, I Like WezTerm

(alexplescan.com)
488 points alexpls | 6 comments | | HN request time: 0s | source | bottom
Show context
leblancfg ◴[] No.41224245[source]
Recently switched to WezTerm and I'm very happy. Was using kitty before that – loved the set up and simplicity coming from iTerm2. WezTerm is leaps and bounds better in terms of what comes out-of-the-box. My terminal config is short enough to sit all in one screen on my editor. After that, the terminal just... gets out of the way and I don't need to think about it.

But the straw that broke my back with using kitty was, I'd end up encountering issues or trying to recreate some of iTerm2's features, only to end up time and again on kitty's maintainer's terse and dismissive comments.

e.g. IIRC his answer to "How do I set up tmux with kitty?" was something like "Don't, tmux is dumb" and closing it. Eventually I gave up.

replies(13): >>41224353 #>>41224451 #>>41225545 #>>41225699 #>>41226105 #>>41226387 #>>41228168 #>>41228348 #>>41229104 #>>41231822 #>>41234027 #>>41235510 #>>41264822 #
throwanem ◴[] No.41225545[source]
Does WezTerm support an equivalent of iTerm's "hotkey window"?

For those unfamiliar, that's a window tied to a show/hide keybinding which when shown floats above all other windows, making a terminal instantly available everywhere - a feature I could live without, but don't care to. I'd love to switch for all of WezTerm's other features, but without that it's simply a nonstarter for me.

replies(6): >>41225686 #>>41225693 #>>41226027 #>>41226343 #>>41227294 #>>41233557 #
1. technojamin ◴[] No.41226343[source]
Not out of the box, but I use Hammerspoon to implement a global hotkey to show WezTerm: https://github.com/jaminthorns/environment/blob/a609e81f3f41...

I don't have a keybinding to hide, but you could easily achieve that by inspecting the active window with `hs.window.focusedWindow()`/`hs.window.frontmostWindow()` and making the behavior conditional based on the application: https://www.hammerspoon.org/docs/hs.window.html#focusedWindo...

In WezTerm, you can control whether the terminal is always on top with the `ToggleAlwaysOnTop` action: https://wezfurlong.org/wezterm/config/lua/keyassignment/Togg...

replies(2): >>41226580 #>>41227560 #
2. pmarreck ◴[] No.41226580[source]
I was unfamiliar with Hammerspoon; to those like me, https://www.hammerspoon.org/
replies(1): >>41232104 #
3. DavideNL ◴[] No.41227560[source]
Note that this does only the “show/hide’ the window part;

The iTerm2 hotkey window, is a floating window, which for example also works in a space with another Fullscreen window/app opened (without moving to another space.)

replies(1): >>41305579 #
4. spartanatreyu ◴[] No.41232104[source]
I use it to add window snapping to macos:

https://gist.github.com/spartanatreyu/850788a0441e1c5565668a...

5. matthewmc3 ◴[] No.41305579[source]
You can get the rest of the way there by combining the Hammerspoon method of launching with WezTerm's ToggleAlwaysOnTop feature. I use a similar method described here: https://github.com/wez/wezterm/issues/1751#issuecomment-2299...

You could probably even use Hammerspoon to initiate the keyboard shortcut if you didn't want to mark the window manually.

replies(1): >>41308630 #
6. DavideNL ◴[] No.41308630{3}[source]
I expect that won't work on macOS, because an "Always On Top window" is not equal to a "floating window"...

It's described here: https://github.com/wez/wezterm/issues/1751#issuecomment-1973...