logseq-plugin-heading-level-shortcuts
logseq-plugin-heading-level-shortcuts copied to clipboard
Feature Request: Auto header level
When you right-click on the block to set the header level, there is an option to set it to "auto". This is useful for moving around blocks as they will automatically maintain the proper heading level regardless of where they're located.
Screenshot:
Yeah! That would be great!
I found a nice workaround:
To do this:
- Create a command in
config.edn
, e.g.
:commands
[
;; I use orgmode; you can adapt it to markdown as well
["heading-orgmode" ":PROPERTIES:\n:heading: true\n:END:"]
]
- Restart logseq
- Type your new, e.g. "test", heading
- Hit
shift + enter
for a line break - Use your command:
/heading-orgmode
(or whatever you called it in step 1)
you can use this plugin: logseq-plugin-smart-typing to automatically add heading:: true
property.
my setting is as follows.
Thus, when you enter @h
at the end of a block, it will add this property automatically.
Note that there is a Shift+Enter
before heading:: true
.