Possible to take arguments to commands?


Is it possible for commands to take arguments when they are executed? I want user input for some commands, but building a whole UI for it is an overkill.


Maybe you can re-use this, ctrl + 0 then a open this menu.

I’m trying to find where is it in the code.

Edit: This is doing the job


The go-to-line plugin has a little mini-box that pops up asking for the line number, that might actually work nicely!

I’m looking at https://github.com/atom/go-to-line/blob/master/lib/go-to-line-view.coffee to see how it’s implemented.