ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.77k stars 197 forks source link

Indenting automated list bullets #284

Open eseiver opened 10 years ago

eseiver commented 10 years ago

Really like the automated list continuation feature. However nvALT acts inconsistently when indenting an automatically bulleted line. If I'm on the last line of the entire document in a bulleted list, hitting 'enter' then 'tab' will simply move the cursor further away from the newly generated asterisk. However, if it's not the last line, 'enter' then 'tab' will indent the bullet as well. Could you fix this so that 'enter' + 'tab' always indents an automated bullet? Many thanks!

LostKobrakai commented 9 years ago

:+1: for this. This makes automatic listing basicly useless for me.

ttscoff commented 9 years ago

Just use ⌘]

-Brett

On 21 May 2015, at 4:51, Benjamin Milde wrote:

:+1: for this. This makes automatic listing basicly useless for me.


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/nv/issues/284#issuecomment-104207759

LostKobrakai commented 9 years ago

That's an alternative, but not a very great one, depending on the keyboard layout. CMD + Alt + 5 vs Tab CMD + Alt + 6 vs Shift + Tab I'd rather take the latter variant.

elasticthreads commented 9 years ago

@LostKobrakai You're right that cmd-] or cmd-[ are much more useful for US keyboard layouts.

But there are also menu items for Shifting the current paragraph to the right under the format menu. These will shift whatever line your cursor is on a tab stop to the left or right. Which is better than Tab because tab requires the cursor be at the beginning of the line to work.

AND: You can change the KB shortcuts for these (if you don't use a US KB layout) in System Prefs-->Keyboard-->Shortcuts-->App Shortcuts Create shortcuts for nvALT using "Shift Left" and "Shift Right" as the Menu Title

LostKobrakai commented 9 years ago

I'll see. But to be clear: I've seen so many mac apps, that can use TAB in lists no matter of where the cursor is located. So it would for sure be quite nice.

robertmunk commented 5 years ago

I'd also like to see this fixed. I notice that if i'm in the middle of a list and press enter to open up a new list item, then press tab, the new list item I created is correctly indented.

I'm currently working around this by adding an empty list item at the end of my list so that Tab works correctly but this should really be fixed.

nnnnicholas commented 1 year ago

Hey @ttscoff, I love nvALT and I'm back using it after 8 years away in Windows and Linux.

Is there any chance we could get tab to indent bulleted list in a future update? I use Sublime and VSCode when I'm not writing in nvALT and they both handle bullets well (with Markdown plugins). Sublime in particular alternates between - + and * for the bullets at different levels of indentation, which CMD + ] does not do in nvALT. It's more natural for many text editing apps (Word, Pages, Notes, etc) to hit return for newline, then tab to indent, instead of CMD + ].

Thanks for considering it!