Coder Social home page Coder Social logo

Status Buffer about neogit HOT 7 CLOSED

neogitorg avatar neogitorg commented on July 20, 2024
Status Buffer

from neogit.

Comments (7)

RianFuro avatar RianFuro commented on July 20, 2024 1

I'll take up the restore items if you don't mind :)

from neogit.

itmecho avatar itmecho commented on July 20, 2024 1

It would be great to be able to go to the specific line you're on in a diff when pressing Enter.

Something like:

  • Go to first diff
  • Tab to toggle it open
  • Notice something needs changing
  • Move cursor to that line in the diff
  • Press enter
  • Jump straight to that line

from neogit.

CKolkey avatar CKolkey commented on July 20, 2024 1

I believe all features are implemented, including visual selection of multiple files, or discarding a part of a file.

from neogit.

matharman avatar matharman commented on July 20, 2024

Would it be possible to support discarding visual selection with x the way the visual staging is supported? Sometimes for diffs like stray whitespace I would like to keep parts of a hunk, and discard only certain lines of the hunk.

from neogit.

itmecho avatar itmecho commented on July 20, 2024

Would it be possible to support discarding visual selection with x the way the visual staging is supported? Sometimes for diffs like stray whitespace I would like to keep parts of a hunk, and discard only certain lines of the hunk.

I thought this already worked? I'm sure I've used it but I'll double check when I get to work

from neogit.

matharman avatar matharman commented on July 20, 2024

I thought this already worked? I'm sure I've used it but I'll double check when I get to work

I set up a test repository with just one file to try this again, and it worked fine. It must be a problem with the particular repo's gitconfig that I was working in yesterday, as some git command return status 128, but I didn't get a good look at the command log.

I'll investigate further and come back with a new issue if I find something I can't resolve.

EDIT: Well, I went and tried on the repo where I had a problem yesterday, and now the visual select discard is working... I wish I had captured the git command history when I saw this. Sorry to clutter up the issue tracker!

from neogit.

armincerf avatar armincerf commented on July 20, 2024

Is it possible to discard all Unstaged/Staged files if you have the cursor on 'Unstaged changes' and press x? This works in magit but is currently missing from Neogit. Alternatively, allowing x to discard a visual selection (of files, not hunks) would also solve this.

The use case is sometimes I have a lot of changes and just want to get rid of them all, and it's tedious to do them one at a time.

from neogit.

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.