shesek / spark-wallet

⚡️ A minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps.
MIT License
344 stars 75 forks source link

feature proposal: recent command history dropdown #165

Open m-schmoock opened 3 years ago

m-schmoock commented 3 years ago

I think it would be a simple and efficient addition to have some kind of a drop-down in the console screen, where one can select previous successful commands.

Ideally we can design the current command input box in a way that it can be used for text input and the dropdown function with some triangle button on the right side.

shesek commented 3 years ago

This could be pretty useful indeed!

Another alternative is adding a small "re-run" button next to the command shown in the history, which would keep the UI simpler.

m-schmoock commented 3 years ago

@shesek The command history should be persisted, because currently when app is restarted the command history is empty... Not sure if there's an UI element that can act as an 'editable dropdown'. We have to keep in mind that a lot of commands take arguments which one would like to edit before repeating a command...

Another thing that came in my mind is that the apps console view could call 'help' internally to discover the accessible commands to pre-fill the dropdown or have some auto completion. But that's very nice to have stuff :D