Skip to content

Duplicate Line And Insert Contents

Duplicates a line (or multiple lines) and inserts contents gotten from an input dialog.

Note

* Using multiple carets are supported.
* Selections are supported.

Example

Symbol Meaning
| Caret
[ ] Selection

Before

| := "variable-[aaaaa]|"

Action

  1. Execute the action
  2. Insert the following content to the input dialog:
    username
    password
    
  3. Press Enter

After

[username]| := "variable-[username]|"
[password]| := "variable-[password]|"

Another Example

Before

func | () {
println("|")
}

Action

  1. Execute the action
  2. Enter the following content
    hello
    world
    
  3. Set the Extra below lines to 1
  4. Press OK

After

func [hello]| () {
println("[hello]|")
}
func [world]| () {
println("[world]|")
}

Remarks

Info

There is a setting under `Actionable > Text` that you can check it if you
want the replacement to be case-preserving.

before:
```
aCamelCaseName
```

your input:
```
HELLO_WORLD
PascalCase
```

after:
```
helloWorld
pascalCase
```

You can also control this setting, for the active action, within the dialog opened.