Fork me on GitHub
#spacemacs
<
2018-12-04
>
jeff.terrell13:12:21

TIL about evil-exchange, bound to g x by default. Do g x, then a motion to delineate some text. (Visual selection before g x works too.) Then go somewhere else, type g x and another motion, at which point the two regions you defined are exchanged.

👌 1
aisamu14:12:33

That's one that I dropped in favor of lispy's teleport!

practicalli-john12:12:30

That's really nice, thanks Jeff

jeff.terrell13:12:09

I found this because somebody shared a useful vim tip that, so far as I can tell, Spacemacs lacks: visually select some lines that have a number in them, then g C-a increments the numbers so that each line has a bigger number. IOW, with these lines selected:

this is a line with a 0 in it
this is a line with a 0 in it
this is a line with a 0 in it
…then g C-a will convert them to this:
this is a line with a 1 in it
this is a line with a 2 in it
this is a line with a 3 in it

❤️ 1
practicalli-john12:12:10

That vim tip would be great. You could increase all the numbers at the same time with iedit SPC s e and use number increase/decrease at point SPC n + and SPC n -. Not as useful, but wonder if it could be adapted?

theeternalpulse18:12:56

how do I solve the problem where I can't do anything because of these errors

command-execute: Cannot open load file: Too many open files, counsel-projectile
face-attribute: Cannot open load file: Too many open files, evil-surround

theeternalpulse18:12:12

I've tried clean buffer list but that doesn't do anything

theeternalpulse18:12:44

trying to do M-x gives me

Error running timer ‘which-key--update’: (file-error "Read error on documentation file" "Too many open files" "DOC")
command-execute: Buffer is read-only: #<buffer *spacemacs*>

theeternalpulse18:12:54

can't even restart because of too many open files

theeternalpulse19:12:41

found a way to get to "kill some buffers" and did it. Not sure how this happened, is there a setting or something I need to prevent this. i'm on a mac-book pro so I'm surprised I got this, not sure the origin

practicalli-john12:12:10

@U1CUUKHDL Do you know how many buffers (approximately) you had open? I often use helm transient state to clear down buffers, e.g. SPC b B for global buffer list, then M-SPC for helm transient state. Narrow by typing a pattern for the name if required, use T to mark all buffers listed and M-D to kill marked buffers. I often do this for Magit buffers that seem to hang around, using Magit as the pattern in the above process

aisamu14:12:23

Nice! I had M-SPC shadowed by Alfred! The workaround was to use helm normally to filter, C-SPC to select without helm transient and M-D to remove I wonder what else M-SPC contains...

jeff.terrell14:12:56

Can you M-x when helm is open and find the helm transient mode function? I do something similar when M-SPC doesn't work for org agenda transient mode.

aisamu15:12:20

It complains about opening helm inside helm 😕

jeff.terrell15:12:09

Ah right…because M-x uses helm for autocompletion. That makes sense.

jumar07:12:04

For this I just use SPC b B -> filter -> select with C-SPC -> kill

theeternalpulse21:12:48

I see, I pretty much cleared out the buffers with kill some buffers, and that was after a restart. I thought clean buffer list would work, but that doesn't do much forme