vim-tanka: Easier file navigation for Tanka projects #610
dsabsay
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really like Tanka. But I've struggled navigating the trees of dependencies that my project has accumulated.
I realized vim has a pretty useful "search path" concept built-in that can be customized. So I created a plug in that properly sets the
'path'
option for a given Tanka environment, based on Tanka's precedence rules.This enables the
gf
command (mnemonic: "go to file") to work on filenames in import statements. It jumps you straight to the imported file. It's simple but feels magical! And since it uses Tanka's import path rules, you can rest assured that you're jumping to the actual file being imported.Other commands that use
'path'
also work, like:find
,:sfind
,:tabfind
. And don't worry, the setting is buffer-local so it won't override path settings for other filetypes or buffers.Feel free to check out here and let me know what you think!
Update: I spent a couple hours figuring out
'errorformat'
and got it to work well enough, so now:make
works as expected with parsed errors showing up in the quickfix window. Parsed, meaning that you can jump directly to the line/column in the error message. Pretty smooth!Beta Was this translation helpful? Give feedback.
All reactions