Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features Request: casesensitive shorthand #169

Open
Cyberklabauter opened this issue Aug 14, 2020 · 10 comments
Open

Features Request: casesensitive shorthand #169

Cyberklabauter opened this issue Aug 14, 2020 · 10 comments
Assignees
Milestone

Comments

@Cyberklabauter
Copy link

Cyberklabauter commented Aug 14, 2020

I have the space and tab-key deactivated (as trigger keys) and I use the the quick search hotkey (Strg + Space) to replace the shorthand with Part 1.

I would like to bind another hotkey (Strg + Shift + Space) to the shorthand to to replace the shorthand with Part 2.

It would be fantastic to see this feature in an upcoming version. Thank you this great and stable tool!

@lintalist lintalist self-assigned this Aug 14, 2020
@lintalist
Copy link
Owner

You title says one thing, but you describe something else :)

Case sensitive shorthand will come at some point when find the solution for #144 .

A new/second hotkey for "quick search Part 2" wouldn't be too difficult think, I'll give it a shot.

@Cyberklabauter
Copy link
Author

Cyberklabauter commented Aug 15, 2020

Your right. Actually I would like just to use the shorthand. But my shorthands usually have two words with a space in between. In this case the tab and the space trigger key doesn't work. My workaround so far: I use the hotkey like a trigger key (Strg + space instead of the space trigger key). Because of Strg + space is my hotkey for the quick search it simulates the trigger key behavior (if I would use just the space key for the quick search, there would not be a different in practise).

Anyways. Thank you very much for picking up this enhencement in future!

@lintalist lintalist added this to the v1.9.14 milestone Oct 24, 2020
@lintalist lintalist modified the milestone: v1.9.14 Nov 29, 2020
@lintalist
Copy link
Owner

A new/second hotkey for "quick search Part 2" wouldn't be too difficult think, I'll give it a shot.

Is now part of v1.9.14

@Cyberklabauter
Copy link
Author

Cyberklabauter commented Jan 31, 2021

Hi,

thank you soo much for implementing this. I really appreciate it!

I just downloaded the newest version and testet the new hotkey. It works like expected, except that it always uses "quick search Part 1" and not "quick search Part 2".

Could you fix that? Many thanks!

@lintalist
Copy link
Owner

Are you sure? It works here with a small test bundle.

@Cyberklabauter
Copy link
Author

Cyberklabauter commented Feb 7, 2021

I use Lintalist version 1.9.14 uncompiled / as script with AHK 32bit Unicode on Win10 Home edition.

  • QuickSeachHotkey is set ^Space
  • QuickSeachHotkey2 is set ^+Space (other hotkey combination show same result)

Both replace the shorthand with part 1. Here is that I did to verify it:

I added a new snippet to the (unused) default bundle


Snippet succesfully added to bundle

.\LintaList\bundles\default.txt

LLPart1: bbb
LLPart2: ccc
LLKey:
LLShorthand: aaa
LLScript:

Now I get the the following result. If I highlight "aaa" and press ^+Space it replaces always "aaa" with "bbb" but never with "ccc".

@lintalist
Copy link
Owner

I see, yes with shorthand it didn't work yet. Try adding these two lines beneath line 1997 in lintalist.ahk
https://github.com/lintalist/lintalist/blob/master/lintalist.ahk#L1997

	 If QuickSearchHotkeyPart2
		PastText1=0

So the above two lines are now 1998 and 1999. Save and restart lintalist and try again.

@lintalist lintalist reopened this Feb 7, 2021
@Cyberklabauter
Copy link
Author

Very nice. This fix it. Thank you very much!

@lintalist
Copy link
Owner

#236

QuickSearchHotkey works correctly and inserts Part1. QuickSearchHotkey2 doesn't work correcly. If I call QuickSearchHotkey2 it behaves inconsistly. sometime it inserts

* Part1 instead of Part2
* only deletes the shorthand
* calls UI with the shorthand
* does nothing
* In rare cases it empty the clipboard and does not restore the clipboard.

It never enter Part2.
Tested with AutoHotkey 1.1.36.02 32 and 64bit Unicode-Version on Win1164bit.

@lintalist
Copy link
Owner

I see, yes with shorthand it didn't work yet. Try adding these two lines beneath line 1997 in lintalist.ahk https://github.com/lintalist/lintalist/blob/master/lintalist.ahk#L1997

	 If QuickSearchHotkeyPart2
		PastText1=0

So the above two lines are now 1998 and 1999. Save and restart lintalist and try again.

Same fix it seems, but now line https://github.com/lintalist/lintalist/blob/master/lintalist.ahk#L2025

...
	 SaveStat:=Paste
	 PastText1=1 
	 If QuickSearchHotkeyPart2 ; line 226
		PastText1=0        ; line 227
	 If (ViaShorthand = 1) and (Paste <> "")
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants