Skip to content

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

Merged
cwangsmv merged 3 commits intodevelopfrom
feat/tag-context-menu
Aug 12, 2024
Merged

feat: Context menu for Nunjucks tag[INS-4273]#7828
cwangsmv merged 3 commits intodevelopfrom
feat/tag-context-menu

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 force-pushed the feat/tag-context-menu branch from ae96385 to 7267ca0 Compare August 12, 2024 09:37
@cwangsmv cwangsmv enabled auto-merge (squash) August 12, 2024 09:38
@cwangsmv cwangsmv disabled auto-merge August 12, 2024 09:48
@cwangsmv cwangsmv force-pushed the feat/tag-context-menu branch from 7267ca0 to b5efb8d Compare August 12, 2024 09:48
@cwangsmv cwangsmv merged commit 9fc1567 into develop Aug 12, 2024
@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