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 comment keyboard shortcut #6

Closed
Zachatoo opened this issue Jun 2, 2023 · 2 comments
Closed

Add comment keyboard shortcut #6

Zachatoo opened this issue Jun 2, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Zachatoo
Copy link
Owner

Zachatoo commented Jun 2, 2023

Add a keyboard shortcut for commenting in a CSS file.

Default to Meta + /, but allow it to be customizable if possible.

@Zachatoo Zachatoo added the enhancement New feature or request label Jun 2, 2023
@Zachatoo Zachatoo self-assigned this Jun 2, 2023
@Zachatoo
Copy link
Owner Author

Zachatoo commented Sep 5, 2023

Did some discovery. Turns out the toggle comment keybind already works if Obsidian's default keybind for toggle comments is turned off or changed to another keybind.

Ideally, the CSS Editor plugin should follow the same keybind as setup in Obsidian settings, and should override Obsidian's command when run in a CSS Editor View.

Or, at the very least, if Obsidian has any keybinds for Meta + /, to ignore it when in a CSS Editor View.

@Zachatoo
Copy link
Owner Author

Zachatoo commented Sep 5, 2023

Found a solution for ignoring Obsidian keybinds while in a CSS Editor View, this is sufficient for my needs at the moment. Released in 0.5.0.

@Zachatoo Zachatoo closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant