Project

General

Profile

Aliases Dialog » History » Version 5

Per Amundsen, 03/26/2021 09:04 PM

1 1 Per Amundsen
{{>toc}}
2
3
h1. Aliases Editor
4
5
!editaliases.png!
6
7
The aliases editor allows adding or editing custom aliases.
8
9
Multiple aliases files can be loaded at the same time.
10
11
it can be opened by clicking [[Menubar_Control|Menubar]] -> Tools -> Edit Aliases or by pressing the %(key)ALT% + %(key)D% shortcut or by typing [[/edit]] -a.
12
13
The editor shares characteristics with all the other editors.
14
15
_See also [[/load]], [[/reload]], [[/unload]], [[$alias]], [[$isalias]]._
16
17
h2. Defaults
18
19
When no alias ini file exists, AdiIRC internally uses some default aliases. When opening the alias editor in this case, AdiIRC inserts the defaults into the editor and the alias file is being edited/not saved, saving the aliases once creates the aliases ini file and the marking goes away.
20
21 2 Per Amundsen
h2. Aliases format
22
23
The format of a alias is /name<whitespace><command>. If the command is gonna span multiple lines, the format becomes:
24
25
The leading / in /name is not necessary.
26
27
<pre>
28
/name {
29
  /command1
30
  /command2
31 3 Per Amundsen
  ...
32 2 Per Amundsen
}
33
</pre>
34
35 1 Per Amundsen
h2. Saving aliases to a different ini file
36
37
To save the current aliases file to a different ini file, click the Menubar (inside the editor) -> File -> Save As menu item.
38
39
h2. Loading aliases from a different ini file
40
41
To load aliases from a different ini file, click the Menubar (inside the editor) -> File -> Load menu item or use the [[/load]] command.
42
43
When loading aliaes using the [[/load]], [[/reload]] or [[/unload]] command, the aliases editor will be automatically updated with the new aliases.
44
45
h2. Search/replace text
46
47
Clicking the Menubar (inside the editor) -> Edit -> Find or pressing the %(key)CTRL% + %(key)F% shortcut opens the search and replace panel.
48
49
You can search or search and replace using a [[Scripting_Regex|Regular Expression]] by checking the *Regex* checkbox.
50
51
Pressing the %(key)ESCAPE% key closes the search panel.
52
53
h2. Checking brackets
54
55
Checking for balanced brackets can be done by clicking the *{}* menu item to the far right of the Menubar (inside the editor) or by pressing the %(key)CTRL% + %(key)H% shortcut.
56
57 4 Per Amundsen
h2. Reloading a aliases file
58
59 5 Per Amundsen
If a aliases file was modified outside of the editor, it can be reloaded by clicking the Menubar (inside the editor) -> File -> Reload menu item or by pressing the %(key)F5% shortcut or by typing [[/reload]].
60 4 Per Amundsen
61 1 Per Amundsen
h2. Reset aliases
62
63
Clicking the reset button resets the current select aliases file to the default aliases.
64
65
h2. Jumping to a specific alias
66
67
The *Alias* menu item in the Menubar (inside the editor) can be used to jump to a specific alias in the current alias file.
68
69
h2. Font
70
71
The font of the editor can be changed by clicking the Menubar (inside the editor) -> File -> Change Font menu item.
72
73
_Note: only "truetype":https://en.wikipedia.org/wiki/TrueType fonts can be used._