Open ylian opened 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)?
@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.
@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.
@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.
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.
@ylian In Ace, wouldn't it be blockindent and blockoutdent?
Have you implemented this ? I'm unable to indent in Text Cells and there's no options for this.
I also can't seem to find an indent and outdent shortcut still. Has anyone figured this out?
+1
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!
I'd think indent and outdent would be basic function in a text (or even code) app. Badly needed.
As a workaround, we may use the fact that Tab/Shift-Tab works well in Lists.
Got an email from a user:
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.