Skip to content

Commit 8441c25

Browse files
Merge pull request #108 from pieces-app/refactor-branding
rename commands
2 parents 081e9e3 + c18a3f0 commit 8441c25

File tree

2 files changed

+18
-29
lines changed

2 files changed

+18
-29
lines changed

README.md

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ Install the plugins by running `:PackerSync` in Neovim.
5353

5454
3. Run :UpdateRemotePlugins
5555

56-
57-
58-
## Configuration
59-
60-
After installing the plugin, you can configure the host by adding the following lines to your `init.vim` or `init.lua`:
61-
62-
```lua
63-
require("pieces.config").host = "http://localhost:1000"
64-
```
65-
66-
By default the host will be http://localhost:1000 on Windows and MacOS and http://localhost:5323 on Linux
6756

6857
## Commands
6958

@@ -118,12 +107,12 @@ In the Copilot chat input, you can use slash commands to perform specific action
118107

119108
Change the current LLM model.
120109

121-
### `:PiecesConversations`
110+
### `:PiecesChats`
122111

123112
Open a list of Pieces Copilot conversations to choose from.
124113

125114
```vim
126-
:PiecesConversations
115+
:PiecesChats
127116
```
128117
Navigation and actions:
129118
- Press `<Del>` on the selected conversation to delete it
@@ -132,35 +121,35 @@ Navigation and actions:
132121

133122
## Asset Management Commands
134123

135-
### `:PiecesSnippets`
124+
### `:PiecesDrive`
136125

137-
List all of the saved snippets.
126+
List all of the saved materials.
138127

139128
```vim
140-
:PiecesSnippets
129+
:PiecesDrive
141130
```
142131
Navigation and actions:
143-
- Use `<Up>` and `<Down>` arrow keys to navigate the snippet list.
144-
- Press `<Enter>` to open the selected snippet for editing.
145-
- Press `<Del>` on the selected snippet to delete it.
146-
- When editing a snippet:
132+
- Use `<Up>` and `<Down>` arrow keys to navigate the material list.
133+
- Press `<Enter>` to open the selected material for editing.
134+
- Press `<Del>` on the selected material to delete it.
135+
- When editing a material:
147136
1. Press `i` to enter insert mode and make changes.
148137
2. Press `<Esc>` to exit insert mode.
149-
3. Type `:w` and press `<Enter>` to save the edited snippet.
150-
4. Type `:q` and press `<Enter>` to exit the snippet editor.
138+
3. Type `:w` and press `<Enter>` to save the edited material.
139+
4. Type `:q` and press `<Enter>` to exit the material editor.
151140

152141

153-
### `:PiecesCreateSnippet`
142+
### `:PiecesCreateMaterial`
154143

155-
Create a snippet from the selected text in the visual mode.
144+
Create a material from the selected text in the visual mode.
156145

157146
```vim
158-
:PiecesCreateSnippet
147+
:PiecesCreateMaterial
159148
```
160149

161150
1. Enter visual mode by pressing `v` in normal mode.
162151
2. Select the desired text using arrow keys or Vim motions.
163-
3. Type `:PiecesCreateSnippet` and press `<Enter>`.
152+
3. Type `:PiecesCreateMaterial` and press `<Enter>`.
164153

165154
## Auth Commands
166155

rplugin/python3/pieces_python/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def install(self):
183183
install_pieces_os()
184184

185185
## LUA COMMANDS
186-
@pynvim.command("PiecesSnippets")
186+
@pynvim.command("PiecesDrive")
187187
@is_pieces_opened
188188
def open_snippets(self):
189189
self.nvim.exec_lua("require('pieces.assets').setup()")
@@ -194,7 +194,7 @@ def open_snippets(self):
194194
def open_copilot(self):
195195
self.nvim.exec_lua("require('pieces.copilot').setup()")
196196

197-
@pynvim.command("PiecesConversations")
197+
@pynvim.command("PiecesChats")
198198
@is_pieces_opened
199199
def open_conversations(self):
200200
self.nvim.exec_lua("require('pieces.copilot.conversations_ui').setup()")
@@ -205,7 +205,7 @@ def open_conversations(self):
205205
def auth_command(self):
206206
self.nvim.exec_lua("require('pieces.auth').setup()")
207207

208-
@pynvim.command('PiecesCreateSnippet', range='', nargs='*')
208+
@pynvim.command('PiecesCreateMaterial', range='', nargs='*')
209209
@is_pieces_opened
210210
def pieces_create_snippet(self, args, range):
211211
self.nvim.exec_lua(f"require('pieces.assets.create').setup()")

0 commit comments

Comments
 (0)