pi-ask-tool-extension 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ask-tool-extension",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Ask tool extension for pi with tabbed questioning and inline note editing",
5
5
  "repository": {
6
6
  "type": "git",
@@ -206,6 +206,11 @@ export async function askSingleQuestionWithInlineNote(
206
206
  };
207
207
 
208
208
  const handleInput = (data: string) => {
209
+ if (matchesKey(data, Key.ctrl("c"))) {
210
+ done({ cancelled: true });
211
+ return;
212
+ }
213
+
209
214
  if (isNoteEditorOpen) {
210
215
  if (matchesKey(data, Key.tab) || matchesKey(data, Key.escape)) {
211
216
  isNoteEditorOpen = false;
@@ -438,6 +438,11 @@ export async function askQuestionsWithTabs(
438
438
  };
439
439
 
440
440
  const handleInput = (data: string) => {
441
+ if (matchesKey(data, Key.ctrl("c"))) {
442
+ done(createTabsUiStateSnapshot(true, selectedOptionIndexesByQuestion, noteByQuestionByOption));
443
+ return;
444
+ }
445
+
441
446
  if (isNoteEditorOpen) {
442
447
  if (matchesKey(data, Key.tab) || matchesKey(data, Key.escape)) {
443
448
  isNoteEditorOpen = false;