Commit graph

132 commits

Author SHA1 Message Date
Ivailo Monev
b08ded0f52 dolphin: conditional add and remove git plugin actions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 03:34:30 +03:00
Ivailo Monev
a88511defa dolphin: show relative paths in the staged files tab
because the diff references such, bonus points for optimizing the status

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 02:50:10 +03:00
Ivailo Monev
c5dd9b7e94 dolphin: move the cursor to the start of the diff document on setup
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 02:01:27 +03:00
Ivailo Monev
2ee80d816c dolphin: disable line numbers for the diff document view
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 01:48:07 +03:00
Ivailo Monev
65cf467943 dolphin: use KTextEditor with fallback to KTextEdit for the diff
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 01:25:21 +03:00
Ivailo Monev
0cf31060f9 dolphin: activate the commit dialog of git plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 00:41:31 +03:00
Ivailo Monev
86342f6bc6 dolphin: implement syntax highlighter for the git plugin diff
I am thinking there should be a KSyntaxCollection class or something

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 00:04:18 +03:00
Ivailo Monev
2ac2b7ff03 dolphin: do not append hunk and binary line origin character to the result from FileViewGitPlugin::gitDiffCallback()
headers, not indicators

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 23:58:01 +03:00
Ivailo Monev
6669f34b18 dolphin: show the git plugin commit dialog instead of exec()-ing it
theoretically what the dialog shows can go out of sync with this change
but the changes committed will be up-to-date due to the
`git_index_update_all` call once the dialog is finished

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 21:50:42 +03:00
Ivailo Monev
3276c7b1c7 dolphin: notify about the changes by emitting itemVersionsChanged() from git plugin
same effect except only dolphin gets to update (no other application uses
the version plugins even tho the class is in the konq library)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 21:15:41 +03:00
Ivailo Monev
ab159471d3 dolphin: show the difference in commit dialog from git plugin
I guess I can show both (see ec94a7cf06):
https://ibb.co/RzYGHk4

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 20:33:32 +03:00
Ivailo Monev
dc63db2fb2 dolphin: sync the global config from GitCommitDialog
yep, syncing KConfig is mandatory because it was written to be complex and
fail at simple things like this

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 20:22:08 +03:00
Ivailo Monev
fb83922086 dolphin: save and restore the git plugin commit dialog size
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 19:54:23 +03:00
Ivailo Monev
ec94a7cf06 dolphin: show the file(s) staged for commit in git plugin commit dialog
or should it show diff rather?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 19:47:13 +03:00
Ivailo Monev
c1f988483b dolphin: remove now redundant check in FileViewGitPlugin::getGitError()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 06:19:14 +03:00
Ivailo Monev
185d84fa90 dolphin: drop push and pull actions
libgit2 cannot even fetch from shallow copies.. well, the file status is
more than enough for dolphin - anything else belongs to a dedicated git
repository management tool anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 06:12:54 +03:00
Ivailo Monev
88b96ed9ae dolphin: experimental merge for git plugin
comes with the usual "WITHOUT ANY WARRANTY" (see the copyright)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 03:17:23 +03:00
Ivailo Monev
c25675fafc dolphin: use git_repository_head() to get the repository head
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 00:26:33 +03:00
Ivailo Monev
f2a35aba1f dolphin: return GIT_EUSER when dialog was not accepted
otherwise the error claims no callback was set

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 00:04:19 +03:00
Ivailo Monev
db61f4bf93 dolphin: partially implement pull action for git plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 23:23:23 +03:00
Ivailo Monev
49b17d2e46 dolphin: do not include ignored and untracked files in the status
if not added, changed or removed files are not to be committed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 23:22:58 +03:00
Ivailo Monev
c6e66748aa dolphin: link the git plugin to kio library
for the KDirNotify reference

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 21:04:38 +03:00
Ivailo Monev
75a6f61cf6 dolphin: notify about the changes after add, remove or commit from the git plugin
and because showing the commit action makes no sense when no changes
(add, remove, modify) are done to the repo every time the actions are
requested a check will be done, note that the check may be quite
expensive for large repositories and delay the context menu

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 20:54:05 +03:00
Ivailo Monev
dee2ff1503 dolphin: prettify the git plugin commit message
to match what `git commit` does

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 17:12:38 +03:00
Ivailo Monev
ad707fe53c dolphin: temporary disable the git plugin pull action
the code for the implementation is actually the same as in
FileViewGitPlugin::slotPush() except the git_remote_push() call (and
obviously the information messages stating that pull is being done)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 06:03:54 +03:00
Ivailo Monev
9304320d34 dolphin: update Messages.sh script for git plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 04:00:33 +03:00
Ivailo Monev
c68f32e086 dolphin: drop all plugins except git and rewrite it
one of the things that the previous implementation was lacking is the
credentials handling, also it was was very slow because it had to spawn
a process

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 03:54:05 +03:00
Ivailo Monev
c6114b45d9 generic: do not install kcfg files
see the following commit in kdelibs repo:
ee1aa40904077b7cae3c3575ffeaab176e42a85b

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 05:50:15 +03:00
Ivailo Monev
9ffdac5b9a dolphin: adjust to KDirNotify changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-06 18:31:03 +03:00
Ivailo Monev
268376e08b generic: adjust to solid changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 07:15:01 +03:00
Ivailo Monev
f9259663dd dolphin: remove expansion leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 00:21:45 +03:00
Ivailo Monev
0ccc580f03 dolphin: adjust to KDirLister changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 13:38:25 +03:00
Ivailo Monev
8040340e8b dolphin: remove now unused KItemListController setters and getters
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 12:35:48 +03:00
Ivailo Monev
9f05987cc0 dolphin: drop support for expansion (tree view)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 09:42:38 +03:00
Ivailo Monev
10fd4a8575 dolphin: drop folders panel
where would I shove it:
https://ibb.co/P1MpQG3

