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

FR: Export code snippets #17

Open
jakimowb opened this issue Mar 22, 2023 · 1 comment
Open

FR: Export code snippets #17

jakimowb opened this issue Mar 22, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jakimowb
Copy link
Collaborator

Feature description

Add context menu shortcuts to export code snippets as shown in https://pyqgis-icons-cheatsheet.geotribu.fr/

E.g. for the resource :images/composer/missing_image.png

Shortcut Clipboard snippet
QIcon QIcon(":images/composer/missing_image.png")
QPixmap QPixmap(":images/composer/missing_image.png")
QgsApplication icon QIcon(QgsApplication.iconPath("missing_image.png"))

Additional context

No response

@Guts
Copy link
Owner

Guts commented Mar 22, 2023

Sure, it's definitely in my plans! Also using QgsApplication.getThemeIcon.

I'll add a copy/paste button and a settings to allow setting a default syntax preference.

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