• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

multiple-cursors-functions

A package that adds more functions for multiple cursors.
  • #cursors
  • #multiple cursors
  • #insert numbers
  • #insert letters
  • #reverse selections
eirikhalvard
1,031
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Multiple Cursors Functions

A atom package that adds more functions for multiple cursors

Demonstration

Demonstration

Functions

To illustrate how the functions work, selections are marked like this, and cursors are marked like this: | . a ⭆ b represents how a is transformed into b with the execution of the function.

Reverse selection

Reverses the current selections. For each cursor it also selects the surrounding word if the cursors doesn't have a selection.

  • functionCall(argumentThree, argumentTwo, argumentOne)

    ⭆ functionCall(argumentOne | , argumentTwo | , argumentThree | )

  • functionCall(argumentThree, argument | Two, arg | umentOne)

    ⭆ functionCall(argumentOne | , argumentTwo | , argumentThree | )

Insert Letters

Inserts letters on the current cursors, starting at a

  • function_call(arg_ | , arg_ | , arg_ | )

    ⭆ function_call(arg_a | , arg_b | , arg_c | )

Insert Numbers

Inserts numbers on the current cursors, starting at 0.

  • function_call(arg_ | , arg_ | , arg_ | )

    ⭆ function_call(arg_0 | , arg_1 | , arg_2 | )

Insert Text

Opens up a dialog, which lets you choose a starting value and an increment value to insert letters or numbers on the current cursors. Starting value can be a single letter or a whole number, increment can be a whole number.

  • function_call(positive_number_ | , positive_number_ | , positive_number_ | )

    ⭆ The user inserts "1" in the dialog box

    ⭆ function_call(positive_number_1 | , positive_number_2 | , positive_number_3 | )

  • function_call(odd_number_ | , odd_number_ | , odd_number_ | )

    ⭆ The user inserts "1:2" in the dialog box

    ⭆ function_call(odd_number_1 | , odd_number_3 | , odd_number_5 | )

  • function_call(variable_ | , variable_ | , variable_ | )

    ⭆ The user inserts "e:-2" in the dialog box

    ⭆ function_call(variable_e | , variable_c | , variable_a | )

Split Selections

For each selection, the function deselects the selection and inserts cursors on both sides.

  • Selection is on both sides

    ⭆ Selection is on | both sides |

  • This is also works with multiple selections

    ⭆ | This | is also works with | multiple selections |

Selections To Cursors

For each selection, the function deselects the selection and inserts cursor before and after every character in the selection. This function includes a cursor on the start and end of the selection.

  • This is nice for making lists! [abcde]

    ⭆ This is nice for making lists! [a | b | c | d | e]

  • Just add a comma after executing function! [abcd], [123456]

    ⭆ Just add a comma after executing function! [a | b | c | d], [1 | 2 | 3 | 4 | 5 | 6]

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by