-
Notifications
You must be signed in to change notification settings - Fork 109
feat: Expose formatting menu bar actions through slash command #4587
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
Conversation
Passing run #11614 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
|||||||||||||||
|
@nextcloud/designers I'd be glad to get some early design feedback on this :) |
54ef05d to
34897fa
Compare
|
Really nice, can't wait to use this myself 😍 One thing that immediately came to my mind: should we change the order to hide the formatting options a bit? I don't think it's very intuitive to have six headings options listed as the first smartpicker options 😬 |
|
Yes, maybe we could also sort the usual smart pickers first. Regarding the list of visible entries we could also increase that a bit if screen space allows. @nextcloud/designers What do you think? |
marcoambrosini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I think it would be really nice to have the 4-5 most used styles at the top of the menu so that they're immediately visible.
34897fa to
e5c6b58
Compare
Not sure what the most used would be then. I've pushed a change to sort ToDo list, table, h1, h2 first to at least show that there are different options other than headings. |
|
Sorry, I meant most used on a per document base :) |
|
I'd rather prefer a default choice of order rather than randomly changing ones. Not only for the complexity that it adds but also users would know what to expect from the menu then. I think changing per document could be confusing and also is not very helpful on empty documents or when documents only have a simple structure like headings and paragraphs. |
max-nextcloud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. ✨
Will still test locally.
|
Okay.... I tried this out and it's great... 👯 but we should really check if a given action is available in the current context. So these options should not be available. |
max-nextcloud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check if the actions are available in the current context.
e5c6b58 to
48f45c8
Compare
|
@max-nextcloud Thanks for bringing this up. I pushed a fix to address this. Main change is https://github.com/nextcloud/text/pull/4587/files#diff-461b071d61c872ecc5d0c24f5227cfdbafd62c22347ef001a4d1aab55c25d58eR83-R87 |
max-nextcloud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
48f45c8 to
9337c7e
Compare
|
/compile |
378da86 to
462deb9
Compare
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
462deb9 to
e51ce5a
Compare
|
/backport e4e5f42 to stable27 |
📝 Summary
Introduce commands in the smart picker
/dialog for useful menubar actionsSome menu items (undo/redo/outline) are excluded as they don't make sense here. Insert attachments would still be nice, but ee need to figure out a good way to trigger the action from within the tiptap suggest plugin, so I'd like to rather do that as a follow up.
🖼️ Screenshots
Recording:
https://github.com/nextcloud/text/assets/3404133/96aaecbc-9254-4786-9b35-210557b9694d
🚧 TODO
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)