≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1541

Feature request #1541: "Learn" from previous selections

Kind feature request
Product Command-T
When Created 2010-04-19T18:30:07Z, updated 2011-01-02T10:26:28Z
Status open
Reporter Greg Hurrell
Tags no tags

Description

From cleaning out my TODO.txt file:

- learn from previous selections (remember choosen file for each search)

In terms of what this might actually look like, off the top of my head, perhaps each time you open a file it could be recorded with a small "bonus" that will be automatically added to its score on future runs.

I imagine that we'd want this to gradually taper off so as to not grow without limit.

The "bonus" wouldn't necessarily be directly additive. It would most likely be more like a secondary sort criteria.

eg. given a bunch of files with the same score "X", sort them by "bonus", and if the "bonus" is equal then sort alphabetically

Although I guess most files do have subtly different scores, so this secondary sorting wouldn't kick in all that often. The bonus would probably have to be small enough to be applied additively, without making the ordering totally erratic.

Guess the only way we can see if this thing is intuitive will be to play around with it and set different values for the bonus.

Comments

  1. Greg Hurrell 2010-10-13T06:38:48Z

    Cross-referencing from this comment on issue #1710:

    Take a look at ticket #1541 ('"Learn" from previous selections'). The idea proposed there is that the plug-in remembers which files you choose for any given search string and then in future searches adds a "bonus" to the score of such items when you enter that same search string again.

    So in your example, you type "br", wanting to open billing_report.php, and it's not the top search result so you actually end up using the cursor keys to move down and select it. The next time you type "br", Command-T applies a small bonus to billing_report.php, pushing it slightly higher up the results listing. You again use the cursor keys to move down and select it and so the bonus is bumped up a little higher. Next time you type "br", the bonus is big enough to make billing_report.php the top result.

    What do you think of that one? I'm inclined to think that this would be a nice, intuitive way to transparently give you the behavior you're looking for without obliging users to spend time maintaing a special mappings file.

    The only tricky part of this would be fine-tuning the implementation details (how much should the "bonus" fluctuate up or down when you select a file or later select a different one?) but nothing insurmountable.

  2. Greg Hurrell 2011-01-02T10:26:28Z

    Related request via user email:

    it would be great if command-t would sort a little bit different. If there is a match in files that was already used in the last few days, it should put those files on the top. Those files should be orderd by usage. the more recent the file was used, the more on top it sould be.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets