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

Expose line editor state to script #96

Closed
xiaq opened this issue Feb 9, 2016 · 2 comments
Closed

Expose line editor state to script #96

xiaq opened this issue Feb 9, 2016 · 2 comments

Comments

@xiaq
Copy link
Member

xiaq commented Feb 9, 2016

No description provided.

@xiaq
Copy link
Member Author

xiaq commented Feb 12, 2016

The direct motivation is that I want to bind E in navigation mode to invoke $EDITOR on the selected file, and I feel strongly that this should be done in pure elvish, instead of being implemented as yet another builtin. Also, it would be nice to modify the binding as if it is an elvish table. What I want to achieve should be doable with something like this:

le:binding[navigation][E] = { $env:EDITOR $le:selected-file }

@xiaq
Copy link
Member Author

xiaq commented Sep 11, 2016

le:binding[navigation][Ctrl-E]={
  le:current-command=$E:EDITOR' '$le:selected-file
  le:return-line
}

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