logseq-plugin-heading-level-shortcuts icon indicating copy to clipboard operation
logseq-plugin-heading-level-shortcuts copied to clipboard

Feature Request: Auto header level

Open coffeepenbit opened this issue 2 years ago • 3 comments

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: image

coffeepenbit avatar Nov 29 '22 10:11 coffeepenbit

Yeah! That would be great!

felixsdgh avatar Mar 13 '23 19:03 felixsdgh

I found a nice workaround:

Logseq_VImu0jcs2N

To do this:

  1. 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:"]
 ]
  1. Restart logseq
  2. Type your new, e.g. "test", heading
  3. Hit shift + enter for a line break
  4. Use your command: /heading-orgmode (or whatever you called it in step 1)

coffeepenbit avatar Dec 18 '23 15:12 coffeepenbit

you can use this plugin: logseq-plugin-smart-typing to automatically add heading:: true property. my setting is as follows. 屏幕截图 2024-05-13 195431

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.

ehehela avatar May 13 '24 11:05 ehehela