obsidian-paste-mode icon indicating copy to clipboard operation
obsidian-paste-mode copied to clipboard

Feature Request: Indent all lines to current level when multiple lines are pasted

Open YousufSSyed opened this issue 2 years ago • 4 comments

Let's say I have this list

- Item 1 
  - Item 2
  - 

and I want to add these items with the caret on the blank line:

Item 3
Item 4

I want the list to look like this:

- Item 1 
  - Item 2
  - Item 3
  - Item 4

As of now, the plugin would only do this:

- Item 1 
  - Item 2
  - Item 3
Item 4

YousufSSyed avatar Mar 03 '23 05:03 YousufSSyed

I believe because the plugin is trying to do this https://github.com/jglev/obsidian-paste-mode/issues/19?

Currently the plugin would do this

- Item 1 
  - Item 2
  - Item 3
    Item 4

instead of what you reported, which is

- Item 1 
  - Item 2
  - Item 3
Item 4

nhan000 avatar Apr 08 '23 02:04 nhan000

In that case, I think @jglev should consider adding a setting for how its pastes, whether it just indents like this:

- Item 1 
    Item 2
    Item 3
    Item 4

Or also includes bullet points, numbers, or checkboxes depending on which its being pasted on, how I'd like it to:

- Item 1 
  - Item 2
  - Item 3
  - Item 4

YousufSSyed avatar Apr 08 '23 16:04 YousufSSyed

Using your example at the beginning, this is what I wanted (and expected):

- Item 1 
  - Item 2
  - Item 3
  - Item 4

In fact, the behavior

- Item 1 
  - Item 2
  - Item 3
    Item 4

really confused me and for a while I thought it was a bug. But I came here and see noone reported it so I thought it's just me and my inexperience with Markdown or coming from an outliner (Logseq). I understand the behavior now (posting muli-line as pressing Shift + Enter) but indeed I'd like to have a bullet points option. (You then can use the built-in commands in Obsidian to convert them to checkboxes or numbered list).

nhan000 avatar Apr 08 '23 19:04 nhan000

Thank you both for your correspondence! I'm sorry for my delay in responding; it's been a busy few months! I'm writing just to say that this is on my radar, and that I am starting to think through this.

jglev avatar May 14 '23 20:05 jglev