64b2685c2d
Visualize the "ignore whitespace" state in the subtitle of the diff view
2023-05-20 12:58:32 +10:00
9d68b287db
Split commit message panel into commit summary and commit description panel
...
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting.
By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel,
and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message
from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel
and then 'enter' to submit the message.
We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept,
so we just push both contexts one after the other, and likewise remove both contexts when we escape.
2023-04-30 13:19:53 +10:00
db12853bbe
lots of changes
2023-04-30 13:19:53 +10:00
711674f6cd
standardise controller helper methods
2023-04-30 13:19:53 +10:00
8edad826ca
Begin refactoring gui
...
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the
gui package purely for the sake of better encapsulation
2023-04-30 13:19:52 +10:00
85fdb700ba
Extract amendHead function into new AmendHelper
2023-04-01 08:16:15 +02:00
5e2254395a
fix linting issue
2023-02-09 21:45:14 +11:00
8b894d7bf5
wip: commit logic in helper and reported in files/staging controllers
2022-12-01 09:12:18 +11:00
65d6d7fb2d
fix ignore file keybinding
2022-11-30 19:36:35 +11:00
684d1e955e
lint: try deleting blank line
2022-11-13 19:51:30 -03:30
3c436b3457
lint: delete unused argument from handleStashSave
2022-11-13 11:02:06 -03:30
e189546acb
refactor: move checks for clean working tree
2022-09-15 21:48:49 -02:30
c7733aa5e5
refactor: rename method to StashIncludeUntrackedChanges
2022-09-15 21:48:49 -02:30
50cf7ac5bc
refactor: change command order
2022-09-15 21:48:49 -02:30
c7fd218308
fix: add condition to if statement
2022-09-15 21:48:49 -02:30
7ddb80a13e
feat: add stash option to include untracked changes
2022-09-15 21:48:48 -02:30
0ff5b74d80
IgnoreOrExclude should be a menu
2022-08-11 14:23:02 +02:00
7410acd1aa
move merge conflicts code into controller
2022-08-07 11:16:03 +10:00
445a625b56
rename merging context to mergeConflicts
2022-08-06 18:05:00 +10:00
524bf83a4a
refactor to only have one context per view
2022-08-06 13:49:11 +10:00
682be18507
refactor to use generics for file nodes
...
use less generic names
2022-07-31 19:43:14 +10:00
7077ea428f
add optimistic rendering for staging and unstaging files
2022-07-31 14:34:57 +10:00
11d766053e
Allow adding a file to the .git/info/exclude file
2022-07-05 19:33:44 +10:00
9693afd671
fix: fix lint error
2022-05-18 20:34:35 +09:00
6f8063217d
rename displayString to label for menu items
2022-05-08 14:26:18 +10:00
1ae2dc9941
The four horsemen of stashing
2022-04-14 21:45:55 +02:00
6f7038c827
Add option to stash only unstaged files
2022-04-10 09:35:59 +02:00
8fb2acc224
pkg/gui: Rename IPopupHandler::Ask() to Confirm()
...
Follow the JavaScript naming scheme for user interaction (alert, prompt,
confirm) as discussed in #1832 .
2022-03-30 20:13:43 +11:00
e011acbab2
better logging for stash flow
2022-03-27 18:16:16 +11:00
3e5d4b2c74
add menu keybindings for various things
2022-03-27 18:16:16 +11:00
0dfb7c08b7
remove controllers struct
2022-03-27 18:16:16 +11:00
d93fef4c61
use generics to DRY up context code
2022-03-19 12:12:57 +11:00
36c149836a
softcode keybinding
2022-03-17 19:13:40 +11:00
59d4df2a44
fix click handling
2022-03-17 19:13:40 +11:00
8fd6338527
move workspace reset menu into controller
2022-03-17 19:13:40 +11:00
d991d74b06
add commit message controller
2022-03-17 19:13:40 +11:00
8a555dd62e
refactor
2022-03-17 19:13:40 +11:00
722410aded
refactor controllers
2022-03-17 19:13:40 +11:00
d82f175e79
refactor contexts
2022-03-17 19:13:40 +11:00
482bdc4f1e
more refactoring
2022-03-17 19:13:40 +11:00
8e3484d8e9
add global controller
2022-03-17 19:13:40 +11:00
226985bf76
refactor keybindings
2022-03-17 19:13:40 +11:00
2db4636815
no more indirection
2022-03-17 19:13:40 +11:00
2a1e3faa0c
resetting controllers on new repo
2022-03-17 19:13:40 +11:00
c084abb378
move more view model logic into the files view model
2022-03-17 19:13:40 +11:00
8ea7b7a62e
migrate files context to new structure
2022-03-17 19:13:40 +11:00
e187293456
moving more into controllers package
2022-03-17 19:13:40 +11:00
2692637fbe
standardise naming
2022-03-17 19:13:40 +11:00
138be04e65
refactor contexts code
2022-03-17 19:13:40 +11:00
a2318d75b5
fix some things
2022-03-17 19:13:40 +11:00