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

don't require picking language for every Edit Code block #4113

Open
1 task done
rgkirch opened this issue Mar 18, 2023 · 2 comments
Open
1 task done

don't require picking language for every Edit Code block #4113

rgkirch opened this issue Mar 18, 2023 · 2 comments

Comments

@rgkirch
Copy link

rgkirch commented Mar 18, 2023

Describe the feature you'd like

When I insert a new code block with Ctrl+E I don't want to have to pick the language every time. Maybe use the language of the above code block. I'm uncomfortable using the mouse and picking it every time is a chore.

Describe the benefits this would bring to existing BookStack users

Less friction.

Can the goal of this request already be achieved via other means?

No.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?

Not using yet, just scoping

Additional context

No response

@ssddanbrown
Copy link
Member

Thanks @rgkirch for the suggestion, that's a neat idea that I think would be relatively simple to add, we can just use local-storage to track and restore the last option. Specifically using the block above would be a bit trickier though. Not impossible, but not sure it'd be worth the extra complexity vs just using the last-selected.

Will need to be sure to only be auto-filling this on new code blocks though, and not on existing code-blocks with empty language state.

@rgkirch
Copy link
Author

rgkirch commented Mar 24, 2023

Yea, using the last selected would be great, thanks!

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

No branches or pull requests

2 participants