summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/staging_controller.go
AgeCommit message (Collapse)Author
2023-04-13Remove line number support for "open" commandStefan Haller
The "open" command is supposed to behave in the same way as double-clicking a file in the Finder/Explorer. The concept of jumping to a specific line in the file doesn't make sense for this; use "edit" instead.
2023-04-13Implement edit presetsStefan Haller
2023-03-20Merge pull request #2495 from jesseduffield/feature/remove-altreturnJesse Duffield
2023-03-19refactor patch codeJesse Duffield
2023-03-09Remove alternative confirmation and return keymappingsLuka Markušić
2023-03-07Rename WillBeAppliedReverse to ReverseStefan Haller
This is the only "reverse"-related option that is left, so use a less clumsy name for it.
2023-03-07Remove the PatchOptions.Reverse optionStefan Haller
All callers pass false now (except for the tests, which we simply remove), so we don't need the option any more.
2023-03-07Use WillBeAppliedReverse (and git apply --reverse) in the staging panel tooStefan Haller
It's simpler to have only one way of reversing a patch.
2023-03-07Bundle the reverse and keepOriginalHeader flags into a PatchOptions structStefan Haller
We are going to add one more flag in the next commit. Note that we are not using the struct inside patch_manager.go; we keep passing the individual flags there. The reason for this will become more obvious later in this branch.
2023-03-04Keep side context in context stack when pushing a main contextStefan Haller
This fixes accordion mode for the commit files panel. When entering a file, the commit files panel should stay expanded.
2023-02-15Select next stageable line correctly after staging a range of linesstk
We already have this very convenient behavior of jumping to the next stageable line after staging something. However, while this worked well for staging single lines or hunks, it didn't work correctly when staging a range of lines; in this case we want to start searching from the first line of the range.
2023-02-11chore: change to work `return-alt1` on all viewsRyooooooga
2022-12-01wip: commit logic in helper and reported in files/staging controllersArnaud PERALTA
2022-08-06refactor to only have one context per viewJesse Duffield