mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
chore(editor): use at menu to insert linked doc (#10808)
Close [BS-2799](https://linear.app/affine-design/issue/BS-2799/区分linked-doc入口) This PR removes the patch for `Linked Doc` action in the slash menu via the `QuickSearch`, reverting it to use the at menu for inserting.
This commit is contained in:
@@ -152,10 +152,7 @@ export function patchQuickSearchService(framework: FrameworkProvider) {
|
||||
overrideFn(BookmarkSlashMenuConfigIdentifier);
|
||||
|
||||
const modifyFn = (item: SlashMenuItem): SlashMenuItem => {
|
||||
if (
|
||||
'action' in item &&
|
||||
(item.name === 'Linked Doc' || item.name === 'Link')
|
||||
) {
|
||||
if ('action' in item && item.name === 'Link') {
|
||||
item.action = ({ std }) => {
|
||||
const [success, { insertedLinkType }] = std.command.exec(
|
||||
insertLinkByQuickSearchCommand
|
||||
|
||||
Reference in New Issue
Block a user