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

Putty Allow to configure which sessions to load #282

Closed
chrisbra opened this issue Feb 24, 2018 · 17 comments
Closed

Putty Allow to configure which sessions to load #282

chrisbra opened this issue Feb 24, 2018 · 17 comments

Comments

@chrisbra
Copy link

When I enter putty, it shows me exactly two sessions. One I almost always use (linetics) and one 1 basically never use (iway):
However I often also need to use a third session so I'd like to have it visible in the list. So how can I specify which sessions will be displayed in the initial list?
grafik

@chrisbra
Copy link
Author

ah, it looks like it filters out sessions that have a capital letter or an '_' in it.

@polyvertex
Copy link
Member

The PuTTY plugin lists every session it finds so this sounds like a bug. Thanks for reporting it

@chrisbra
Copy link
Author

BTW: after selecting a different sessions, I find it irritating, how the list is ordered. I would expect that the list is sorted after the most often used items. But that does not seem to be the case and everytime I activate it and type putty, the first entry is one Session entry (always the last one used, that is okay), but the other session I use most often will be on position 7 or 0, while I would expect it to be on place 2.

Another minor issue is, that I would like to have cursor up start selecting items in the list from the bottom. Currently using cursor up does nothing.

@polyvertex
Copy link
Member

Would you mind sharing your putty.ini config if different than default?

I would expect that the list is sorted after the most often used items.

They are. But associated keywords have greater priority than history hits in score weighting. That is, if you use the same search term for both items, you'll get the last item you executed using this search term (or "keyword"). For that reason, it is best to associate a more specific term. Say "line" for your "linetics.de" session for example. See the Associate a Keyword to an Item doc section for more info.

I would like to have cursor up start selecting items in the list from the bottom.

You normally shouldn't need that in a regular use case because it usually means you didn't grasp how the scoring system works internally (see link above). But if you still feel like you need it, please open a new issue with more specific details about your use-case. Also and just to clarify, be aware that the last displayed item is not necessarily the last result.

@polyvertex
Copy link
Member

ah, it looks like it filters out sessions that have a capital letter or an '_' in it.

Sorry for the lag, I fail reproduce the issue.
Do your missing session names have special characters in it? Like non-ASCII ones?

Another minor issue is, that I would like to have cursor up start selecting items in the list from the bottom. Currently using cursor up does nothing.

Option to be added in next release, please follow #301.

@chrisbra
Copy link
Author

Sorry for the lag, I fail reproduce the issue.

I still have this issue: This is my putty sessions:
grafik
grafik

(in fact it looks like it does only show the two sessions I use the most. perhaps that is the reason for that.

Option to be added in next release, please follow #301.

great to hear. Is there an expected release date?

@polyvertex
Copy link
Member

I created fake sessions with different kinds of names, they are all displayed.
What version of Keypirinha are you running?

putty

great to hear. Is there an expected release date?

Should be within the week, or next week.

@chrisbra
Copy link
Author

grafik
2.18.2

@polyvertex
Copy link
Member

  • Version of PuTTY?
  • Does running with a fresh install of KP still produce the issue?

@chrisbra
Copy link
Author

chrisbra commented Sep 13, 2018

Version of PuTTY?

Putty Version 0.7 (it is actually a development snapshot, as I like the truecolor support).

Does running with a fresh install of KP still produce the issue?

Would it be enough to uninstall Keypirinha and install again?

@polyvertex
Copy link
Member

No you do not have to uninstall Keypirinha. You can just run a fresh portable install of KP from anywhere else than your current copy to do the test.

  • Exit your current instance of Keypirinha
  • Download Keypirinha
  • Extract it anywhere else than current install
  • Run it and check the results with the search putty:

@chrisbra
Copy link
Author

tried that:
grafik

default sessions from standard putty
grafik

still missing several sessions. BTW: could that be, that keypirinha simply truncates the list after 10 entries?

@polyvertex
Copy link
Member

I find it weird that almost all your sessions were found across the multiple screenshots you sent.

  • Stupid question: have you tried to scroll down the results list?
  • Have you actually tried with search string putty: (notice the colon) in order to have a more precise result?

[...] could that be, that keypirinha simply truncates the list after 10 entries?

Nope

@chrisbra
Copy link
Author

Stupid question: have you tried to scroll down the results list?

Not very stupid at all. It never occured to me, that there could be more items in the list.
So yes, scrolling down worked and showed the other sessions as did using
putty: (however that means I need to type everything, or is it possible to have keypirinha complete using the first element in the list (e.g. pressing tab, that did not work, i tried)

@polyvertex
Copy link
Member

Keypirinha tries to sort the results according to how often you use some items, versus the search terms you used before executing the said items. As a result, items are sorted by descending score.

For that reason, I encourage you to just type more specific search terms that you think will apply to the item you want to execute and that feels natural to you. Example: lide to execute your PuTTY: linetics.de session. Keypirinha will remember lide as a keyword for the PuTTY: linetics.de item so the next times you use, this item will always be pushed to the top of the results.

Check out the Associate a Keyword to an Item doc section!

@chrisbra
Copy link
Author

thanks!

@polyvertex
Copy link
Member

Hope it helps!

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

No branches or pull requests

2 participants