Giter Site home page Giter Site logo

goto's People

Contributors

catears avatar henkeatsectra avatar siddhantrao23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

goto's Issues

Feature Request: Fuzzy matching for teleports and subdirectories

Assuming I have ~/Documents and the teleport home:~ then goto hom/Diocuemants should take me there. Perhaps hide it behind some configuration?

For example

$ goto --config set AllowFuzzyMatch True
$ goto --config set AllowFuzzySubdirectoryTraversal True
$ goto --config set FuzzinessLevel 5 # Allow hamming distance/text difference of 5 characters

Doc: Performance difference between rust and python

When running goto with a small set of teleports (3) and just running goto --get I got the following timing for 10'000 invocations (which felt like it was slow to me?)

image

This is the script

#!/bin/bash
#EXEC="goto-cd"
EXEC=".local/bin/_gotohelper"
for i in {1..10000}
do
        $EXEC --get home >> /dev/null
done

Currently running python, gonna see what time it takes...

Feature Request: Add command line option for configuration

So far you cannot actually change any behavior in goto but I would like to extend goto in the future to include behavior for coming features. To do this I want to introduce goto --config. It should be a simple key/value store where keys can be stored and then retrieved, both by the user to inspect the current configuration, but also the program itself.

My idea is that keys should be whitelisted and verified on input and then be stored in _setting.toml which is already used by the program to keep track of current profile and stuff like that.

Below is a simple example of how I think it should work:

$ goto --config set example_key 1234
example_key set to 1234
$ goto --config get example_key
1234
$ goto --config set invalid_example_key 1234
Error: "invalid_example_key" is an invalid key for the config
$ goto --config remove example_key
example_key removed from config
$ goto --config get example_key
Error: example_key is not set

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.