Fork me on GitHub
#spacemacs
<
2020-05-07
>
practicalli-john08:05:18

@drewverlee when using M-x or SPC SPC is typing a pattern not sufficient to narrow to the command? I have only used those key bindings when there is a command that doesn't have a key binding (and usually add one if I use an inbound command frequently enough).

Drew Verlee13:05:51

Thanks john. I do use M-x Whats happening is that the "emacs command history" is taking up to much of the buffer.

Drew Verlee13:05:19

I guess i'll look into either truncating it, removing duplicates or just removing the history.

practicalli-john15:05:56

Ah, it seems you are also getting the bug where helm is showing duplicate results, which would not help you finding the right command. I suggest you file a bug about this on Spacemacs, SPC h I . Several others have mentioned this issue on the Spacemacs gitter channel, but no one raised an issue yet (making it hard to diagnose). Its not something I have been able to reproduce. I assume its some version of helm package that went bad, but as I cant replicate it, that is just a guess.

Drew Verlee19:05:37

gotcha. Ill make sure to update my dotfile to just in case.

Drew Verlee19:05:43

thanks again.

practicalli-john22:05:14

https://github.com/syl20bnr/spacemacs/issues/13564 has details of the fix, of you haven't seen that already

Drew Verlee22:05:37

I'll take a look tomorrow! I try to save my editor changes for the weekend so I don't go down even more rabbit holes. I appreciate the message and all your work. I have gotten a ton from it.

practicalli-john08:05:50

To refactor I sometimes use the clojure-mode refactor menu (not clj-refactor), but mainly use the Emacs tools - iedit, helm-ag, narrowing https://practicalli.github.io/spacemacs/refactor/ Those Emacs tools work across languages and don't require any static analysis. Never had an issue using them

practicalli-john08:05:40

To me these Emacs tools are far more effective than IDE's I have used in the past. They are fast, langi agnostic, you can be very precise in what you change and the only dependency I have is ripgrep (or ag) to make the search even faster (and provide globbing options)

nmkip12:05:25

Hi! I'm trying to get used to spacemacs. Do you use SPC k ,,, key bindings (for example SPC k L SPC k H ) a lot? Which are the most common key bindings that you use while programming in clojure?

practicalli-john12:05:06

@juan.ignacio848 I mostly use s to slurp and b to barf (and S and B companions). w / W to wrap or unwrap. I also use r to replace the parent with the current expression, usually when I have written too much code 🙂 There are lots of other useful key bindings under SPC k but I tend to just use Evil style editing because I got used to them. https://practicalli.github.io/spacemacs/structural-editing/lisp-state.html

nmkip12:05:29

In cursive I mostly use raise barf and slurp. mmm and also a delete keybinding. Spacemacs has a lot more to offer and I'm not sure how to use it effectively 😛

nmkip12:05:13

btw, is there a way to wrap with [] {} ?

nmkip12:05:52

and what other key bindings do you usually use to interact with the REPL?

nmkip12:05:28

I'll have to play one of your videos in 0.25x speed to check that stuff haha

practicalli-john13:05:01

I often use Evil normal state to wrap things. First select something with SPC v then s to surround and ] or } to wrap the selection. Using [ or { adds a space between the wrapping characters and the selection. I used to use clojure-mode for changing parens, eg from a vector to a list with SPC r c and the respective character. I now tend to use cs - Evil change surround. Move the cursor to anywhere on or inside the surrounding parens, c s to change surround, the open paren character I want to replace, eg. [ followed by the parens I want to use instead, eg. )

😁 4
practicalli-john13:05:29

More videos of this on the way when I get chance 🙂

nmkip13:05:48

Thanks for the advice. I'll try it this afternoon

nmkip13:05:12

No clojure until then :(

practicalli-john13:05:31

Added more useful tips when creating commits with Magit, includes scrolling through previous commit messages when creating a new commit. Its a simple way to keep consistent approach to the commit history. https://practicalli.github.io/spacemacs/source-control/magit/commit-create.html

nmkip13:05:26

Do you have a magit spacemacs video?

practicalli-john15:05:34

There are several more I want to create, but here is the collection of Magit related video I currently have https://www.youtube.com/playlist?list=PLpr9V-R8ZxiDQLVJU18qo72r1GZi-ZrFm

practicalli-john15:05:41

All my Spacemacs videos should be on this playlist. The ones with dark back grounds may be a little old https://www.youtube.com/playlist?list=PLpr9V-R8ZxiCHMl2_dn1Fovcd34Oz45su

nmkip16:05:22

👍 thanks

Drew Verlee21:05:56

re. my search for a search+replace: projectile-replace-regexp works for project wide search replace