Skip to content
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

More shortcuts on ckeditor5 #693

Closed
nil0x42 opened this issue Nov 7, 2019 · 7 comments
Closed

More shortcuts on ckeditor5 #693

nil0x42 opened this issue Nov 7, 2019 · 7 comments

Comments

@nil0x42
Copy link
Contributor

nil0x42 commented Nov 7, 2019

It would greatly improve usability if we have more shortcuts for ckeditor styling.
For example:
ctrl + 1,2,3 for <h1>, <h2>, <h3>
ctrl + 0 for normal text size (of for reseting all styling)
etc...

Also, i compulsively use "front color = red" and "front color = green", to help me easily see positive and negative properties of something.
So if there is any way to do styling from a ckeditor API, it would be very interesting to make it available on scripting API.

@zadam
Copy link
Owner

zadam commented Nov 10, 2019

For some of these there's markdown-like autoformat - e.g. for h3 you just type "### "

@nil0x42
Copy link
Contributor Author

nil0x42 commented Nov 10, 2019

Yes i use them a lot !
But i'm a very mind-changing guy, so i keep changing a previous formatting differently all time.
An i would like to be able to select my <h2> line and convert it to something else without clicking on the ckeditor widget, to select formatting from the list.

Of course this might be specific to my own use case, that's why my other issue #701 is probably a better way to handle things, at it would allow anyone to interact with ckeditor at it's own risks.

@safesparrow
Copy link

I would also find shortcuts for headings and other ckeditor features very useful - especially given the formatting panel is hidden by default.
@zadam do you have any plans for this issue or the linked #701 ?

@zadam
Copy link
Owner

zadam commented May 17, 2020

Yes, I would like to add more shortcuts, it's just not highest priority ATM.

@shotcollin
Copy link

I was just about to add my own feature request for a shortcut to change a selected paragraph to a heading, and I was thinking something similar to @nil0x42's suggestion of ctrl + 1 for <h1> etc. I'm sure such a feature would be profoundly appreciated by all of us who will do almost anything humanly possible not to have to move our hand from the keyboad all the way over to the mouse.

I also noticed Issue #2234 and it seems like this feature might also address that as well? Assuming there were shortcuts for both headings and regular paragraph.

In any case, thanks for the excellent work @zadam!

@Birdacious
Copy link

The script posted in #2954 adds shortcuts for font color and heading style (and I think could be extended for other CKEditor commands, if you check out the CKEditor docs). Hope this helps!

@meichthys
Copy link
Collaborator

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: TriliumNext/Notes#93

@meichthys meichthys closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants