Skip to content

Add BEFORE_FILE_ADD and BEFORE_FILE_DELETE events #1276

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

Closed
1 task done
mehalter opened this issue Dec 31, 2023 · 1 comment · Fixed by #1657
Closed
1 task done

Add BEFORE_FILE_ADD and BEFORE_FILE_DELETE events #1276

mehalter opened this issue Dec 31, 2023 · 1 comment · Fixed by #1657
Labels
enhancement New feature or request

Comments

@mehalter
Copy link
Contributor

Did you check the docs?

  • I have read all the docs.

Is your feature request related to a problem? Please describe.

The events BEFORE_FILE_MOVE and BEFORE_FILE_RENAME allow us to add support for LSP file operation notifications and queries automatically when performing file moving and renaming. There are actually similar file operations in the LSP spec for file creation and deletion which require events to be triggered before the files are added or deleted. This is currently not possible since neo-tree doesn't emit these events.

Describe the solution you'd like.

Add BEFORE_FILE_ADD and BEFORE_FILE_DELETE events similar to the currently existing BEFORE_FILE_RENAME and BEFORE_FILE_MOVE events to allow the user to add support for the rest of the LSP file operation specification.

Describe alternatives you've considered.

No response

Additional Context

No response

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

Successfully merging a pull request may close this issue.

2 participants