lintalist icon indicating copy to clipboard operation
lintalist copied to clipboard

No trigger or end-keys (regular expressions)?

Open lintalist opened this issue 10 years ago • 1 comments

Consider a method to allow shorthand to work without a trigger or endkey such as space or tab similar to AutoExecuteOne https://github.com/lintalist/lintalist/issues/10

LLShorthand: abbrev[n]

where [n] stands for [n]o-trigger - this could be extended to specific trigger keys [e]nter [t]ab [s]pace and possibly others should the need arise.

Maybe: [r] for regular expression? e.g. c.de[r] will make code cade c1de etc trigger the snippet? or allow for a list of abbreviations code|edoc

Changes:

  • ObjectBundles.ahk (parsing of bundle & snippets. Introduce new array to be able to check these, set global variable to be able to use in checktyped function)
  • Lintalist.ahk (checktyped function)

dsewq1LYJ @ http://www.autohotkey.com/board/topic/107687-lintalist-searchable-interactive-lists-to-copy-paste-text/?p=688199

lintalist avatar Feb 15 '15 08:02 lintalist

As of AutoHotkey v1.28.0.0 there is the https://autohotkey.com/docs/commands/Hotstring.htm function which should be used to replace the "shorthand" function - this will allow for more flexibility in how to define hotstrings using more of AHKs standard features.

lintalist avatar Jun 10 '18 08:06 lintalist