Skip to content

Commit

Permalink
Lintalist v1.9.22 Quote file paths in Snippet Editor; StartSearchHotk…
Browse files Browse the repository at this point in the history
…eyTimeOut improvements
  • Loading branch information
lintalist committed Jul 22, 2023
1 parent 8823177 commit 6e811b0
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 45 deletions.
9 changes: 7 additions & 2 deletions changelog.md
@@ -1,8 +1,13 @@
### v1.9.22

* Fix: StartSearchHotkeyTimeOut should now work (better) with both StartSearchHotkey and StartOmniSearchHotkey, incl. modifier keys https://github.com/lintalist/lintalist/issues/247#issuecomment-1627195701
* Fix: Quote file paths in "Edit in Editor" (Snippet Editor) avoiding errors with spaces in paths https://github.com/lintalist/lintalist/issues/249

### v1.9.21

* New: Toggle timer to StartSearchHotkey activation + option to disable to toggle view mode (wide/narrow)
see settings StartSearchHotkeyTimeOut and StartSearchHotkeyToggleView https://github.com/lintalist/lintalist/issues/247
* New: ShorthandPart2 setting to paste Part2 of snippet, simular to QuickSearchHotkey2 https://github.com/lintalist/lintalist/discussions/242
* New: ShorthandPart2 setting to paste Part2 of snippet, similar to QuickSearchHotkey2 https://github.com/lintalist/lintalist/discussions/242
* Fix: Shorthand not being saved when reloading with default bundle only https://github.com/lintalist/lintalist/issues/246

### v1.9.20
Expand Down Expand Up @@ -308,7 +313,7 @@
Windows media or user files)
ht @starstuff - https://github.com/lintalist/lintalist/issues/45
* New: SearchLetterVariations setting - Allow for variations of letters in search query
Searching for 'e' is translated to searching for 'e���...' etc
Searching for 'e' is translated to searching for 'eéèê...' etc
You can toggle this setting via the Search GUI - https://github.com/lintalist/lintalist/issues/33
Note: Consequence for Fuzzy search is that this now always using a RegEx which could be slower.
* New: added help menu with Help and About options and added About to tray menu - https://github.com/lintalist/lintalist/issues/47
Expand Down
55 changes: 27 additions & 28 deletions docs/index.html

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion docs/style.css
Expand Up @@ -189,6 +189,22 @@ em.sel {
color: #c00;
}

.setting::before {
content: "\002699 ";
color:#1e90ff;
}

.setting {
color: #000;
background-color:#f2f3f4;
padding: 0 0.5em;
margin:0.1em;
border-radius: 4px;
border: 1px dashed #666;
font-weight:bold;
display: inline-block;
}

a:visited {color: #000; }
a:hover {color: #c00; }

Expand All @@ -210,4 +226,4 @@ a.headline, a.headline:link {
a.headline:hover::after {
content: " \0000B6";
color: #888;
}
}
7 changes: 4 additions & 3 deletions include/Editor.ahk
@@ -1,6 +1,6 @@
; LintaList Include
; Purpose: Bundle & Snippet Editor
; Version: 1.6
; Version: 1.7
;
; Hotkeys used in Search GUI to start Bundle & Snippet Editor
; F4 = Edit snippet
Expand All @@ -10,6 +10,7 @@
; F8 = Delete snippet
;
; History:
; v1.7 - "Quote paths" in Edit in Editor
; v1.6 - properly updating Col2, Col3, and Col4 (first attempt), check for ASCII 5 & 7
; v1.5 - paste html
; v1.4 - adding themes
Expand Down Expand Up @@ -836,9 +837,9 @@ EditControlInEditor(ControlID)
FileDelete, %TmpDir%\__tmplintalistedit.txt
FileAppend, %ToFile%, %TmpDir%\__tmplintalistedit.txt, UTF-8
If (SnippetEditor = "")
Run, %TmpDir%\__tmplintalistedit.txt
Run, "%TmpDir%\__tmplintalistedit.txt"
else
Run, %SnippetEditor% %TmpDir%\__tmplintalistedit.txt
Run, "%SnippetEditor%" "%TmpDir%\__tmplintalistedit.txt"
WinWait, __tmplintalistedit
SetTimer, CheckEdit, 500, On
Return
Expand Down
1 change: 1 addition & 0 deletions include/settings/StartSearchHotkeyTimeOut.ini
Expand Up @@ -2,3 +2,4 @@ StartSearchHotkeyTimeOut=0
;StartSearchHotkeyTimeOut Type: Integer
;StartSearchHotkeyTimeOut Default: 0
;StartSearchHotkeyTimeOut Time in ms. Keep the StartSearchHotkey (capslock by default) pressed for a certain time before the search gui appears.
;StartSearchHotkeyTimeOut Does not apply to StartOmniSearchHotkey setting
31 changes: 21 additions & 10 deletions lintalist.ahk
Expand Up @@ -4,7 +4,7 @@ Name : Lintalist
Author : Lintalist
Purpose : Searchable interactive lists to copy & paste text, run scripts,
using easily exchangeable bundles
Version : 1.9.21
Version : 1.9.22
Code : https://github.com/lintalist/
Website : http://lintalist.github.io/
AutoHotkey Forum: https://autohotkey.com/boards/viewtopic.php?f=6&t=3378
Expand Down Expand Up @@ -42,7 +42,7 @@ PluginMultiCaret:=0 ; TODOMC

; Title + Version are included in Title and used in #IfWinActive hotkeys and WinActivate
Title=Lintalist
Version=1.9.21
Version=1.9.22

; Gosub, ReadPluginSettings

Expand Down Expand Up @@ -271,7 +271,10 @@ Loop, parse, ProgramHotKeyList, CSV
IsNVDARunning:=IsNVDARunning() ; used for up/down in listview as it looks like NVDA may have some issues with up/down navigation when listview NOT in focus/selected

Hotkey, IfWinNotExist, ahk_group BundleHotkeys
Hotkey, %StartSearchHotkey%, GUIStart
If (QuickSearchHotkey <> "")
Hotkey, %StartSearchHotkey%, GUIStart
Else
MsgBox % "StartSearchHotkey setting not found, no method to start Lintalist search via hotkey"
If (StartOmniSearchHotkey <> "")
Hotkey, %StartOmniSearchHotkey%, GUIStartOmni
If (QuickSearchHotkey <> "")
Expand Down Expand Up @@ -367,13 +370,13 @@ Return
GUIStartOmni:
OmniSearch:=1
GuiStart: ; build GUI
StartSearchHotkeyTimeOutStart:=A_TickCount
Keywait % A_ThisHotkey
If ((A_TickCount - StartSearchHotkeyTimeOutStart) < StartSearchHotkeyTimeOut)
{
StartSearchHotkeyTimeOutStart:=""
Return
}

; https://github.com/lintalist/lintalist/issues/247
; https://www.autohotkey.com/boards/viewtopic.php?f=76&t=119231
KeyWait % ReturnKeyWaitKey(A_ThisHotkey), % "T" StartSearchHotkeyTimeOut / 1000
If !ErrorLevel
Return

If Statistics
Stats("SearchGui")
OmniSearchText:=""
Expand Down Expand Up @@ -1502,6 +1505,14 @@ Label13: ; Magic Search
Gosub, ResetSearch
Return

ReturnKeyWaitKey(in)
{
in := RegExReplace(in, "[#^+!<>]") ; remove standard modifiers inc. <^>! AltGr
If InStr(in," & ") ; check for custom hotkey (a & b)
in:=trim(StrSplit(A_ThisHotkey,"&").2)
return in
}

#IfWinActive

; GUI related hotkeys
Expand Down
2 changes: 1 addition & 1 deletion version.ini
@@ -1,5 +1,5 @@
[settings]
version=1.9.21
version=1.9.22
auto=1
beta=0
; auto = 1 - automatic update possible, set to 0 to alert user to read the release notes
Expand Down

0 comments on commit 6e811b0

Please sign in to comment.