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

Cmd-line Extension #7

Open
ChrisPenner opened this issue Dec 30, 2016 · 1 comment
Open

Cmd-line Extension #7

ChrisPenner opened this issue Dec 30, 2016 · 1 comment

Comments

@ChrisPenner
Copy link
Owner

There's a start for this here.

The idea here is to have a parallel to Vim's : cmd bar or emacs' M-x;

Rather than each extension needing to figure out its own way for users to be able to run custom
commands, it's better to have one central extension that they can all tie into. Currently rasa-ext-cmd has two utilities:

  • addCmd : Register a command so it can be found by users in search, or executed by entering the command's alias.
  • runCmd : Run a registered command by name, in most cases extensions can just run the action representing a command directly, but this may come in handy for extensions that wish to implement some sort of command searching utility.

Work to be done:

  • Figure out a good way to let the renderer (Slate) render and accept input as a cmd bar. This may involve codifying some sort of 'minibuffer' idea.
  • Figure out some sort of tab-complete/fuzzy-find interface. It would be nice if this were general enough to be shared across all extensions that need similar functionality. A solution for this may already exist.

This issue is for discussion about the idea and possible implementations or research into possibilities.

@jessebmiller
Copy link

I've loved Smex (built on top of IDO) in emacs. It's my favorite tab-complete/fuzzy-find of any interface. I think it would be a good place to look for inspiration.

https://www.emacswiki.org/emacs/Smex

@ChrisPenner ChrisPenner added this to the TODO milestone Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants