Project

General

Profile

Rline » History » Version 2

Per Amundsen, 08/10/2014 04:09 AM

1 1 Per Amundsen
_Added in 1.9.5_
2
3
*/rline [-ahsl] [c] <@name> <N> <text>* 
4
5
Replaces the N'th line in a custom @window with a new line. 
6
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
  ;Open a custom window.
26
  /window -de @Foo
27
 
28
  ;Add a line with the text "Line A"
29
  /aline @Foo Line A
30
 
31
  ;Add a line with the text "Line B"
32
  /aline @Foo Line B
33
34
  ;Add a line with the text "Line C"
35
  /aline @Foo Line C
36
37
  ;Change the text of the second line to "Line D"
38
  /dline @Foo 2 Line D
39
}
40
41
</pre>