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

FEATURE: Disable all prompts #1571

Closed
1 task done
bprb opened this issue Sep 29, 2024 · 1 comment
Closed
1 task done

FEATURE: Disable all prompts #1571

bprb opened this issue Sep 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bprb
Copy link

bprb commented Sep 29, 2024

Did you check the docs?

  • I have read all the docs.

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

Is there a way to force-disable all prompts when opening a tree? Something similar to reveal_force_cwd but without actually forcing the cwd.

The context is that a session or vimscript sets up a workspace by calling Neotree, but this might trigger "File not in cwd. Change cwd to..." prompts, even though we're not in "interactive mode" so to speak. The prompt might consume the next normal! or have some other unwanted behavior.

Describe the solution you'd like.

Perhaps something like
Neotree filesystem reveal noprompt

Describe alternatives you've considered.

I tried a few combinations like reveal_force_cwd dir=. but would still get prompts sometimes.

Sorry if I missed this in :h neo-tree-configuration, it seemed more about custom rendering and sources. But if an easy hook will suppress any prompts then that works too! Thanks in advance.

Additional Context

No response

@bprb bprb added the enhancement New feature or request label Sep 29, 2024
@pynappo
Copy link
Collaborator

pynappo commented Jan 26, 2025

With #1649 the behavior is now that if dir is specified, then neotree will not prompt. The prompt will only happen if neither reveal_force_cwd nor dir is set. so now dir=. should be fine?

@pynappo pynappo closed this as completed Jan 26, 2025
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

No branches or pull requests

2 participants