Guest wrote:This is truly awesome tool. I love the idea of search, as I don’t need to remember the weirdest of keystrokes to match the snippets. Thank you for creating this great tool.
Thank you, glad you like it. Indeed that was one of the reasons I made it as well
Guest wrote:I have a request regarding the snippet completion, is there a way to have tab locations, and multiple edits. Here is an example. Using multiple edit, I can type text1 at two locations, and tab press, will take it to text2 location and finally it will be ended inside the for loop....
I know what you mean. There are indeed various text editors that support such multi-caret edits and have silent tab stops (notepad++ w. plugin, ultraedit, everedit, textadept, atom, st etc)
There are two questions:
1. Multi-caret editing: type text and have it inserted at multiple locations at the same time
Unfortunately it is not a standard Windows feature so making it work globably will be impossible.
Perhaps some editors will allow AutoHotkey to set multi-carets, this will have to be determined per program and implemented (if at all possible).
I will see if I can find something for any of the above mentioned editors.
An alternative would be to create a popup AutoHotkey-gui which would somehow allow this before pasting the snippet into the document.
2. Silent tab navigations/stops within a snippet
This is would be possible, it will probably never be foolproof but something pretty close to it.
It could either have silent tab stops:
this ^| is ^| a sentence ^| with various tab stops.
the snippet is pasted, all ^| are removed and the caret is positioned at the first ^|, if you would press TAB it would jump to the second and so on
It could also have predefined values which would be selected/highlighted so you can type directly and overwrite them (if you don't press TAB)
URLDownloadToFile, [[URL]], [[Filename]]
The line above is pasted,
URL is selected so you can type or press TAB to move to and select FILENAME
It will always be a bit of hit and miss I think but perhaps I'll add this to as an experimental feature so that the user knows it isn't faultless and can test it to see if it works for them in particular situations and programs.
-------------
For the time being you can use this, it will ask you for two variables, by repeating the same INPUT it will replace them in two more locations.
for ([[Input=Var1]]=0, [[Input=Var1]] < [[Input=Var2]], i++){
^|
}