-
Notifications
You must be signed in to change notification settings - Fork 50
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
Toolbar Plugin #1332
Comments
So I'm not sure this makes sense to implement as a plugin. The reason for that is because I would want other plugins to be able to bind "commands" to this (in the form of buttons). Similar to how I'm going to pursue this further and see how it goes. Input appreciated. |
I don't really want buttons like this. A few reasons:
I hope this makes sense. I find it's best to tell people early when I'm not interested, so that they don't work on something for a few days only to find out that I don't want to merge. |
Related: #159 |
The way I have conceived of implementing this I think actually addresses all of your concerns. Also I'm intending to implement this as a plugin, so it can be turned off without problem :)
#1322 ;)
There is a lot of prior art here. I think we would want to do what most of them do.
I'm envisioning plugins that register buttons based on the filetype, thus this would not really be an issue. If no buttons are registered for a filetype then the buttonbar does not appear.
Yes and no. Lists and headings sure. Tables, diagrams, and custom syntax? Not so much unfortunately. Also I can never remember how to make links, if its I'd also like an emoji picker button, a button to create and insert Draw.io diagrams, a button to find and link images, etc. I'm having fun hacking on this and think I can have a prototype pretty soon, I'm happy to continue working on it even knowing you may not ultimately green-light it unless you are saying with a very high certainty you are completely uninterested. |
Instead of "completely uninterested", a better way of looking at this could be that I want a different user interface for the same thing. Instead of buttons, I would be more interested in typing something like Ideally the things to insert would be simply listed in As for buttons, I'm still not convinced that they are a good idea. Having to include an image for every action would be a pain for configurability. Maybe buttons with text on them instead of images, and a setting to hide the entire toolbar? |
Sounds like you are referring to #1319 ?
So I'm not just talking about snippets here, though for that use case I agree having it be part of
I'm not planning on having the buttons be configurable outside of perhaps snippets, as again I'm not envisioning this being mostly for just inserting some raw text. As far as the images themselves, there is https://iconoir.com/: Can we use SVG's as icons? How does that work? |
#1319 and #159 are pretty similar. I was referring to #159 but you can view #159 as being just specific commands within #1319.
SVG's are a pain in tkinter. I once got them to work through two rounds of conversion, with two different libraries: SVG -> PDF -> PNG. They always ended up having white background though, so it would be easier to make a script that converts them to transparent PNGs, maybe with imagemagick. |
Easy enough. |
When editing a Markdown file, I want some buttons on a bar to appear above the editor window to help with common Markdown features.
I am not aware of an existing pattern for implementing such a thing. Probably need a separate issue for creating a toggleable "button bar".
Hopefully this isn't antithetical to what people are wanting for Porcupine, but this isn't any more invasive than the side-by-side thing that @rdbende is working on, I think
The text was updated successfully, but these errors were encountered: