Compare commits

...

6 Commits

Author SHA1 Message Date
Dennis Bartlett f59c3f911d Remove extra new line character 2025-04-08 16:40:31 -07:00
celestial-vault b6de8ce9aa changeset 2025-04-08 15:10:00 -07:00
celestial-vault bf2e5feb0b auto focus and start cursor on new line for easy UX 2025-04-08 15:09:18 -07:00
celestial-vault 90182c15c1 changeset 2025-04-08 14:55:34 -07:00
celestial-vault d288efb351 Merge branch 'main' into add-cline-keybinding 2025-04-08 14:52:28 -07:00
celestial-vault 8d8ce1b174 add cmd + quote keybinding to add to cline chat 2025-04-08 14:04:14 -07:00
4 changed files with 24 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
Add cmd+quote default keybinding to add selected context to Cline chat
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
Auto focus the text field when the user uses the 'add to Cline' command
+10
View File
@@ -118,6 +118,16 @@
"category": "Cline"
}
],
"keybindings": [
{
"command": "cline.addToChat",
"key": "cmd+'",
"mac": "cmd+'",
"win": "ctrl+'",
"linux": "ctrl+'",
"when": "editorHasSelection"
}
],
"menus": {
"view/title": [
{
+4 -1
View File
@@ -457,12 +457,15 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
case "addToInput":
setInputValue((prevValue) => {
const newText = message.text ?? ""
return prevValue ? `${prevValue}\n${newText}` : newText
const newTextWithNewline = newText + "\n"
return prevValue ? `${prevValue}\n${newTextWithNewline}` : newTextWithNewline
})
// Add scroll to bottom after state update
// Auto focus the input and start the cursor on a new linefor easy typing
setTimeout(() => {
if (textAreaRef.current) {
textAreaRef.current.scrollTop = textAreaRef.current.scrollHeight
textAreaRef.current.focus()
}
}, 0)
break