Skip to content

Commit 11f47ee

Browse files
committed
Add cut command
1 parent d143364 commit 11f47ee

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
- Ollama
4444
- Tool function exception handling
4545
- Clipboard integration
46-
- Cut
4746
- Fix "put" behavior to copy formulas around to selection
4847
- Settings window
4948
- Change colors

src/keyboard.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const keybindings = {
3030
d: "Delete (Vim)",
3131
"Ctrl+c": "Copy",
3232
"Meta+c": "Copy",
33+
"Ctrl+x": "Cut",
34+
"Meta+x": "Cut",
3335
"Ctrl+v": "Paste",
3436
"Ctrl+Shift+v": "Paste values",
3537
"Meta+v": "Paste",
@@ -171,6 +173,14 @@ function setPasteBufferFromClipboard(globals, clipboard) {
171173
}
172174

173175
export const actions = {
176+
Cut: async (e, globals) => {
177+
const { type, start, end } = globals.selected;
178+
actions.Copy(e, globals);
179+
globals.setSelectionStart(type, start);
180+
globals.setSelectionEnd(end);
181+
actions.Delete(e, globals);
182+
},
183+
174184
Copy: async (e, globals) => {
175185
const cells = globals.getSelectedCells();
176186
if (cells == null) {

src/llm.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ llmToolFunctions.query = function (value) {
7070
export const llmModels = $state({});
7171

7272
llmModels.Gemini = {
73-
model: "gemini-2.5-flash-preview-04-17",
73+
model: "gemini-2.5-pro-exp-03-25",
7474
async request(conversation) {
7575
const response = await fetch(
7676
`https://generativelanguage.googleapis.com/v1beta/models/${this.model}:generateContent?key=${this.apiKey}`,

0 commit comments

Comments
 (0)