Comments (7)
I'll take up the restore items if you don't mind :)
from neogit.
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.
I believe all features are implemented, including visual selection of multiple files, or discarding a part of a file.
from neogit.
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.
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.
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.
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)
- Neogit doesn't respond to subcomands
- Error when committing HOT 1
- closing commit_editor with kind = "vsplit" causes error HOT 2
- Discarding specific lines does not work
- ignored_settings not honoring the `--` flag of the log popup
- Erroneous behavior when working simutaniously with two or more git repos
- Is it possible to disable curosrline highlightings but keep context highlightings?
- unstaging a highlighted section in an staged but untracked file does not work HOT 6
- Float window cannot be split HOT 1
- NeogitWinSeparator has no default highlight
- Vertical split commit popup throws an error when closing or commiting in vsplit
- Tab not focused for secondary git repo the first time Neogit is opened
- Neogit fails to close staged diff split if commit editor is split instead of tab HOT 3
- Async errors + Neogit showing outdated state: neogit/lib/buffer.lua:349: Invalid buffer id: 44 HOT 15
- "Recent commits" section does not show if there are unmerged commits HOT 3
- ...al/share/nvim/lazy/neogit/lua/neogit/lib/item_filter.lua:18: bad argument #1 to 'new' (table expected, got boolean)
- `attempt to compare nil with number` when staging via visual-lines selection HOT 1
- Neogit showing incorrect/duplicate data in status buffer HOT 11
- Neogit starts producing errors when calling `neogit.open` twice from different `pwd`, OR when using a zsh terminal that runs the `powerlevel10k` theme
- regression: using neogit with external prompt for SSH freezes neovim HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogit.