TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Tmux Super Fingers

2 点作者 artemave超过 3 年前

1 comment

artemave超过 3 年前
I use tmux to organize terminal windows in a project. One of those windows is running vim, where the coding happens. A big chunk of my time is spent writing, running and fixing tests. And so I keep switching back and forth between vim and shell windows. It goes like this: I choose a single test or a test file in vim and it&#x27;s then sent to another tmux window to run. When the test fails, I want to jump back to vim, with some file from the stacktrace opened. This should sound familiar to the IDE users: that&#x27;s what you get when you click on an individual line in a stacktrace in vscode&#x2F;intellij&#x2F;etc shell. It&#x27;s a pretty basic feature. It&#x27;s also an important one as it removes frictions from the flow.<p>I haven&#x27;t been able to find this for the vim + tmux combo[*]. And so I had to do it myself[**]. It&#x27;s a tmux plugin. It&#x27;s not vim specific and it can open more than just file links. However, as the end result is more generic, it&#x27;s worth stressing that the main itch to scratch was to support the above workflow.<p>[*]: I&#x27;ve since learned about vim-test[1] with quickfix strategy which sort of fits the bill<p>[**]: For posterity: this wasn&#x27;t the first attempt. Prior to that I was using a kitty&#x27;s terminal[2] hints plugin with a bit of python code on top[3], but it really falls short for multi pane windows<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;vim-test&#x2F;vim-test" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vim-test&#x2F;vim-test</a><p>[2]: <a href="https:&#x2F;&#x2F;sw.kovidgoyal.net&#x2F;kitty&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sw.kovidgoyal.net&#x2F;kitty&#x2F;</a><p>[3]: <a href="https:&#x2F;&#x2F;featurist.co.uk&#x2F;blog&#x2F;file-links-in-terminal&#x2F;" rel="nofollow">https:&#x2F;&#x2F;featurist.co.uk&#x2F;blog&#x2F;file-links-in-terminal&#x2F;</a>