Repository navigation
Commit 795e149
committed
Add settings shortcuts to template and snippet quick picks and make prompt template and snippet settings sections collapsible
- in settings: 'templates' and 'snippets' should be collapsed
- in top right corner of templates quick pick add gear icon that opens settings on templates management
- on 'snippet' quick pick action of the hash symbol, add 'gear' icon, opening settings at prompt management just like [Changes]
├── apps
│ └── editor
│ └── src
│ ├── i18n
│ │ └── translations
│ │ ├── common.ts
│ │ └── views
│ │ └── shared
│ │ └── utils
│ │ └── hash-sign-quick-pick.ts
│ └── views
│ ├── prompt
│ │ └── backend
│ │ └── message-handlers
│ │ └── handle-template-quick-pick.ts
│ ├── settings
│ │ ├── frontend
│ │ │ ├── Home
│ │ │ │ ├── Home.tsx
│ │ │ │ └── sections
│ │ │ │ └── GeneralSection.tsx
│ │ │ └── forms
│ │ │ ├── SnippetsForm
│ │ │ │ └── SnippetsForm.tsx
│ │ │ └── TemplatesForm
│ │ │ ├── TemplatesForm.tsx
│ │ │ └── index.ts
│ │ └── helpers
│ │ └── open-settings.ts
│ └── shared
│ └── utils
│ └── hash-sign-quick-pick
│ ├── hash-sign-quick-pick.ts
│ └── symbols
│ └── snippet-symbol.ts
└── packages
└── ui
└── src
└── components
└── editor
└── settings-view
└── Item
├── Item.module.scss
└── Item.tsx1 parent 48c00a6 commit 795e149
3 files changed
Lines changed: 37 additions & 5 deletions
File tree
- apps/editor/src/views
- prompt/backend/message-handlers
- settings/frontend/Home/sections
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
| |||
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
257 | 267 | | |
258 | 268 | | |
259 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
| |||
0 commit comments