Giter Club home page Giter Club logo

Comments (6)

denisidoro avatar denisidoro commented on May 27, 2024 1

I guess Navi could skip the call to fzf in this case and optimistically assume the value which makes the most sense in this case.

I can't give an ETA for implementing it, though.

If someone submits a PR for it, I can review it and ensure it's going to be live in the next release.

from navi.

welcome avatar welcome commented on May 27, 2024

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

from navi.

davidandreoletti avatar davidandreoletti commented on May 27, 2024

@denisidoro (ping)

from navi.

davidandreoletti avatar davidandreoletti commented on May 27, 2024

Workaround until an application native solution comes along:

f_navi_install_repo() {
    local url="$1"
    local name="$2"

    local cheatpath="$(navi info cheats-path)"
    local dir="$cheatpath/$name"

    git -C "$dir" pull || git clone "$url" "$dir"

}

#navi repo add denisidoro/navi-tldr-pages
f_navi_install_repo "https://github.com/denisidoro/navi-tldr-pages" "denisidoro__navi-tldr-pages"

then navi will display the cheats :-)

from navi.

denisidoro avatar denisidoro commented on May 27, 2024

Yeah, the workaround is so simple that I'd rather not implement it as a feature in navi itself. I'll close this ticket as the workaround is good enough.

from navi.

davidandreoletti avatar davidandreoletti commented on May 27, 2024

@denisidoro

It is so simple, I wonder why it was not bake in navi ;-)

navi already acts as a "cheatsheet" repo manager.

The workaround relies on:

  • how navi names "cheat" folder.
  • how navi decides to accept/store/pull/update cheat repos.

Would you consider documenting the workaround as (a) official procedure OR (b) bake the functionality in navi itself ?

from navi.

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.