Does LeoJS have an equivalent to the minibuffer?

52 views
Skip to first unread message

Thomas Passin

unread,
Dec 23, 2023, 1:15:44 PM12/23/23
to leo-editor
IOW, how can Leo commands be run if there isn't an ALT-x/minibuffer? I don't see one.  Am I just missing it somehow?

jkn

unread,
Dec 23, 2023, 2:59:27 PM12/23/23
to leo-editor
Perhaps it is just not normally visible? From https://open-vsx.org/extension/boltex/leojs :

"""
   The Minibuffer For those familiar with Leo, the ‘minibuffer’ serves as the nerve center for command execution. Access it through Alt+X and use the complete set of Leo’s commands!

Félix

unread,
Dec 23, 2023, 3:15:04 PM12/23/23
to leo-editor
Hello Thomas and jkn :)

Indeed, as stated in LeoJS readme at https://github.com/boltex/leojs?tab=readme-ov-file#features the keybindings will be effective if your mouse focus is in one of the LeoJS panels. (Just like in LeoInteg, which also has the same minibuffer feature.) If you last clicked or tabbed outside of either the LeoJS body pane, or outline, the keyboard commands will be those of other VSCode extensions!

> As noted in the readme:
screen.png

Pressing ALT+X shows a 'minibuffer-palette' with all commands and will restrict the choices as you type in its input box. (It will 'lazy-match' possible commands). Once command(s) have been ran this way, the minibuffer history will be the first choice in the minibuffer, you can rapidly execute past commands this way) It will put @commands and @buttons on top for easy access.

screen.png

Please take the time to go through the (relatively short) readme to have a good overview of LeoJS capabilities! 

Thanks for this question Thomas because it gave me an opportunity to explain this concept to other users who may be unfamiliar with the fact that vscode has THOUSANDS of keyboard shortcuts that are context sensitive. And the context for LeoJS commands to be active is that the focus is in one of LeoJS panels. 

(it also gave me the opportunity to remind people to read the readme!! 😉 )

Félix 

Thomas Passin

unread,
Dec 23, 2023, 4:03:14 PM12/23/23
to leo-editor
Aha!  That was it - I didn't make sure that a leoJS panel was focused.  Thanks.
Reply all
Reply to author
Forward
0 new messages