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

Slash commands in editor #2559

Open
thecodrr opened this issue May 20, 2023 · 2 comments · May be fixed by #2977
Open

Slash commands in editor #2559

thecodrr opened this issue May 20, 2023 · 2 comments · May be fixed by #2977

Comments

@thecodrr
Copy link
Contributor

What problem are you facing?

Using the toolbar for adding different types of formats can become cumbersome and unwieldy. While Markdown shortcuts work for basic things like bold, italic etc., they aren't useful for adding complex widgets such as tables, outline lists etc. Secondly, it can be a chore for people to remember all the different markdown shortcuts.

What's the solution you'd like to see in Notesnook?

We can do what a lot of other editors are doing: use / as an entrypoint for showing a list of filterable formats. For example:

  1. Typing / on a new line
  2. A menu popups up with 5 most used formats
  3. Anything typed after / is used as a query to filter formats
  4. Pressing Enter inserts the specified format.

One thing to note here is that / commands are only for block level nodes like:

  1. Tables
  2. Lists
  3. Outline list
  4. Task list
  5. Blockquote
  6. Codeblock

What alternatives have you considered?

Using the toolbar with a mouse or keyboard shortcuts.

Additional context

No response

@RamiroPruis
Copy link
Contributor

Hi @thecodrr. Can I take this issue?

@thecodrr
Copy link
Contributor Author

@RamiroPruis yes, go ahead.

@alihamuh alihamuh self-assigned this May 25, 2023
@RamiroPruis RamiroPruis removed their assignment Jun 1, 2023
@alihamuh alihamuh linked a pull request Jul 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants