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

Add command to run a console command #69

Open
tremby opened this issue Aug 7, 2017 · 2 comments
Open

Add command to run a console command #69

tremby opened this issue Aug 7, 2017 · 2 comments

Comments

@tremby
Copy link
Collaborator

tremby commented Aug 7, 2017

I liked this feature in the C++ version. Any interest in having it in the new version, or not?

For example, I had ^W run a python script which grabbed and displayed the lyrics for the currently-playing song. I had ^T run Transcribe with the song under the cursor's path/filename as an argument.

It might be nice to allow placeholders for tags of the current or highlighted song.

@kimtore
Copy link
Owner

kimtore commented Aug 8, 2017

Yes, this would be a welcome feature. The exclamation mark ! would need to be added as an input token, and a corner case is needed in the command parser. Unsure about the implementation itself, but it should probably be added as a regular command?

Also, how do we handle the output showing on screen? For this, and other purposes such as debugging or status monitoring, maybe a drop-down (or pull-up) console window could be useful?

@tremby
Copy link
Collaborator Author

tremby commented Aug 8, 2017

I'd be for keeping it simple, rather than trying to display any output within the app.

Vim has :!{command} which runs the command and then shows a "press a key" prompt, or :silent !{cmd} which doesn't redraw the screen or prompt you. Both are useful in different situations.

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