I do not like it, nor do I use it - begone. oh, here is a hint - the
location bar can act as a tree, try clicking on the arrows

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 08:20:07 +03:00
Ivailo Monev
004cd8b0ab dolphin: fix possible tests crashes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 08:03:42 +03:00
Ivailo Monev
631226e93a dolphin: testing build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 07:47:04 +03:00
Ivailo Monev
0ba740c6c5 generic: purge most manual tests
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 07:41:07 +03:00
Ivailo Monev
5325a27815 generic: adjust to KDirLister changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-01 06:16:34 +03:00
Ivailo Monev
5273946d9d dolphin: initialize PlacesPanel member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-29 07:24:47 +03:00
Ivailo Monev
69524945c5 kioslave: remove trash migration code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 09:10:47 +03:00
Ivailo Monev
568b377ca8 generic: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-26 20:48:03 +03:00
Ivailo Monev
f0859e7749 generic: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-26 01:39:21 +03:00
Ivailo Monev
5b7845d814 generic: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 16:55:47 +03:00
Ivailo Monev
f90219b311 dolphin: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-22 14:10:58 +03:00
Ivailo Monev
ce48bc0997 generic: preperations for kdelibs changes
automatically replaced via:
find -name CMakeLists.txt -exec sed -e 's|${KDE4_PLASMA_LIBS}|KDE4::plasma|g' -e 's|${KDE4_KIO_LIBS}|KDE4::kio|g' -e 's|${KDE4_SOLID_LIBS}|KDE4::solid|g' -e 's|${KDE4_KFILE_LIBS}|KDE4::kfile|g' -e 's|${KDE4_KDECORE_LIBS}|KDE4::kdecore|g' -e 's|${KDE4_KDEUI_LIBS}|KDE4::kdeui|g' -e 's|${KDE4_KCMUTILS_LIBS}|KDE4::kcmutils|g' -e 's|${KDE4_KDECLARATIVE_LIBS}|KDE4::kdeclarative|g' -e 's|${KDE4_KPTY_LIBS}|KDE4::kpty|g' -e 's|${KDE4_KEMAIL_LIBS}|KDE4::kemail|g' -e 's|${KDE4_KMEDIAPLAYER_LIBS}|KDE4::kmediaplayer|g' -e 's|${KDE4_KPARTS_LIBS}|KDE4::kparts|g' -e 's|${KDE4_KIDLETIME_LIBS}|KDE4::kidletime|g' -e 's|${KDE4_KTEXTEDITOR_LIBS}|KDE4::ktexteditor|g' -e 's|${KDE4_KPASSWDSTORE_LIBS}|KDE4::kpasswdstore|g' -e 's|${KDE4_KARCHIVE_LIBS}|KDE4::karchive|g' -e 's|${KDE4_KDNSSD_LIBS}|KDE4::kdnssd|g' -e 's|${KDE4_KNOTIFYCONFIG_LIBS}|KDE4::knotifyconfig|g' -e 's|${KDE4_KEXIV2_LIBS}|KDE4::kexiv2|g' -i {} +

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:27:11 +03:00
Ivailo Monev
472f24878b generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 18:38:55 +03:00
Ivailo Monev
fab1ea4289 generic: adjust to KIO protocol changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 02:42:24 +02:00
Ivailo Monev
054f0cb760 generic: adjust to KIO protocol changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 01:15:54 +02:00
Ivailo Monev
5e162c27fe generic: sync preview defaults
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-13 14:29:20 +02:00