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

Add 'hot' commands #251

Open
Anthonyae opened this issue Jul 23, 2023 · 2 comments
Open

Add 'hot' commands #251

Anthonyae opened this issue Jul 23, 2023 · 2 comments

Comments

@Anthonyae
Copy link

Been using lintalist for a little over a month now and have been using a similar popular ahk program (https://github.com/plul/Public-AutoHotKey-Scripts) that does a similar function as lintalist. The benefit that the other program has is that all its commands are executed immediately upon an exact text match. Lintalist has this option too but it has it set for when there is only one snippet left with its AutoExecuteOne command.

l'm thinking that there should be an option at the snippet level for this. At a snippet level they can be defined to auto execute if there is an exact match for it. Why is this needed and why not just use the other program you ask?

Well the other program does not have an interactive search field for commands like lintalist does. Lintalist allows you to add so many commands without having to remember them. But there are some you will inevitably remember. And these commands would benefit from a hot execute. Without this option and if you were to use the default AutoExecuteOne option your interactive search for something you kind of remember will trigger something you might not want to.

Additionally, this might be too much, but ideally, this would also have the option to have these hot commands show up under a second section of results, I think would be a good visual to see these hot commands. This section would not use any of the fuzzy searches. It would only show the results that match exactly what is being typed as it appears. So if I type search this section might show searchGoogle and searchYoutube pop up. But would not execute either until they exactly match either one.

Hot Section would show up here:
image

Again I'm still new to the program and executing it into my workflow but thought I would share the idea to see what others think.

@lintalist
Copy link
Owner

I don't quite follow what you want, but what I do sometimes is (ab)use Part2 or Shorthand to add a unique identifier.

So for Part1 git checkout -b FEATURE BASE I would add /gcfb to Part2 or Shorthand - I often don't type it as shorthand in my application (if I added it as a shorthand) but still start a search and the "unique something" allows me to very quickly filter it and find it.

I only do this for some snippets of course, otherwise /gc.. would still show 20 results for example kind of defeating the purpose.

@Anthonyae
Copy link
Author

Ah I forgot a bit about the shorthand functionality when I wrote this. Basically, I was saying that some snippets should act as shorthands. And that these shorthands should show up in their own section, the section I marked in red above. They are seperated because these shorthands would only appear as they exactly match the text being typed. And when there is only match in this shorthand list then it automatically activates without pressing enter.

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

No branches or pull requests

2 participants