Skip to content

Commit

Permalink
Fix #4400 Prioritize \(, give | an order
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Sep 20, 2024
1 parent 097d381 commit cd76bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/completion/completer/macro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ function entryCmdToCompletion(item: MacroRaw, packageName?: string, postAction?:
.replace(/([a-z])/g, '$10').toLowerCase()
.replaceAll('{', '0')
.replaceAll('[', '1')
.replaceAll('(', '2')
.replace(/^(.+?)\(/g, '$12') // Skip \(
.replaceAll('|', '3')
.replaceAll('*', '9')
if (postAction) {
suggestion.command = { title: 'Post-Action', command: postAction }
Expand Down

0 comments on commit cd76bf9

Please sign in to comment.