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

feat: Context menu for Nunjucks tag[INS-4273] #7828

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Conversation

cwangsmv
Copy link
Contributor

@cwangsmv cwangsmv commented Aug 12, 2024

Show different context menu when right clicks on Nunjucks tag in editor.
Add and improve the edit/copy/cut/delete action in context menu.
Currently copy and cut is not working since they do not copy tag real value.
Add delete action to delete the tag and edit action to edit the tag just like left click on tag.
Screenshot 2024-08-12 at 10 06 32Screenshot 2024-08-12 at 10 17 55

Changes:

  • Add handler when user right clicks on Nunjucks tag and get range and template data.
  • Modify the ipcMain and ipcRenderer listeners to handle Nunjucks tag right click.
  • Add edit/copy/cut/delete action handler.

@cwangsmv cwangsmv enabled auto-merge (squash) August 12, 2024 09:38
@cwangsmv cwangsmv disabled auto-merge August 12, 2024 09:48
@cwangsmv cwangsmv merged commit 9fc1567 into develop Aug 12, 2024
7 of 8 checks passed
@cwangsmv cwangsmv deleted the feat/tag-context-menu branch August 12, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants