-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix get command on macOS #11
Conversation
Prefix Kakoune's echo output with an arbitrary string so that the tmp file is never empty even if the Kakoune's echo is an empty string. No idea why, but fsnotify doesn't trigger the WRITE event on macOS (as opposed to Linux) if the file content is empty.
@TeddyDD Hey 👋 I had to make a few changes in order to fix the hanging issues in Problem I isolated, in short: the fsnotify doesn't trigger a WRITE event if the file content is empty after update, so I came up with an ugly solution to always prefix Kakoune's echo output with an arbitrary string that gets trimmed later (b2f27e9). I also added a few more enhancements along the way:
If you a have any desire and/or some free time, I'd appreciate if you could briefly test this to make sure all works :) Thanks! |
Sure! |
It seems to be working as expected on Linux. |
Awesome, glad it works for you. I'm gonna test-drive this for a few more days before merging. Thank you. |
Okay, I'll be running this branch as well, let you know if something explodes. |
fixes #10
Additionally, the
get
command:-R
flag to print out raw Kakoune-quoted output