#118 Indent to char on line above/below

Öppen
öppnade 1 vecka sedan av nuclearkev · 1 kommentarer

So imagine this, you're doing a little programming and you have this:

(let [{:keys [bacon]}])
                   ^

and the point is at the ^ on the line (on the ]). You press return and now you're at the beginning of the new line like this:

(let [{:keys [bacon
]}])
^

Once again, the point is at the ^. Now you have to be a loser and press/hold space (or use C-i) to get the point over to under the b in bacon. like this:

(let [{:keys [bacon
              ]}])
              ^

It would be nice if there was a way to do this with a keystoke.

I'm not sure what the keybinding for it would be (leaning towards esc ^) but it would take an argument in the msgline like: Input the char from the line above: but when prompted with the universal argument it would say: Input the char from the line below:

So imagine this, you're doing a little programming and you have this: ```clojure (let [{:keys [bacon]}]) ^ ``` and the `point` is at the ^ on the line (on the `]`). You press return and now you're at the beginning of the new line like this: ```clojure (let [{:keys [bacon ]}]) ^ ``` Once again, the `point` is at the ^. Now you have to be a loser and press/hold space (or use C-i) to get the `point` over to under the `b` in bacon. like this: ```clojure (let [{:keys [bacon ]}]) ^ ``` It would be nice if there was a way to do this with a keystoke. I'm not sure what the keybinding for it would be (leaning towards `esc ^`) but it would take an argument in the msgline like: `Input the char from the line above:` but when prompted with the universal argument it would say: `Input the char from the line below:`

One potential issue is that if you want to use tabs rather than spaces. This can happen when working on projects that use tabs. Maybe there needs to be another setting?

One potential issue is that if you want to use tabs rather than spaces. This can happen when working on projects that use tabs. Maybe there needs to be another setting?
Logga in för att delta i denna konversation.
Laddar...
Avbryt
Spara
Det finns inget innehåll än.