argenos / hotkeysplus-obsidian Goto Github PK
View Code? Open in Web Editor NEWAdds hotkeys to toggle todos, ordered/unordered lists and blockquotes in Obsidian
Adds hotkeys to toggle todos, ordered/unordered lists and blockquotes in Obsidian
Before updating to macOS Big Sur, the check box can be generated correctly for any level of unnumbered lists. However, after updating macOS, this does not work for me any more.
Before using the hotkeys:
After using the hotkeys:
Hi, would it be possible to have an option to configure the number of spaces inserted when changing between text, unordered list and ordered list? Or just reuse the Tab Size settings from Obsidian Settings > Editor?
Currently it is:
- text
- text
- text
- text
OR
1. list
1. list
1. list <
1. list <
1. list
Desired outcome:
- text
- text
- text
- text
AND
1. list
1. list
1. list
1. list
1. list
Especially given that indented ordered list items with only 2 spaces are not rendered in preview (see <
above).
Thanks.
Currently, the cursor travels to the inserted line above.
(Note: this is just an idea, hope it's the right place to post it. Loved you plugin, thank you so much for sharing it with us!)
I love this plug in, thank you for adding it to the API
would it be possible to add functionality to Bulk adding !
to notes - ![[embeded notes]]
usually I would have a list of links in this format:
- [[one]]
- [[two]]
- [[three]]
- [[four]]
- [[five]]
- [[six]]
and I'd love to be able to quickly covert them to this with the !
symbol for embeding notes
- ![[one]]
- ![[two]]
- ![[three]]
- ![[four]]
- ![[five]]
- ![[six]]
I usually use a vim macro, or even multiple cursors, but the elegance and simplicty of your plug in would make this so much easier.
Thanks, keep up the good work
Looks like the commands do not follow your description on all systems.
Toggling ctrl + m does nothing here, while cmd+m actually switches to a checkbox list.
Just wanted to mention.
@lynchjames Hi, thanks for implementing the hotkey, it's one I use a lot! But not always in the way I would like:
When I use this function Toggle embeds for internal links with a list, my list looks crooked (it's because obsidian doesn't display the embedded file name):
It would be nice to have a hotkey to automatically add-delete the name of the ![[open]]-[[closed]] file, so that the embedded lists are displayed correctly.
Could you add this feature as another hotkey or is it better to write to obsidian developers?
Thank you for your attention ! 🌳
I created a shortcut CMD-1 to create an L1 heading.
I upgraded to 0.13.14 yesterday and when I use this shortcut the cursor is placed to the left of the inserted "#" rather than to the right. So, I need to move the cursor and then start typing.
I would expect the cursor to be placed to the right of the inserted MD code.
I'm on MacOS.
Thanks!
It would be really nice if I could toggle between readable line width and not readable line width, thaaanks! Mostly I like readable line width on but sometimes with a big table or dataview or something it's a pain :<
Hi, thanks for the very helpful plugin. One thing I noticed though is it the ability to handle multiple lines (at least in the bullet toggle hotkey) changes after I rebind the key in the Hotkey settings pane. After I change the hotkey (in my case, to Ctrl-B
instead of Cmd-Shift-M
) and select multiple lines and press the Ctrl-B
hotkey it only toggles the first line, not all the selected lines.
If I change the hotkey back to the default then it returns to the original multiline toggle behavior.
This is unexpected behavior so I'm assuming it's a bug?
Thanks.
Hi Argenos, awesome work.
I have 10 templates among which 3 that I use a regurlaly (more than 10x a day for meeting notes).
1 - Ctrl + Shift + T: open template list
2 - Select template with keyboard or mouse
3 - Template is inserted in note
1 - Ctrl + Shift + (0-9): insert the template bonded to a number (0-9)
Each template would have a number assigned to it (up to 10 templates)
Best
Executing the copy line command in a sidebar document now does them in the main edited document instead.
I'm the one who did this feature originally a while ago, but I don't have time for this right now, and I want to have this issue here anyway for the record. @tzarick I don't know if you would know how to tackle this, or if you are interested.
Currently in Obsidian, there are hotkeys to split tabs into different panes, but no hotkey to switch between panes. Adding this functionality would be useful for people who prefer not to use the mouse as much as possible.
this could be implemented similar to Vim or tmux, where the hotkeys move between panes spacially (move to right, left, up or down pane since you can split multiple times) instead of the VS code implementation which uses numbers to switch.
I am on macOS. When want to use Cmd + < it opens the Obsidian settings key.
Please explain how this works.
Could this plugin add the ability to place the cursor at the end of each selected line?
I have this key mapped as follows:
It used to work just fine, but now it does nothing. Has something changed in the plugin? Is there a possible conflict with some other plugin? I check other key-mapping apps I use (e.g., Keyboard Maestro) and they do not map that key combination. And, as I mentioned, it used to work just fine. Restarting Obsidian does not help.
Steps to reproduce:
Hotkeys++: Toggle to-do lists
Note that the display does not change
The file is in preview mode, so its contents should not change
The characters - [ ]
are added to the start of the first line of the file
for example:
## Obsidian Hub
becomes
- [ ] ## Obsidian Hub
Hello,
Thanks so so much for this great plugin, which I use dozens if not hundreds of times each day.
One thing that I have noticed is that the checkmark status doesn't replicate on the next line, i.e. if I use the hotkey to toggle between checkmarks to create an unchecked checkmark and then hit return to go to the next line, the next line is just a bullet. Most commonly when I am working in a checklist I want the next item to be a checkmark too, and having to toggle for every line is a bit annoying.
Thanks so much if this is possible!
Hi, working on a non-US keyboard I would love to have a shortcut for indent and unindent. Could you by any chance add that to this plugin? Thanks in advance!
I came across a little bug.
If you try to Cmd+M
this line: Foo - Bar
It becomes this: - Foo 1. Bar
I would expect it to look like this instead: - Foo - Bar
It would be great to be able to duplicate lines up in addition to down. The "Duplicate current line or selected lines" feature effectively duplicates the line down currently, which is great, but it would be nice to have the option to go both directions. I imagine this being analogous to using the Alt+Shift+up_arrow
and Alt+Shift+down_arrow
hotkeys in VSCode. This includes the cursor being placed on the new line with the duplicated content (the same way the down feature already works now).
The proposal here is to add support for a new option called "Duplicate the current line or selected lines up" and also rename the current duplication feature to "Duplicate the current line or selected lines down."
If this is something that you think would be a good addition and would like to action, and are looking for help, I'd be more than happy to look into creating a PR around this.
I already have it implemented, ready for a pull request.
When I switch to the non-legacy editor and toggle an empty line to a bullet list, a to-do list, or a block quote, the cursor is placed at the beginning of the line rather than at the end of the line. When the legacy editor is set, the cursor is placed at the end of the line after such toggling.
This makes it so I can't immediately start typing and instead have to move the cursor. It would be more convenient if the cursor placement was consistent with the legacy editor way of doing things.
Interestingly, this doesn't seem to occur if the cursor is already at the end of the line filled with text. This only occurs if it's a blank line or if the cursor is in the middle of line with characters.
Thanks for this great plugin. Would it be possible to support other list identifiers (*
and +
)?
Thank you for nice plugin. I love changing style of lists.
After switching to numbered/ordered list in markdown every line start with "1."
For me it is huge eye-sore. Is it possible to have list with right numbers in markdown?
(May be only after selecting and switching whole list? Changing whole list numbers after switching one line may be too much for other use-cases...)
Thank you and have a nice day
By default HK++ provides Ctrl-M
hotkey to Toggle to-do lists. What it does is cycling through states:
bullet
checkbox: unchecked
checkbox: checked
I believe it has been created before the similar function was added to Obsidian, because the built-in Cycle bullet/checkbox hotkey is doing exactly the same now.
At then, there is also another built-in function called Toggle checkbox status which works exactly as declared, cycling though:
checkboxed unchecked
checkboxed checked
As you see, the first two are doing what the second can do. Yet, there is no function which cycles through:
bullet
checkbox (unchecked)
Here is a ticket I created just now: https://forum.obsidian.md/t/add-toggle-bullet-checkbox-hotkey/35186
There I propose to add the missing Toggle bullet/checkbox hotkey.
In the meantime, is it possible for HK++ plugin to fill this gap? In my opinion, it can be done it two ways:
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.