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

Minibuffer namespace #1825

Open
1 task done
hanche opened this issue Jul 8, 2024 · 0 comments
Open
1 task done

Minibuffer namespace #1825

hanche opened this issue Jul 8, 2024 · 0 comments

Comments

@hanche
Copy link
Contributor

hanche commented Jul 8, 2024

What new feature should Elvish have?

A separate namespace for use in the minibuffer

Make a namespace, say, $edit:minibuf:ns: that one can assign a namespace to. Name lookups in the minibuffer should check there first, followed if necessary by the usual interactive lookup. New variables created by var or fn should go in the interactive namespace as now. Thus the only way to alter the minibuffer namespace is to assign a new one to edit:minibuf:ns:.

Rationale

Commands made to be run in the minibuffer don't usually make sense elsewhere. This avoids polluting the interactive namespace with irrelevant commands.

Output of "elvish -version"

0.21.0-dev.0.20240320152034-dfe675a0b467

Code of Conduct

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

No branches or pull requests

1 participant