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

Add rich text relevant features to context menu #34

Open
isabela-pf opened this issue Aug 16, 2019 · 3 comments
Open

Add rich text relevant features to context menu #34

isabela-pf opened this issue Aug 16, 2019 · 3 comments
Assignees

Comments

@isabela-pf
Copy link
Collaborator

Even though Prosemirror in Markdown cells promotes a new experience, the context menu is the same and thus lacks relevant utility. Some of the things it should be updated to include are to open links (even when cell is not yet run) and copy and paste content, not just whole cells.

I will update this with further ideas of what needs to be in the context menu.

@isabela-pf isabela-pf self-assigned this Aug 16, 2019
@isabela-pf
Copy link
Collaborator Author

Based on completing tasks within the prototype and comparing the context menus of word processors, I've made a list of a few items I'd like to be added to the current context menu when right-clicking on a Markdown cell. Ordered from highest priority to lowest:

  1. Open Link
  2. Make Link
  3. Clear Formatting
  4. Cut Content
  5. Copy Content
  6. Paste Content
  7. Select All Cell Content

If possible, I think we can remove the existing menu items surrounding outputs (Clear All Outputs, Enable Scrolling For Outputs, Disable Scrolling for Outputs) since Markdown cells do not have outputs. Once again, these changes should only be made for context menus activated in a Markdown cell.

@isabela-pf
Copy link
Collaborator Author

Mockup of proposal:

proposed_context_menu

Everything after Open Inspector is an addition, and all output controls are not visible.

@isabela-pf
Copy link
Collaborator Author

As we developed the ability to toggle between raw Markdown and rich text editing (#10), we thought it would be best to put the toggle options in the context menu. This means users do not have to solely rely on shortcuts, and leaves room for other other editors to be listed if more editor swapping options become available in the future.

Everything else is the same as listed in the previous comment.

Mockup:

Change Editor View - Context Menu 1 1

Change Editor View - Context Menu 1 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant