Fork me on GitHub
#spacemacs
<
2019-06-05
>
reefersleep08:06:28

All the time I gain by shaving seconds off of commands by using magit in spacemacs, I lose every time I try to do a reset to e.g. HEAD^. Once I enter the hard reset branch-name to: narrowing prompt, and start typing out letters one by one, H is entered immediately, E appears after a few seconds, A causes many seconds of lag… What should be a subsecond command ends up with me stuck in the prompt because I, in frustration, entered some sequence of ESC, q or the rest of what I was trying to type (`HEAD^`), and now, the narrowing menu is rendering weirdly.

reefersleep08:06:26

Anyone else experience this, ever? Not the narrowing menu getting fucked up, that’s a general problem with spacemacs/the narrowing lib, it seems, and I live with that, but the RESET narrowing prompt being extremely slow?

reefersleep08:06:10

I thought the problem might be due to way too many local branches in that project, but I deleted all but 10-20, and the problem persists.

reefersleep08:06:18

It’s only in this particular project, though.

reefersleep08:06:45

Maybe it’s because we have 1206 branches on origin and magit is trying to download them all every time I enter a key… Or something like that? I read that magit is known to be reloading stuff all the time.

practicalli-johnny13:06:09

@reefersleep Suggest you upgrade to a newer version of Spacemacs develop branch or perhaps disable magithub. In recent versions of Spacemacs develop branch, magithub is set to offline by default, so it doesnt go and look at your considerably long number of branches when you want to do something. See https://github.com/syl20bnr/spacemacs/tree/develop/layers/+source-control/github#magithub-configuration Or you could do something radical, like delete 1200 of the branches 😂

reefersleep13:06:29

I’d like to, believe me… There’s a reason they’re there, though 🙂

reefersleep13:06:44

I’ll try to upgrade, cheers @jr0cket!

practicalli-johnny23:06:07

Anyone know how to leave root access and go back to normal user access after spacemacs/sudo-edit. SPC f E Its seems like the command starts a tramp session, so I am looking through some tramp related commands (I havent used that before)