-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incremental updates? #46
Comments
Actually, |
Actually, |
Thinking about it its worth adding to the README. if fast-tags competes we can add it, too. But there is another thing to consider -> why run hasktags at all, why not --watch ? If it works for you we can wait till more people ask for it. |
I end up with configs like above. You can just add it to README. |
Why make it so complicated? au BufWritePost .hs,.hsc if (file_exists('tags') | exec "! ( hasktags -x -c -a % && sort -u -o tags ) &" | endif should do it. I have to use exec to append | endif. By --watch I mean update tags file whenever a .hs file changes. http://hackage.haskell.org/package/hinotify-0.4/docs/System-INotify.html If you make hasktags read the lines and start sorting you have more IO to do than keeping it in RAM .. |
Yeah, your script is better ;D |
I don't see how |
Do you mean why complicate the implementation or why complicate it from a user perspective? Because from a user perspective having:
Is as simple as it gets. As someone about to implement hasktags for a team, if I could just do the above I would save an hour or two minimum. Instead I need to go find all the places/ways people update code. You can say "everyone should update it the same way", but that's not really realistic to expect everywhere in my opinion. It would complicate implementation quite a bit to add something like |
A comment on Reddit mentioned that fast-tags can do incremental updates on save. This'd be a cute feature for
hasktags
, and it could make it easier to scale the tool's use for larger codebases.The text was updated successfully, but these errors were encountered: