You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Rework how selectors work so only last buffer is remembered (#106)
This allows updating selection without having to call chat.ask or chat.open again
Signed-off-by: Tomas Slusny <ts6234@att.com>
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Co-authored-by: Tomas Slusny <ts6234@att.com>
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,14 @@ chat.close()
113
113
-- Toggle chat window
114
114
chat.toggle()
115
115
116
+
-- Toggle chat window with custom options
117
+
chat.toggle({
118
+
window= {
119
+
layout='float',
120
+
title='My Title',
121
+
},
122
+
})
123
+
116
124
-- Reset chat window
117
125
chat.reset()
118
126
@@ -123,6 +131,9 @@ chat.ask("Explain how it works.")
123
131
chat.ask("Explain how it works.", {
124
132
selection=require("CopilotChat.select").buffer,
125
133
})
134
+
135
+
-- Get all available prompts (can be used for integrations like fzf/telescope)
136
+
localprompts=chat.prompts()
126
137
```
127
138
128
139
### Commands
@@ -181,14 +192,14 @@ Also see [here](/lua/CopilotChat/config.lua):
181
192
},
182
193
CommitStaged= {
183
194
prompt='Write commit message for the change with commitizen convention. Make sure the title has maximum 50 characters and message is wrapped at 72 characters. Wrap the whole message in code block with language gitcommit.',
prompt='Write commit message for the change with commitizen convention. Make sure the title has maximum 50 characters and message is wrapped at 72 characters. Wrap the whole message in code block with language gitcommit.',
0 commit comments