Skip to content
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

Idea: a command for constantly re-index by watching hiefile #51

Open
hw202207 opened this issue May 25, 2023 · 3 comments
Open

Idea: a command for constantly re-index by watching hiefile #51

hw202207 opened this issue May 25, 2023 · 3 comments

Comments

@hw202207
Copy link

hw202207 commented May 25, 2023

command

  • hiedb -D .hiedb watch .hiefiles

what it does

  • watch all .hie files under folder .hiefiles, whenever a file Changed or New (rather Delete), will try to run index
  • also might be nicer to run index on individual file
@fendor
Copy link
Contributor

fendor commented May 25, 2023

Hi, you can get similar results with entr, then you can use something like fd .hie <some-dir> | entr hiedb -D .hiedb.

@hw202207
Copy link
Author

Yeah, I'm using similar to do auto reindex. just feel nice to have native support.

@josephsumabat
Copy link
Contributor

Plugging for myself but you can use https://github.com/josephsumabat/hiedb-plugin to handle this automatically for you via ghc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants