Hey fellow IQists,
Since coming up with this, I'm mighty pleased as it makes IQ behave like EccoExt did for me before I switched. Using this hotkey, whenever I have a plain file path copied from my file manager or a URL copied from my browser on the clipboard and paste it into IQ, it will appear in blue as a clickable link. As I do just that very frequently, this hotkey improves my workflow a good deal. Out of the box, IQ can sort of open file links when double-clicking them with the right options set if there is no other text in the item, but they are not highlighted automatically. The hotkey works anywhere, even when there is additional text in an item. Pasting a URL into a new item in IQ takes you into edit mode, where you have to type a space and then enter to get a functional linked item. The hotkey does all that in a single keypress. When pasting with the hotkey in edit mode, the URL becomes highlighted / active immediately on pasting without having to enter a space character at the end.
Since coming up with this, I'm mighty pleased as it makes IQ behave like EccoExt did for me before I switched. Using this hotkey, whenever I have a plain file path copied from my file manager or a URL copied from my browser on the clipboard and paste it into IQ, it will appear in blue as a clickable link. As I do just that very frequently, this hotkey improves my workflow a good deal. Out of the box, IQ can sort of open file links when double-clicking them with the right options set if there is no other text in the item, but they are not highlighted automatically. The hotkey works anywhere, even when there is additional text in an item. Pasting a URL into a new item in IQ takes you into edit mode, where you have to type a space and then enter to get a functional linked item. The hotkey does all that in a single keypress. When pasting with the hotkey in edit mode, the URL becomes highlighted / active immediately on pasting without having to enter a space character at the end.
;; paste URL or path to existing local file as active link:
$^v::
$^v::
if (WinActive("ahk_class ThunderRT6MDIForm ahk_exe InfoQube.exe")) {
if (FileExist(Clipboard) or RegExMatch(Clipboard, "^(https?://|www\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$")) {
Clipboard := "<a href=""" . Clipboard . """>" . Clipboard . "</a>"
Sleep 40
if (FileExist(Clipboard) or RegExMatch(Clipboard, "^(https?://|www\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$")) {
Clipboard := "<a href=""" . Clipboard . """>" . Clipboard . "</a>"
Sleep 40
}
SendEvent ^v
return
return