Editing
Maintaining an up-to-date library of code snippets in the Pieces for Obsidian Plugin is made easy through seamless editing.
How to Edit Snippets
To modify an existing snippet, follow these steps:
Open the Pieces Sidebar
Click the Pieces icon on the left-hand side of your Obsidian interface.
Locate and Open the Snippet
Navigate to the Saved Materials section and click on the snippet you want to edit to open its quick view.
Navigate to the Edit Button
In the section at the bottom of the quick view, click the Edit Selected Material
button (pencil icon) to enter editing mode.
Make Your Changes
Modify the snippet's content, name, or language as needed.
Save Your Edits
Click the Save Changes
button.
Your changes are automatically saved in real-time and reflected across the Pieces Sidebar.
Actions from Markdown Preview Mode
When viewing a snippet in Markdown Preview Mode in the Pieces for Obsidian Plugin, you have access to several actions to manage and enhance your snippets directly from the Pieces Actions
button below the snippet.
Material Management Actions
There are several material management options available to you when editing code snippets in the Pieces for Obsidian Plugin:
| Instantly copies the snippet's content to your clipboard for use elsewhere in your notes or projects. |
---|---|
| Modifies the snippet's content or metadata. |
| Adds, updates, or removes annotations to provide additional context or notes for the snippet. |
| Creates a shareable link to the snippet for collaboration or external use. |
Actions from the Quick Preview Mode
When viewing a snippet in Quick Preview Mode in the Pieces for Obsidian plugin, several quick actions are available to streamline snippet management and enhance your workflow.
These actions can be accessed from the toolbar or the Captured Context section beneath the snippet.
Toolbar Actions
You can share, edit, copy and manage auto-generated metadata for each snippet by using the See Pieces Actions
or Hide Pieces Actions
button, which is represented as the Pieces
logo.
| Modifies the snippet's content or metadata. |
---|---|
| Instantly copies the snippet's content to your clipboard for use elsewhere in your notes or projects. |
| Creates a shareable link to the snippet for collaboration or external use. |
| Adds, updates, or removes annotations to provide additional context or notes for the snippet. |
| Opens a Quick Menu to access advanced snippet management options |
Quick Menu Actions
The Pieces for Obsidian Plugin allows you to quickly manage your snippets by clicking the three dots inside of the Pieces Sidebar—from there, you can select from a range of options outlined in the table below.
| Change the snippet’s classification. |
---|---|
| Update the snippet’s title. |
| Create a copy of the snippet. |
| Add or manage related links in the snippet’s metadata. |
| Add, update, or remove tags. |
Quickly Access Snippets
Layers upon layers of functionality—that’s the goal of all Pieces for Developers plugins and extensions.