Coder Social home page Coder Social logo

Comments (6)

adam-ce avatar adam-ce commented on June 2, 2024 1

I edited the title and description

from gitnuro.

adam-ce avatar adam-ce commented on June 2, 2024 1

not sure where to put it, but gitnuro is currently not able to open repositories from within a subdir.

with git it's easy to find out whether you are in a subdir. so as a workaround i'm using this bash script:

#!/bin/bash

if [ $# -gt 0 ]; then
    java -jar ~/bin/Gitnuro.jar $(cd $1 && git rev-parse --show-toplevel)
elif git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
    java -jar ~/bin/Gitnuro.jar "$(git rev-parse --show-toplevel)"
else
    java -jar ~/bin/Gitnuro.jar
fi

from gitnuro.

JetpackDuba avatar JetpackDuba commented on June 2, 2024

That should already be working unless you are using the Flatpak version, which has an open issue about it.

from gitnuro.

adam-ce avatar adam-ce commented on June 2, 2024

interesting, yes, i'm using flatpak. could you point to the bug?

I tried the jar now and it doesn't try to open the working directory as a repo, but that's easy to workaround with a custom start script.

The jar version also opens the same repo several times in separate tabs. i would expect, that it would just switch to the tab if it already exists.
image

from gitnuro.

JetpackDuba avatar JetpackDuba commented on June 2, 2024

Yes, it's something kinda intentional because under some circumastances having a repo opened twice can be useful.

The flatpak issue is this flathub/com.jetpackduba.Gitnuro#11
I forgot about it until recently, I have tried to fix the script but no much luck yet. I'll probably try again before the next release.

from gitnuro.

adam-ce avatar adam-ce commented on June 2, 2024

okey, fair enough :)

would be cool if you could put some command line options there to customise the behaviour. in the future this could serve e.g. for opening specific sessions etc.

also, there is no gitnuro --version or --help :)

from gitnuro.

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.