-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Feature request) Keybind to make the current paragraph a header #4129
Comments
Just type |
I guess that works. Just didn't know that was a thing. Thank you. Maybe instead make it more obvious somehow? Perhaps include the ## in the drop down menu in front of Header 2, etc? |
You can also change the Header format in the Trilium options to use the "Markdown" style, then it would show the hashes in front of the header - this woud be a visual reminder that you can use the hashes. Also, another little-known shortcut: (Bad Mouse, Good Keyboard 🤪) |
Yes, but then the notes look ugly.
I don't think little known features should be a thing, hence my suggestion to include the #s in the drop down menu.
I still think Ctrl2 is better, and that being a shortcut in the shotcuts screen would make it self documenting, unlike AltF10 |
I could get on board with that, but it would pose some issues for the web version of Trilium where |
These features would likely need to be implemented upstream in the CKEditor before they could be implemented in Trilium. |
Type ## and a space at the beginning of a line, it will become heading 2. Three # will make it heading 3. You can try this theme https://github.com/SiriusXT/trilium-theme-blue. Every level of heading has a different colour which make it very distinguishable. |
These are actually markdown-like shortcuts, see documentation here: https://ckeditor.com/docs/ckeditor5/latest/features/autoformat.html These features come from upstream CKEditor for the most part. Changing them would mean forking CKEditor which is something I generally want to avoid. |
Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: TriliumNext/Notes#100 |
Describe feature
A few key bindings that, when used, turn the current line to a heading.
Some sane defaults could for example be Ctrl + 1 .. 6
1 being paragraph, 2 being header 2, etc.
Why is this important?
I find myself often writing manuals or steps to reproduce something (like an installation + configuration) for myself. I very often structure my notes using different headers because not only does that make it more readable, it also creates that really nice index on the side.
The current solution is very slow and inconvenient to use, because you have to grab your mouse and click the little paragraph symbol, click the drop down and then select what you want.
This is especially annoying with a touchpad as mouse operations typically take longer there.
When typing, you typically don't want to take your hands off the keyboard. A keybinding for this very common task would speed the process up immensely and increase the ergonomics of the software.
The text was updated successfully, but these errors were encountered: