Commit Graph

40 Commits

Author SHA1 Message Date
Abdelilah El Aissaoui
ef384007d3 Fixed diff lines being cut 2022-08-05 01:51:53 +02:00
Abdelilah El Aissaoui
02906a253d Implemented keybinding management
This feature allows to easily add new keybindings (programmatically) to features accross the app.

Should also fix the issue that https://github.com/JetpackDuba/Gitnuro/pull/13 tried to solve
2022-07-22 20:34:36 +02:00
Abdelilah El Aissaoui
d93e634a5c Unified fonts styles 2022-07-10 16:04:03 +02:00
Abdelilah El Aissaoui
15827d119a Added option to discard hunks 2022-06-19 19:52:53 +02:00
Abdelilah El Aissaoui
bc56ad834a Added secondary surface color 2022-06-11 16:46:45 +02:00
Abdelilah El Aissaoui
3a100f547b Added dialog/window closing on pressing ESC
Should partially fix:
https://github.com/JetpackDuba/Gitnuro/issues/9
2022-06-06 14:58:53 +02:00
Abdelilah El Aissaoui
a34c6f194d Adjusted headers colors 2022-06-06 03:22:41 +02:00
Abdelilah El Aissaoui
9ea8d0c99a Added new UI design 2022-06-06 02:44:18 +02:00
Abdelilah El Aissaoui
67aff36bc4 Added persistance of commit message
Merge message is also recovered when having conflicts
2022-06-06 00:49:02 +02:00
Abdelilah El Aissaoui
d6ad3b3187 Added a new color scheme and fixed multiple theming issues 2022-06-05 20:34:38 +02:00
Abdelilah El Aissaoui
592a5c3179 Fixed diff header background having paddings 2022-06-04 15:41:41 +02:00
Abdelilah El Aissaoui
969233ec99 Added "File history" feature 2022-05-30 01:43:44 +02:00
Abdelilah El Aissaoui
9c1133a292 Added line numbers and text selection to blame 2022-05-28 16:28:39 +02:00
Abdelilah El Aissaoui
60a1ef21d8 Added hand icon on hover where it's intended to be 2022-05-27 20:07:24 +02:00
Abdelilah El Aissaoui
eca68aaf07 Multiple blame improvements
- Clicking on a diff now minimizes the blame
- Clicking on a commit of the blame will select this commit in the log and show the commit changes.
- Unified design of Diff and Blame
2022-05-27 19:50:41 +02:00
Abdelilah El Aissaoui
364fa53558 Added option to stage/unstage file from diff header 2022-05-16 20:16:12 +02:00
Abdelilah El Aissaoui
cdf7d61045 Diff replaces a tab by 4 characters until compose bug is fixed
https://github.com/JetBrains/compose-jb/issues/615
2022-04-11 04:32:05 +02:00
Abdelilah El Aissaoui
fb8e41dfff Fixed lines in diff being cut when overflowing 2022-04-08 20:22:04 +02:00
Abdelilah El Aissaoui
1e0660dca0 Refactored status to improve its performance and removed diff update handling 2022-04-06 19:39:06 +02:00
Abdelilah El Aissaoui
3352444371 Disabled the option to stage/unstage hunks when the repository is not in a safe state 2022-03-03 20:27:11 +01:00
Abdelilah El Aissaoui
587843d246 Changed how the diff list is created to improve scrollbar's behavior (used to change its size depending on the scroll position ???) 2022-02-11 20:47:20 +01:00
Abdelilah El Aissaoui
c374ac77d5 Fixed weird spacing when using fonts with different heights in lines with empty text in the diff 2022-02-11 20:34:13 +01:00
Abdelilah El Aissaoui
a3ff073b54 Fixed project's formatting 2022-02-02 00:26:46 +01:00
Abdelilah El Aissaoui
6ca1e15ce8 UI improvements 2022-01-31 15:15:05 +01:00
Abdelilah El Aissaoui
ef5bd9a254 Completed images & binaries diff 2022-01-30 02:27:41 +01:00
Abdelilah El Aissaoui
27f216aa5d Added basic images diff 2022-01-29 20:33:08 +01:00
Abdelilah El Aissaoui
d14c13595c Improved diff design 2022-01-19 01:06:10 +01:00
Abdelilah El Aissaoui
7c0316b2d3 Reduced diff header size 2022-01-05 02:58:57 +01:00
Abdelilah El Aissaoui
1ed6572170 Added lines numbers in diff view 2022-01-05 02:52:32 +01:00
Abdelilah El Aissaoui
9271dcdd60 Added file path to the diff view 2022-01-04 22:04:10 +01:00
Abdelilah El Aissaoui
14c8b24456 Changed "Stage" to "Stage hunk" in diff hunks 2022-01-04 20:01:36 +01:00
Abdelilah El Aissaoui
e6619cbd4b Diff scroll is now preserved when changing the diff entry
The scroll is stored in the view model and only resetted when changing to a different file or state (staged/unstaged version of the same file).
2022-01-03 22:59:35 +01:00
Abdelilah El Aissaoui
9c53ce726e Creation of multiple viewmodels that hold data state 2022-01-03 21:39:53 +01:00
Abdelilah El Aissaoui
6ddb77bf60 Added diff update when staging/unstagins (files & hunks) 2021-12-28 02:40:18 +01:00
Abdelilah El Aissaoui
a8ed01784d Implemented stage/unstage by hunks 2021-12-28 01:19:29 +01:00
Abdelilah El Aissaoui
bd719be963 Refactored diff by replacing text diff patch with a custom Hunk class 2021-12-27 05:13:55 +01:00
Abdelilah El Aissaoui
31b692e581 Reformated project's code 2021-12-12 19:49:46 +01:00
Abdelilah El Aissaoui
f5ab2b0881 Added basic clone implementation
Also fixed crash when selecting non-existant file to diff
2021-11-29 18:50:39 +01:00
Abdelilah El Aissaoui
a89317305e Changed log to use the new design 2021-11-26 05:32:14 +01:00
Abdelilah El Aissaoui
642cfd5f1e Added dagger dependencies and moved code to package to avoid kapt warnings 2021-10-06 19:05:07 +02:00