Add raw quotes indicator in slash command autocomplete

This commit is contained in:
Cohee
2025-03-29 18:04:11 +02:00
parent c673ebcc22
commit 819ce198a8
2 changed files with 19 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import { hljs } from '../../lib.js';
import { t } from '../i18n.js';
import { SlashCommandAbortController } from './SlashCommandAbortController.js';
import { SlashCommandArgument, SlashCommandNamedArgument } from './SlashCommandArgument.js';
import { SlashCommandClosure } from './SlashCommandClosure.js';
@ -260,6 +261,15 @@ export class SlashCommand {
].filter(it=>it).join('\n');
head.append(src);
}
if (this.rawQuotes) {
const rawQuotes = document.createElement('div'); {
rawQuotes.classList.add('rawQuotes');
rawQuotes.classList.add('fa-solid');
rawQuotes.classList.add('fa-quote-left');
rawQuotes.title = t`Does not alter quoted literal unnamed arguments`;
head.append(rawQuotes);
}
}
specs.append(head);
}
const body = document.createElement('div'); {