Repository navigation
Commit 7e3ff18
committed
Add Ctrl/Cmd+1-9 shortcuts to switch or create prompt tabs
- allow cycling through tabs with cmd+1 cmd+2 etc
- if there are 3 tabs, doing cmd+4 should open fourth one. When there are 5 tabs, doing cmd+6 shoul dopen seventh one.
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ └── frontend
│ └── Main
│ └── MainView
│ └── MainView.tsx
└── packages
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
├── PromptField.module.scss
├── PromptField.stories.tsx
├── PromptField.tsx
├── components
│ ├── CompletedTasks
│ │ ├── CompletedTasks.module.scss
│ │ ├── CompletedTasks.tsx
│ │ └── index.ts
│ ├── Footer
│ │ ├── Footer.module.scss
│ │ ├── Footer.tsx
│ │ └── index.ts
│ └── Tabs
│ ├── Tabs.module.scss
│ ├── Tabs.tsx
│ └── index.ts
├── hooks
│ ├── use-drag-drop.ts
│ ├── use-dropdown.ts
│ ├── use-ghost-text.ts
│ ├── use-handlers
│ │ ├── handle-copy.ts
│ │ ├── handle-cut.ts
│ │ ├── handle-input-change.ts
│ │ ├── handle-input-click.ts
│ │ ├── handle-key-down.ts
│ │ ├── handle-paste.ts
│ │ ├── handle-submit.ts
│ │ ├── index.ts
│ │ ├── types.ts
│ │ ├── use-handlers.ts
│ │ └── utils.ts
│ └── use-keyboard-shortcuts.ts
└── index.ts1 parent 0b80669 commit 7e3ff18
1 file changed
Lines changed: 19 additions & 0 deletions
File tree
- packages/ui/src/components/editor/common/prompts/PromptField/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
| |||
0 commit comments