-
Notifications
You must be signed in to change notification settings - Fork 32
Insertion dialog
Insertion Dialog provides an alternative way to insert snippets.
To bring up the insertion dialog, goto Notepad++ Menu > Plugins > Fingertext > Show snippet insertion dialog . The default shortkey is alt+/
In the insertion dialog you can type in the triggertext and hit [tab] to the snippet. As you type, snippet hint text is shown below the insertion dialog text box.
For example if you have a snippet:
Snippet Triggertext: html-sim
Snippet Content:
<title>$[![title text]!]</title>
<body>
<h1>$[![heading]!]</h1>
<p>$[![]!]</p>
</body>
If you bring up the insertion dialog and type "html-sim", you can see that hint text
html-sim([title text],[heading])
is shown under the insertion text box. The hint shows the parameters you can pass in to the snippet when it's being triggered.
You can select some text in the editor before bringing up the insertion dialog. The selected text will be filled in to the keyword hostpot $[![(key)SELECTION]!] when a snippet is triggered in the insertion dialog. This makes the "Surrounded with functionality" possible.