zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.37k stars 1.92k forks source link

(Feature request) / menu #4073

Open arromattic opened 1 year ago

arromattic commented 1 year ago

Describe feature

/ menu like notion or logseq or obisidian make plug in which makes writing a lot faster Things that might help

  1. obsidian make md plugin

Additional Information

No response

zadam commented 1 year ago

Hello, it would be useful to describe what is the desired feature. I'm not familiar with logseq or obsidian.

dousha commented 1 year ago

Hello, it would be useful to describe what is the desired feature. I'm not familiar with logseq or obsidian.

It's basically that you can invoke a shortcut menu by typing / at the start of a line, and also /${shortcode}[Enter] will perform some actions. E.g. when typing / at the start of a line, an autocomplete popup would appear, listing some possible shortcodes like /table for inserting a table or /ref for inserting an internal page reference. User then can continue to type a shortcode or select a candidate with navigation keys.

This feature is prominent in almost all online editors (although they may choose other symbols for this function). But I am not sure if it would be easy to implement in CKEditor.

silent-tan commented 1 year ago

ckeditor custom build with full feature could fullfill this requested feature。 see https://ckeditor.com/docs/ckeditor5/latest/examples/builds-custom/full-featured-editor.html

zadam commented 1 year ago

@silent-tan which plugin do you have in mind? AFAIK CKEditor doesn't have support for this.

(I guess "mention" plugin could be used for that)

silent-tan commented 1 year ago

@zadam "slash commands", see https://ckeditor.com/docs/ckeditor5/latest/features/slash-commands.html

Nriver commented 1 year ago

This premium feature is a part of the Productivity Pack available only for customers with a commercial license.

Slash commands not free to use.

silent-tan commented 1 year ago

Maybe allowing users to use their own ckeditor build is a good approach. For me personally, since I'm not using it for commercial purposes, there shouldn't be any issues with using this plugin, right?

silent-tan commented 1 year ago

If you have tried it, the Slash commands plugin can indeed greatly improve typing efficiency.

Nriver commented 1 year ago

Productivity Pack

These are only available to holders of a CKEditor 5 commercial license.