Giter Club home page Giter Club logo

Comments (7)

joelthelion avatar joelthelion commented on May 20, 2024

Normally paths that don't exist anymore are not used in the ranking, so autojump should still work properly. They are still kept in the database in case they were on a removable drive, so that you will be able to use autojump with removable drives.

Is there any specific reason you want to remove these paths from the database?

from autojump.

graysky2 avatar graysky2 commented on May 20, 2024

@joel - My highest weighted path per jumpstat was /dev/shm which is where I do compiling, scratch files, etc. I recently switched it to /tmp/scratch and whenever I'd hit 'j' autojump would take me to the highest ranked path which I don't use anymore. I just nuked the ~/.local/share/autojump and rebuilt my db. Having the ability to remove a line from the history would be a cool feature.

from autojump.

joelthelion avatar joelthelion commented on May 20, 2024

I think you have a good point. I see two options here: either add an option to autojump to remove paths, which is easy but not very flexible; or switch to a text format for the autojump file. What do you think?

from autojump.

graysky2 avatar graysky2 commented on May 20, 2024

@joelthelion - agreed. I think the latter represents the most flexible and simplistic option moving forward. It's akin to the ~/.bash_history to me. Good idea.

from autojump.

joelthelion avatar joelthelion commented on May 20, 2024

I've implemented a new text format in a new branch (text_format). I haven't written the migration code yet, but you can already try it, it will simply create a new database file.

Comments welcome!

from autojump.

joelthelion avatar joelthelion commented on May 20, 2024

The code is now ready in the "text_format" branch, can you test it and tell me what you think?

from autojump.

joelthelion avatar joelthelion commented on May 20, 2024

I've merged the code into master. Been using it for a few days, and it works great. Please re-open if there is a problem.

from autojump.

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.