Can we use "Tab" to enter 4 spaces?

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

  1. x1

    1. x2

    2. x3

      1. 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:

2 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).

Tab is used for page navigation for accessibility, so I’m not sure it can be repurposed that easily.

2 Likes

maybe “ctrl + tab” or “ctrl + space” ?

1 Like

I can certainly slide it over to #ux for consideration. :+1:

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?