Commands
The Pieces Neovim plugin provides several commands to interact with Pieces OS. Here's a list of available commands:
General Commands
:PiecesHealth
Check the health of Pieces OS.
:PiecesHealth
:PiecesOSVersion
Display the version of Pieces OS.
:PiecesOSVersion
:PiecesPluginVersion
Display the current version of the Pieces Neovim plugin.
:PiecesPluginVersion
:PiecesCopilot
Open the Pieces Copilot window in a split view.
:PiecesCopilot
Using the Copilot Chat
- Press
i
to enter insert mode and type your message. - Press
<Esc>
to exit insert mode. - Press
<Enter>
to send the message to Pieces Copilot and see the response.
Copilot Commands
In the Copilot input, you can use slash commands to perform specific actions:
/change_model
Change the current LLM model.
:PiecesConversations
Open a list of Pieces Copilot conversations to choose from.
:PiecesConversations
Navigation and actions:
- Press
<Del>
on the selected conversation to delete it - Use
<Up>
and<Down>
arrow keys to navigate the conversation list - Press
<Enter>
to open the selected conversation in the Copilot
:PiecesSnippets
List all of the saved snippets.
:PiecesSnippets
Navigation and actions:
- Use
<Up>
and<Down>
arrow keys to navigate the snippet list. - Press
<Enter>
to open the selected snippet for editing. - Press
<Del>
on the selected snippet to delete it. - When editing a snippet:
- Press
i
to enter insert mode and make changes. - Press
<Esc>
to exit insert mode. - Type
:w
and press<Enter>
to save the edited snippet. - Type
:q
and press<Enter>
to exit the snippet editor.
- Press
:PiecesCreateSnippet
Create a snippet from the selected text in the visual mode.
PiecesCreateSnippet
- Enter visual mode by pressing
v
in normal mode. - Select the desired text using arrow keys or Vim motions.
- Type
:PiecesCreateSnippet
and press<Enter>
.
Tips
- When editing a snippet opened with
:PiecesSnippets
, remember to save your changes using the:w
command. - Use visual mode to select text before running
:PiecesCreateSnippet
to create a new snippet.