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

Custom Menus #86

Open
tbpassin opened this issue Dec 21, 2023 · 3 comments
Open

Custom Menus #86

tbpassin opened this issue Dec 21, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@tbpassin
Copy link

In Leo, the user can add menu items and even entire menus by adding them to the @settings. I realize that VSC menus work differently, but I have come to depend on some of my custom additions. Some of them contain standard Leo commands, some my own command scripts.

Is there going to be a path to creating the equivalent of Leo's custom menus and menu items?

@boltex boltex self-assigned this Dec 23, 2023
@boltex boltex added the enhancement New feature or request label Dec 23, 2023
@boltex
Copy link
Owner

boltex commented Dec 23, 2023

@tbpassin Can you show me screenshots of this in the original Leo? I'm curious to know how to use that and to see buttons made out of @settings instead of @buttons. :)

I didn't know about this feature. I'll take a look at what I can do to have a useful and practical equivalent.

@tbpassin
Copy link
Author

Here's a screen shot with three custom menus on it, one of them open. The menus are Local, Bookmarks, and Check Files.
leo-custom-menus

I have attached a zip file containing outlines containing menu-building code from @settings trees.
custom_menus.zip

@boltex
Copy link
Owner

boltex commented Sep 23, 2024

I thought this issue about 'Custom Menus' might be a good place to state (for further reference) that the status bar at the bottom of the vscode window can be filled with arbitrary clickable items, which on hover can also display arbitrary content. This is demoed in the latest 'LeoJS scripting samples' repository: https://github.com/boltex/scripting-samples-leojs

This stratagem could be the basis or something to replace LeoJS @button panel and/or customize the UI with direct access to @commands / @buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants