vslinko / obsidian-outliner

Work with your lists like in Workflowy or RoamResearch
MIT License
1.03k stars 60 forks source link

[BUG] Enhance Enter Key does not work with vim o/O keys #460

Open chiefnoah opened 1 year ago

chiefnoah commented 1 year ago

When using the vim shortcuts o or O to insert above or below the cursor, the outliner plugin does not insert a bullet point. To Reproduce

  1. Enable vim editor layout
  2. Go to a page
  3. Press o or O (shift + o)
  4. Don't get a bullet point

Expected behavior I think it might be best to have a separate option for it so the user can decide the behavior.

Environment (please complete the following information): N/A

RhvdG commented 1 year ago

I run into this bug all the time, and it would be wonderful if it were fixes (and I lack the skills to do so).

DivineMK commented 4 months ago

I can't reproduce this bug. What are the conditions to reproduce it?

greggroth commented 4 months ago

Here's a screen recording of the reported behavior. Let me know if you have further questions on how to reproduce it

https://github.com/vslinko/obsidian-outliner/assets/903365/5006cdf0-7355-477f-98eb-1b8f1cfd0cbe

DivineMK commented 4 months ago

Oh I see now that I already use a workaround for this, hence why I can't reproduce it :sweat_smile:. I'm very sorry for wasting your time @greggroth . In case anyone want to know the workaround: https://forum.obsidian.md/t/vim-o-and-o-should-respect-understand-current-context-lists/48386/15

greggroth commented 4 months ago

Thanks for sharing that! That looks way simpler and easier than what I proposed, so I'll give it shot and see if there's a way to incorporate it into my PR.