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

Handle file events emitted by Nova on macOS #2674

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

jamiedumont
Copy link

As per the bug report #2663, I've added a branch to the match expression to catch EventKind::Modify(ModifyKind::Name(RenameMode::Any)) events made by Nova on macOS when editing files.

It appears that this is the only event that makes it to meaningful_events: HashMap<PathBuf, (PathBuf, SimpleFileSystemEventKind, ChangeKind)> when using Nova.

In testing this change, I discovered that other editors including Helix 24.7 and Vim 9.0.2142 also emit this event, but go on to emit others.

This change didn't introduce problems when editing with:

Helix 24.7
Vim 9.0.2142
Sublime Text Build 4180
on macOS 14.6.1.
Let me know if you want further testing (or tests) added.

NOTE: This supersedes PR #2672 where I had based my change on master not next, and therefore including other changes. Apologies.

Cheers, Jamie.

@Keats Keats merged commit 2b5c3d0 into getzola:next Oct 18, 2024
5 checks passed
@Keats
Copy link
Collaborator

Keats commented Oct 18, 2024

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants