Giter VIP home page Giter VIP logo

Comments (8)

gauteh avatar gauteh commented on July 19, 2024

Absolutely! If you feel adventurous, I'd be happy to receive a pull-request 🍻 .

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Ok, I appreciate the suggestions, debugging and wikiing. Hopefully,
there won't be any license issues :)

I realize c++ is not easiest to help out with.

from astroid.

ff2000 avatar ff2000 commented on July 19, 2024

Where should those queries be stored? I think it's better to not touch a hand-crafted config file via code, so I would prefer e.g. a seperate simple plain text file where astroid stores those queries.
The other thing is: What actually IS history? Really everything in chronological order? Or is it OK to delete a query when you ran the same right now? (deduplication - I already had discussions about that ;)) I prefer deduplication. If it get's controversial should there be a config switch? (no deduplication; deduplication without reordering; deduplication with reordering - some more options?)

from astroid.

gauteh avatar gauteh commented on July 19, 2024

I was looking at notmuch-hello for the emacs interface (https://notmuchmail.org/screenshots/), we could do something similar. Save the previous searches, and allow some to be saved (at some point). I also wanted to create a screen with an overview of tags with the number of messages in them, then the saved searches could go there. Anyway, that is a little more work.

I also think it should not be in the config file, keep say the last 100 in ~/.config/astroid/last_searches (or .cache/astroid/last_searches) and then possibly the saved searches in ~/.config/astroid/saved_searches (or the config file).

The most straightforward would probably be to just put everything in there, without worrying about duplication. If we do, I would prefer de-duplication with reordering.

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Search history implemented in #123.

from astroid.

mardukbp avatar mardukbp commented on July 19, 2024

@hugoroy In the search box you can use the up arrow to reuse recent queries. Hope this helps.

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Indeed, this is merged now.

from astroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.