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

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

Open
YousufSSyed opened this issue Mar 3, 2023 · 4 comments

Comments

@YousufSSyed
Copy link

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
@nhan000
Copy link

nhan000 commented Apr 8, 2023

I believe because the plugin is trying to do this #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

@YousufSSyed
Copy link
Author

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

@nhan000
Copy link

nhan000 commented Apr 8, 2023

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).

@jglev
Copy link
Owner

jglev commented May 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants