Rline » History » Version 3
Per Amundsen, 08/10/2015 09:02 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.5_ |
|---|---|---|---|
| 2 | |||
| 3 | */rline [-ahsl] [c] <@name> <N> <text>* |
||
| 4 | |||
| 5 | 3 | Per Amundsen | Replaces the Nth line in a custom @window with a new line. |
| 6 | 1 | Per Amundsen | |
| 7 | *Switches* |
||
| 8 | |||
| 9 | 2 | Per Amundsen | -a - Selects the newly added item while keeping the old selection in a listbox. |
| 10 | -h - Highlights the window's node in the treebar is the window is not active. |
||
| 11 | -s - Clears the old selection in a listbox and selects the newly added item. |
||
| 12 | -l - Specify the action to take place on the side-listbox, |
||
| 13 | 1 | Per Amundsen | |
| 14 | *Parameter* |
||
| 15 | |||
| 16 | 2 | Per Amundsen | [c] - An optional color number for the line |
| 17 | 1 | Per Amundsen | <@name> - Name of the custom window. |
| 18 | <N> - The line to change. |
||
| 19 | <text> - Text to insert. |
||
| 20 | |||
| 21 | *Example* |
||
| 22 | |||
| 23 | <pre> |
||
| 24 | alias example { |
||
| 25 | 3 | Per Amundsen | ; Open a custom window. |
| 26 | /window -de @Example |
||
| 27 | 1 | Per Amundsen | |
| 28 | 3 | Per Amundsen | ; Add a line with the text 'Line A'. |
| 29 | /aline @Example Line A |
||
| 30 | 1 | Per Amundsen | |
| 31 | 3 | Per Amundsen | ; Add a line with the text 'Line B'. |
| 32 | /aline @Example Line B |
||
| 33 | 1 | Per Amundsen | |
| 34 | 3 | Per Amundsen | ; Add a line with the text 'Line C'. |
| 35 | /aline @Example Line C |
||
| 36 | 1 | Per Amundsen | |
| 37 | 3 | Per Amundsen | ; Change the text of the second line to 'Line D'. |
| 38 | /dline @Example 2 Line D |
||
| 39 | 1 | Per Amundsen | } |
| 40 | |||
| 41 | </pre> |