Text swapping shortcuts

Eddie has a set of swapping features that allow you to move selected lines up or down in a document, selected text left and right, swap arguments around a comma or assignment, etc.

Command-Control-UpArrow

Drag Line/Selection Up

Command-Control-DownArrow

Drag Line/Selection Down

Place the cursor on a line you want to drag up or down. Press Command-Control-Down Arrow. The line gets pulled down. You may repeat this until you drag the line to a desired location.

If you select a few characters on the same line, Command-Control-Up/Down will drag the selected characters up or down. You may select multiple lines and drag them up or down this way. If a selection contains more than one line, the drag automatically extends to entire lines.

Command-Control-LeftArrow

Drag selection left

Command-Control-RightArrow

Drag selection right

If you have an empty selection the character left/right of the cursor will be dragged right or left respectively.

Smart Swap

Command-Option-LeftArrow

Swap left

Command-Option-RightArrow

Swap right

Smart swap is useful for swapping arguments of functions, expressions, etc. You may use it to for instance swap arguments in function calls, like so:

Note that you just had to place the cursor on a part of the string to swap -- the Smart swap function deduced which two strings to swap and around which pivoting character, based on the context and by parsing the text stream. Eddie briefly highlights each of the two string runs it chooses prior to swapping.
Depending on the context, Eddie will choose to pivot around the following: ',', '-', '>', '<', '==', '!=', '=', '|=', '&=', '&', '|', '&&', '||', '/' and ':'. You may help the swap algorithm to pick the right swap pair by positioning your cursor or choosing the swap direction.
C++ users will will find Smart swap handy when reordering class member initialization in constructor initializer lists.

Indenting features

Tab

Tab or indent right

Shift-Tab

Indent left

Command-[

Indent selection left by a tab

Command-]

Indent selection right

Command-Shift-[

Indent selection left by a space (micro-indent)

Command-Shift-]

Indent selection right by a space (micro-indent)

Indent selection right/left lets you insert tabs at the beginning of each selected line or remove tabs/spaces to increase/decrease the indentation level. The Tab key will indent the selected lines if the selection is non-empty.

Note: You may prefer the Tab to just simply insert a Tab. To do that, remove/comment out

SetKey Tab TabOrIndentRight 
in your UserStartup file. See SetKey and UserStartup sections for more details.