HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

Changing indent/outdent shortcut #316

Open ylian opened 8 years ago

ylian commented 8 years ago

Got an email from a user:

I really like you app, but not having indent/dedent controls with ⌘[ and ⌘] is really cramping my style. Instead of doing the standard indent dedent controls like in Xcode, Sublime, Notes, BBEdit etc. it switches notes. Is this something you might change in a future version?

I think this makes sense. Anyone object to changing indent/outdent shortcuts in code cells to ⌘[ and ⌘]? As a result, I would need to change the wiki navigation shortcuts. Suggestions are welcome.

JMichaelTX commented 8 years ago

I agree, but I'd make it for all cell types. :+1: I believe this is pretty much the Mac standard shortcut.

So, in the Text cell, would this be a true HTML text-indent (not just spaces like TAB)?

ylian commented 8 years ago

@JMichaelTX Good point. It should work in all cells.

Not sure if it should be HTML text-indent in text cells. I kind of incline towards using a tab or spaces, but not sure.

JMichaelTX commented 8 years ago

@ylian, if I want tab or spaces, I can use the TAB key. My use case is to do a block indent, so I can start typing one or more lines/paragraphs, and the indent will remain in place, starting new lines with the same indent.

ylian commented 8 years ago

@JMichaelTX Thanks. It's kind of funny that this is actually easy to do in a text cell, with document.execCommand('indent') and document.execCommand('outdent'), which do exactly as you described.

But I can't find a real indent/outdent function in the Ace editor. It only works if the cursor is at the beginning of the line. I have to leave this to later.

JMichaelTX commented 8 years ago

It only works if the cursor is at the beginning of the line

I could live with that as initial implementation until you have time to more fully implement. I'd say that 95%+ of the time I want to indent/outdent is when I'm at the beginning of a line.

csampersand commented 8 years ago

@ylian In Ace, wouldn't it be blockindent and blockoutdent?

TheGreatComputer commented 7 years ago

Have you implemented this ? I'm unable to indent in Text Cells and there's no options for this.

EDalSanto commented 7 years ago

I also can't seem to find an indent and outdent shortcut still. Has anyone figured this out?

mmcf commented 7 years ago

+1

EvanLovely commented 7 years ago

Would love this too! Usually when I bring in code from another app it is indented and I want to un-indent it in Quiver. I think Cmd+[ and Cmd+] would be great and it should indent the whole line even if the cursor is in the middle of the line.

Thanks! Love Quiver!

servemark commented 4 years ago

I'd think indent and outdent would be basic function in a text (or even code) app. Badly needed.

criblecrable commented 1 year ago

As a workaround, we may use the fact that Tab/Shift-Tab works well in Lists.

  1. Edit Quiver CSS for li tag (or ul li, to only affect unordered lists), to make bullets invisible: Menu Preferences | Styles | Editor: Edit CSS / Text cell / ul li { list-style-type: none; }
  2. When editing, start unordered list Press Ctrl-Shift-.
  3. Then, use Tab/Shift-Tab for indents.