keyboard icon indicating copy to clipboard operation
keyboard copied to clipboard

How can I make "abbreviation" "case insensitive"?

Open yemreak opened this issue 4 years ago • 4 comments

yemreak avatar Jul 14 '20 18:07 yemreak

I mean, I could create a branch for this feature if you really want it implemented, but I'm sure you have either given up on this or found a solution in the past month lol.

gavinkrezel avatar Aug 24 '20 02:08 gavinkrezel

Hey 🙋‍♂️. I had searched pynput and took a long break 😅. Now, I have other planned stuff 🙃

But making improvement will be well of course 😅

yemreak avatar Aug 24 '20 21:08 yemreak

I am interesting in this too.

Mte90 avatar Mar 17 '21 09:03 Mte90

A hacky way to do this is:


class InsensitiveComparisionStr(str):
    def __eq__(self, other):
        return self.lower() == other.lower()

    def __hash__(self):
        return hash(self.lower())

add_abbreviation(InsensitiveComparisionStr('your-text')))

Qwerty-133 avatar Oct 16 '21 17:10 Qwerty-133