command-pal icon indicating copy to clipboard operation
command-pal copied to clipboard

Display palette method

Open rouilj opened this issue 2 years ago • 2 comments

This addresses #25.

I am not sure if it's the right way to get App and CommandPal to cooperate, but it works.

// Display the instance
c.displayPalette(true)
// Hide the instance
c.displayPalette(false)
// Toggle from display -> hide or hide -> display
c.displayPalette()

rouilj avatar Feb 04 '23 22:02 rouilj

c.dispatch('close') maybe?

or a wrapper for it for opened/closed and to toggle.

rouilj avatar Feb 11 '23 01:02 rouilj

c.dispatch('close') maybe?

or a wrapper for it for opened/closed and to toggle.

Yeah that would be nice to be able to send events to the Command Pal instance 🤔 Then we'd have c.subscribe('...') and c.dispatch(...)

benwinding avatar Feb 11 '23 02:02 benwinding