Fork me on GitHub
#spacemacs
<
2022-12-19
>
Drew Verlee19:12:02

I would like it to be more obvious whats going on in my magit ediff resolves. If you (what ever kind soul wants to help me) look at the picture, the mini buffer looks like it wants to tell me the branch info, but it runs out of room. I get a lot of extra info like "clojure" and the file repated 3 times and UPPER and LOWER all which are just noise to me. I'm i missing something, doesn't that just look cluttered and unhelpful?

practicalli-johnny20:12:02

I'm not sure I fully understand which issues you wish to solve, as the images only compare the mode line with the full screen of the other editors. It seems like there are two potential issue: 1. Modeline has too much information 2. You want more feedback during the diff (no screenshot of what you are doing in Emacs here)

Drew Verlee20:12:03

Im currently under the impression that mode line, isnt showing the most useful information. But maybe i don't understand what I'm seeing

practicalli-johnny20:12:33

In the practicalli/spacemacs.d config I have switched off much of the information on the modeline by adding spacemacs-modeline as a layer and adding variables to customise the modeline

;; Configuration: 
     (spacemacs-modeline :variables
                         doom-modeline-height 12
                         doom-modeline-major-mode-color-icon t
                         doom-modeline-buffer-file-name-style 'relative-to-project
                         doom-modeline-display-default-persp-name t
                         doom-modeline-minor-modes nil
                         doom-modeline-modal-icon nil)

practicalli-johnny20:12:12

And am using the Doom modeline theme (which these variables act upon, which I found easier to decultter than the spaceline theme

dotspacemacs-mode-line-theme '(doom)

practicalli-johnny20:12:52

However, I dont really look at the modeline when using diff or ediff in Emacs, so not sure how this really helps issue 2.

practicalli-johnny20:12:38

I assume that ediff is launched by pressing e key on the file that is causing a merge conflict. This should open 3 windows, two large windows showing the committed file and the file to merge respectively. The third window along the bottom is the control window and ? shows the key bindings to control ediff In Evil state, j and k keys move the highlight between the conflicting changes. a uses the change from window one to resolve the conflict, b uses the change from window 2 to resolve the conflict

Drew Verlee20:12:32

Huh. Nothing obvious on my screen displays the necessary git branch info, it seems to be in the modline

Drew Verlee20:12:46

But truncated

practicalli-johnny20:12:46

So this issue is you do not know which window is which in ediff ? I dont have anything with a merge conflict at the moment, so not easy for me to check...

practicalli-johnny20:12:27

Not sure if this helps or makes things more confusing, but if you add diff3 as the conflict style in your Git config (`~/.gitconfig`) then you get 4 large windows, which shows the parent and resulting window as well

[merge]
	# Include common parent when merge conflicts arise
	conflictstyle = diff3
I suspect this does not resolve the issue you have.

👀 1
Drew Verlee20:12:41

The issue is that there are times when it's not obvious which window contains which branches changes. Here is an example here it does contain that information HEAD and a-branch. In the other one, it looks like the long file name somehow pushed that info off.

Drew Verlee20:12:10

or like, it has the file path where the branch name should be?

Drew Verlee20:12:19

^ that at least has the branch info displayed. the one below doesnt https://files.slack.com/files-pri/T03RZGPFR-F04FWD50L4S/image.png

Drew Verlee20:12:57

I think i tried diff3 and didn't like it because it messed up magit-ediff because it inserted characters that it didn't expect so it didn't register it as a diff in need of resolution.

Drew Verlee21:12:04

thanks for the help john. Its enough to bounch the ideas off someone. Ill just put this in my todo list of minor improvements i need to make. Maybe ill give doom modeline another try. I felt like it was missing some things i was used to.

practicalli-johnny21:12:44

I'd suggest trying out the doom modeline theme again. It should just need the two pieces of code I pasted towards the start of this thread and then restart Emacs. I havent noticed the issue myself, but will take some screenshots next time. I also need to do some screenshots of using diff3 with ediff as it seems to work well for me. As I can see the parent it makes it more obvious as to the change. I think a fairly recent version of the Git client is required (it was working from May this year)

👍 1
practicalli-johnny12:02:37

Did you resolve this issue with Spacemacs @U0DJ4T5U1 Using Doom Emacs I find it fairly clear which buffer is which, I assume Spacemacs is the same if using Doom modeline If not then there must be an option to tweak what is shown

Drew Verlee17:02:46

the situation hasn't improved. I'm going to make a list of things i want to improve and rank them. i'm not using the modeline that came with spacemacs because it seemed to have what i expected more often.

Drew Verlee19:12:06

I don't feel like i'm a special butterfly here, i don't see how anyone would want that setup for when there are doing git merges.

Drew Verlee19:12:58

like look at vscode

Drew Verlee19:12:24

"Local changes" and "Changes from server"

Drew Verlee19:12:50

^ that might be intellij

Drew Verlee19:12:10

This is defiantly intellij

Drew Verlee23:12:59

apologies for the noise, i'm having one of those days with spacemaces. Sadly, i have had so many of them that i'm going to put a lot more energy into trying to get Doom to be my main work editor buddy. I had Spacemacs crash on me while trying to do some text search in my magit buffer and i tried the same thing in doom and there was no issue. I Have no doubt this a hole i have dug, but i have no idea how to climb out myself out of it so i'm trying something new. Hopefully this experience report is somewhat useful to someone else?

Cora (she/her)05:12:50

it was other issues but the number of problems I had with spacemacs is what drove me to doom, too

zane18:12:34

Likewise. If you need help porting over some of the Spacemacs features like SPC k we can definitely help you out over in #C01GE5PD249. 🙂

practicalli-johnny02:12:27

I've been trying to use doom for several years (usually trying winter and summer), but just too many different key bindings, it really slowed me down each time. If someone has replicated all the Spacemacs keybindings in Doom (I use tonnes of Spacemacs ones) then it might be worth trying, otherwise I'd be very slow. I've experienced this slowness with Neovim recently, very much slower for several months and still not replicated enough functionality for it to be worth switching fully). Havent seen anything as consistent as Spacemacs as yet unfortunately.

1
👍 1
Drew Verlee16:12:51

I'm in that boat to, i keep trying to switch stuff over that i know how to do in space but it's time consuming and push comes to shove i use what i can work with.