Repository navigation
Commit 39b4100
committed
Enhance git symbol quick pick handlers with token count estimation and direct text insertion
- next to 'diff with commit message' show token count
- when going back from 'commit reference options' we should have last selected item highlighted
- escape key from 'commit reference options' doesn't show a list of commits but 'symbols'. Make sure escape key works like 'go back' action from the titlebar
- the token count on 'commit reference options' is different than it is while using symbol replacement
- once a commit is accepted and placed, show list of commits again so the user can select another one
- don't append 'tokens' in descriptions
- considering 'changes' symbol, in multi root folder workspaces, should first ask for root-folder selection
- when placing 'changes' symbol, show token count next to branches
- should not show the temporary 'calculating...' text
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ ├── generate-commit-message-commands
│ │ │ └── actions
│ │ │ └── run-generate-action.ts
│ │ ├── search-files-commands
│ │ │ ├── index.ts
│ │ │ ├── search-files-commands.ts
│ │ │ └── utils
│ │ │ ├── get-target-folder-path.ts
│ │ │ └── prompt-for-provided-results.ts
│ │ ├── select-clipboard-paths-command.ts
│ │ ├── select-files-of-commit-command.ts
│ │ ├── select-imported-files-commands
│ │ │ └── utils
│ │ │ └── prompt-for-imported-files.ts
│ │ ├── select-referencing-files-commands
│ │ │ └── utils
│ │ │ └── prompt-for-referencing-files.ts
│ │ └── select-unstaged-files-command.ts
│ ├── features
│ │ ├── context-restoration
│ │ │ └── utils
│ │ │ └── select-context-paths.ts
│ │ └── search-files
│ │ ├── search-files.ts
│ │ └── utils
│ │ ├── analyze-files.ts
│ │ ├── check-matches-condition.ts
│ │ ├── create-search-regex.ts
│ │ ├── group-quick-pick-items.ts
│ │ ├── handle-parent-folder-result.ts
│ │ ├── map-files-to-quick-pick-items.ts
│ │ ├── prompt-for-config.ts
│ │ ├── prompt-for-intelligent-search-results.ts
│ │ ├── prompt-for-keywords-match-mode.ts
│ │ ├── prompt-for-keywords-target.ts
│ │ ├── prompt-for-search-mode.ts
│ │ ├── prompt-for-search-results.ts
│ │ ├── prompt-for-search-term.ts
│ │ ├── prompt-for-shrink-mode.ts
│ │ ├── search-files-by-intelligent.ts
│ │ ├── search-files-by-keywords.ts
│ │ ├── search-files-by-phrase.ts
│ │ └── show-search-results-quick-pick.ts
│ ├── utils
│ │ └── git-repository-utils.ts
│ └── views
│ └── prompt
│ └── backend
│ ├── message-handlers
│ │ └── handle-hash-sign-quick-pick
│ │ ├── handle-hash-sign-quick-pick.ts
│ │ ├── index.ts
│ │ └── symbols
│ │ ├── changes-symbol.ts
│ │ ├── clipboard-paths-symbol.ts
│ │ ├── commit-symbol.ts
│ │ ├── index.ts
│ │ ├── saved-context-symbol.ts
│ │ ├── selection-symbol.ts
│ │ └── skill-symbol.ts
│ ├── prompt-view-provider.ts
│ └── utils
│ └── symbols
│ ├── clipboard-paths
│ │ └── replace-clipboard-paths-symbol.ts
│ ├── fragment
│ │ └── replace-fragment-symbol.ts
│ ├── git
│ │ └── replace-git-symbols.ts
│ ├── image
│ │ └── replace-image-symbol.ts
│ ├── pasted-text
│ │ └── replace-pasted-text-symbol.ts
│ ├── replace-symbols.ts
│ ├── saved-context
│ │ └── replace-saved-context-symbol.ts
│ ├── selection
│ │ └── replace-selection-symbol.ts
│ ├── skill
│ │ └── replace-skill-symbol.ts
│ ├── symbol-cache.ts
│ └── website
│ └── replace-website-symbol.ts
└── packages
└── shared
└── src
└── utils
└── display-token-count.ts1 parent 0438902 commit 39b4100
4 files changed
Lines changed: 325 additions & 98 deletions
File tree
- apps/editor/src/views/prompt/backend
- message-handlers/handle-hash-sign-quick-pick
- symbols
- utils/symbols/git
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
180 | 192 | | |
181 | 193 | | |
182 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
183 | 198 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 199 | + | |
| 200 | + | |
191 | 201 | | |
192 | 202 | | |
193 | 203 | | |
| |||
0 commit comments