Snippets Manager
A dialog for add, remove and edit snippets.
Blueprint information
- Status:
- Started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Approved
- Series goal:
- Accepted for trunk
- Implementation:
- Started
- Milestone target:
- None
- Started by
- Yuri Malheiros
- Completed by
Whiteboard
The Snippets Manager is a component to create, edit, remove and easy-use snippets.
A side panel listing all snippets that can be used in the current file.
Double click in a snippet or drag and drop it to textview activate the snippet.
Side panel components:
- Add button to create a new snippet. It's open a dialog to add a new snippet.
- Remove button to remove selected snippet
- Maybe import/export and a help button to open the create snippets sections of help
Add snippet dialog must have:
- Inputs for snippet key and snippet description: Simple entries widgets can do the work.
- A widget for edit the snippet body: A textview (or gtksourceview). It will be very good to have syntax highlight for TF snippets. We can create a language definition file and create a widget, inheriting gtksourceview, for this.
Tasks:
* [DONE] Create a new sidepanel
* [DONE] Get all snippets when a new language is loaded
* [DONE] List language snippets on the sidepanel
* Create a dialog to edit/create snippets
* Remove snippet function
* Activate snippet by double clicking and drag and drop
* Create a new gtksourceview language to highlight snippets sintax in the edit/create dialog