You see, we usually have to enter “2 spaces” or “4 spaces” to make patterns,
1. x1
1. x2
1. x3
1. x4
to get
x1
x2
x3
x4
We usually need this kind of spaces, do we have to allways enter 4 spaces for 4 times?
When we are coding using many kinds of editors, tab will enter 4 spaces at 1 time. Can we have this feature in discourse?
I think that may already be supported:
3 Likes
I found it.
But seems this feature is not quite the right thing for me.
It seems only for coding, you have to select the lines already existed then press “tab”.
But when we are writing an article, we don’t have such lines to select before we write it down.
I use  
quite often to precede a first-line and provide shape to some text, though there is a way you could add an indent wrap if that’s more what you’re after (maybe even with a button in the format bar).
I believe div style is not whitelisted, you would need a plugin or component. But you can create a wrap bbcode directly in your admin forum. Add these lines in Customize > your theme or component > CSS Common
[data-wrap="indent"] {
margin-left: 20px;
}
Then in your post, use this for the text you want:
[wrap="indent"]
Your paragraph
[/wrap]
Tab is used for page navigation for accessibility, so I’m not sure it can be repurposed that easily.
2 Likes
xiasummer
(xiasummer)
May 11, 2022, 10:35am
5
maybe “ctrl + tab” or “ctrl + space” ?
1 Like
I can certainly slide it over to ux for consideration.
1 Like
I found a method.
We can use “AutoHotkey”
then use the script below, “ctrl+space” will send 4 spaces to the editor.
^space:: send {space 4}
return
But, is there a better way?
xiasummer
(xiasummer)
October 18, 2022, 2:44am
8
Great, it works!
In the newest version 2.9.0.beta10, I found it working to select text and enter “Tab” to move the selected text to the right with 2 spaces.
1 Like