Fork me on GitHub
#emacs
<
2022-06-03
>
jumar07:06:37

I uses magit (with Spacemacs) and I'd like to open the status buffer in the same window I'm currently in. So when I say magit-status , it currently opens the status buffer in a different window. Can I change this behavior?

practicalli-johnny08:06:49

Not sure. Perhaps the universal argument, SPC u just before the command to open magit status? I.e. SPC u SPC g s Personally I set Magit to open "full screen" (a single window in the frame) as a git variable layer, when I q quit, the previous window arrangement is restored.

jumar08:06:15

The universal argument prompts me for selecting the git repo to be used. I didn't quite like opening magit in full screen so I disabled that a long time ago.

mpenet08:06:45

not sure magit can do that out of the box, people use shackle to do this in a generic way

jumar08:06:37

Thanks for the tip!

mpenet08:06:46

actually there's magit-display-buffer-function

mpenet08:06:53

if you check the source you can use alternatives

mpenet08:06:02

(defcustom magit-display-buffer-function #'magit-display-buffer-traditional

mpenet08:06:23

there are others like s magit-display-buffer-same-window-except-diff-v1, magit-display-buffer-fullframe-status-v1, magit-display-buffer-fullframe-status-topleft-v1, magit-display-buffer-fullcolumn-most-v1 etc

daemianmack13:06:17

how can i tweak helm’s string matching against candidates? TLDR: i’d like to weight candidates higher when my input is a contiguous match in the candidate filename. (i know there may be a bunch of packages implicated here; my understanding of this part of emacs is shamefully poor.) here’s an example of what i’m trying to do…

daemianmack13:06:08

i’m executing helm-projectile-find-file while in the clojure-lsp source. i type “db” because i’m trying to locate the clojure-lsp.db namespace. here’s what i see… “src/clojure_lsp/db.clj” is the second match, but i’d like it to be the first match, because “db” appears contiguously in the filename.

Drew Verlee02:06:23

Maybe quotes around it (I'm guessing)? I feel like the functionality you want is the default on spacemacs..

daemianmack14:06:16

sorry, missed this thread getting updated. looks like this does what i want… (setq helm-fuzzy-default-score-fn 'helm-fuzzy-helm-style-score)