mirror of https://github.com/usememos/memos
chore(web): simplify command system and improve editor UX (#5242)
Streamlines the command suggestion interface and fixes list auto-completion behavior: - Remove command descriptions for cleaner suggestion popup UI - Replace PaperclipIcon with FileIcon for semantic accuracy - Fix list auto-completion to avoid extra newline when exiting list mode - Add explanatory comments for cursor offset positions - Improve dependency array in useListAutoCompletion hook 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>pull/5242/head
parent
fc43f86571
commit
5925e3cfc1
@ -1,6 +1,5 @@
|
|||||||
export type Command = {
|
export type Command = {
|
||||||
name: string;
|
name: string;
|
||||||
description?: string;
|
|
||||||
run: () => string;
|
run: () => string;
|
||||||
cursorOffset?: number;
|
cursorOffset?: number;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue