by tambourine_man · 1y ago · 0 comments
- Still no ⌘F for find.
- No way (that I know of) to select previous output or specific string and copy with only keyboard shortcuts.
- No ⌘. sending CTRL-C (muscle memory and being advertised as native to the Mac is what one would expect).
- Fonts still don't render as nicely as in Terminal.app. I've fiddled with `font-thicken-strength` and it's close, but not quite. Probably impossible or very hard to replicate due to its Metal rendering nature, but when all you do is look at text all day, it matters.
This comment sounded familiar[0]. :) For what it's worth, still possible with:
keybind = "cmd+.=text:\x03"
[0]: https://news.ycombinator.com/item?id=42889411I've been delaying a major migration to NeoVim on [modern-terminal-I-can-never-decide-which] for years. Wezterm, Ghostty, iTerm2. None is exactly perfect, so I just keep watching them develop.
" Load vim configs
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrcThen in my zshrc (well... I organize differently) I have the function
function _exists() {
command -v "$1" &> /dev/null
}
alias_vim() {
if (_exists nvim)
then
alias vi='nvim'
alias vim='nvim'
elif (_exists vim)
then
alias vi='vim'
fi
} (( $+commands[vim] )) && alias vi=vim
(( $+commands[nvim] )) && alias vi{,m}=nvimBut having only used ghostty as-is and getting bamboozled by the copy paste situation, this is game changing. I was just going to wait till preferences had a GUI/TUI.. So thanks!
There's a lot happening in the Ghostty app though, check out the 1.2 release notes
For what it's worth, that shortcut also doesn't work in the Jetbrains terminal, Alacritty, Kitty, and even iTerm2. The only terminal emulator I've tried so far where that works is the built-in Terminal.app.
It’s native in the sense that it’s not Electron, or Java, but it’s still a layer of abstraction which introduces all sorts of quirks.
Despite these shortcomings I still use it daily since the first time I tried it, and have come to really love the project in general. I often won't hop to new software if it offers friction like this, but Ghostty pulled me in despite some snags.
Zed is also wonderful software, though it took me way longer to commit to using it daily.
Wait wait wait, this is a shortcut in Mac??
- It doesn’t respect the user’s configured fonts. - Clipboard support is inconsistent. - The GTK4 UI is quirky, and has silly slow animations in situations which don’t make sense.
The first two sound like more serious issues, and I’m surprised that others haven’t found them dealbreakers.
The solution is on their website:
> infocmp -x xterm-ghostty | ssh YOUR-SERVER -- tic -x -
I mean... I could learn what it does, but no way on earth I am going to be typing something like that every time I want to ssh somewhere.
(This is somehow fixed in 1.2 but it requires additional entry in the config for whatever reason. Can't it just work?)
"For whatever reason": because it requires modifying `ssh` and doing that by default is a really sketchy thing to do because it is a very security sensitive tool. No program (Ghostty included) should be mucking with that by default. We want users to be aware.
"Can't it just work?": No, because the entire mechanism is flawed, and I didn't invent the mechanism. It's like asking, "why must I drive to my destination, can't I just teleport?" The entire premise of the question is silly, and it's not the car's fault (Ghostty is the car in this example). For those who want to learn more about "the mechanism": read Ghostty's terminfo page, but also just do some light web searching on how terminfo works. Its a total nightmare.
I really wish that weren't the case, I really do. I promise its just as annoying to me as a user and more annoying to me as a maintainer to have to hear people complain about this repeatedly when I'm not doing anything wrong, personally. I'm playing by the rules. The rules are just bullshit.
We'll continue to make enhancements to improve this while we wait for Ghostty's terminfo to propagate to every machine in the world. It will, it'll just take... a long time. Next up we plan on introducing a `ghostty +ssh` command that you can drop-in replace most `ssh` usage with and it'll automagically just work.
Just to be clear, I do think Ghostty is amazing piece of software and it's so fast that it's hard to believe, so thank you for the hard work.
> read Ghostty's terminfo page, but also just do some light web searching on how terminfo works. Its a total nightmare.
Oh, yea, I totally get that. I actually _did_ try to understand what the issue is, but gave up on that time-sink rabbit hole and decided I might give it another try once the xterm-ghostty is more popular.
Has the ghostty terminfo been added to ncurses?
SetEnv TERM=xterm-256color
in your ssh config stanza will fix that