Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨
https://rosettea.github.io/Hilbish/
MIT License
496 stars 21 forks source link

feat(fs): add file watching function #277

Open TorchedSammy opened 8 months ago

TorchedSammy commented 8 months ago

add the fs.watch function which takes a path and a callback. it will notify of any file events for the given path.

this function also returns a "watcher" object which has start and stop functions. this was going to be used for caching filenames for file completion but i'll work on it as a function addition for 2.3?