Skip to content

New Snippet - Is it possible use a Preset or Template for Script section? #256

Answered by lintalist
TFWol asked this question in Q&A
Discussion options

You must be logged in to vote

An interesting idea. The templates wouldn't be too difficult to implement, so I'll look into that (in a few weeks). My idea would be to look for files in a ScriptTemplates folder so you can simply copy/edit files in the folder and they should appear in the dropdown.

The editor is probably the worst section of code of lintalist (it grew out of hand and ended up with some 🍝 code which is hard to "follow" and bugfix).

For now I would do it like this, in plugins\MyPlugins.ahk I would add AutoHotkey hotstrings like so:

#IfWinActive, Lintalist snippet editor ahk_class AutoHotkeyGUI
::/s1::
Send LLInit()`n[[llpart1]]
Return

; more hotstrings here

#IfWinActive

So now you type /s1 and it would i…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@TFWol
Comment options

@TFWol
Comment options

@TFWol
Comment options

Answer selected by TFWol
Comment options

You must be logged in to vote
1 reply
@TFWol
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants