This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-15
Channels
- # announcements (3)
- # aws (2)
- # babashka (57)
- # beginners (24)
- # clj-kondo (5)
- # clj-together (3)
- # cljs-dev (11)
- # clojure (83)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (32)
- # clojure-filipino (1)
- # clojure-hk (5)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-sg (1)
- # clojure-spain (1)
- # clojure-taiwan (1)
- # clojure-uk (2)
- # clojurescript (7)
- # conjure (36)
- # data-science (19)
- # datomic (27)
- # emacs (44)
- # events (4)
- # fulcro (16)
- # honeysql (6)
- # inf-clojure (1)
- # interop (5)
- # malli (5)
- # nbb (1)
- # off-topic (19)
- # pathom (4)
- # practicalli (1)
- # remote-jobs (4)
- # ring (1)
- # shadow-cljs (72)
- # spacemacs (2)
using vertico, consult and embark. Do you have a way to narrow down in completing-read-multiple
and then just say "everything I just narrowed down"
(completing-read-multiple "fo: " '("foo" "bar" "fofo"))
I like to just type fo
and then get "foo" and "fofo"sort of a legendary flow for me would be to export with embark, then mark what I want in the export buffer and then be able to continue the completing-read-multiple call.
you can embark-export, then use consult-line on the export buffer and export again etc etc
and what I am suggesting works better with narrowing actually, so not sure it makes sense
I realized for my use case, multi occur; I already have the legendary flow by doing consult-buffer -> export with embark and using ibuffer occur on the export buff.
If I try consult-buffer + embark-export, and then run ibuffuer-do-occur, I get “Assertion failed: (derived-mode-p ’ibuffer-mode)“. Am I doing something different to you?
you probably export with a mix of completion "kinds" and don't get an ibuffer buffer. By default in consult you can do b
space to only get buffer completions, then embark export will make an ibuffer export buffffer
Yes, that was it. multi-occur-in-matching-buffers
seems like a quicker way of doing roughly the same thing though
Mine is at https://github.com/mpenet/emax
https://github.com/benjamin-asdf/dotfiles/tree/master/mememacs/.emacs-mememacs.d no install script
https://github.com/benjamin-asdf/dotfiles/blob/master/mememacs/.emacs-mememacs.d/lisp/init-project.el#L38= consult commands never seemed to work properly with project.el for me, although it’s been a while since I tried
it works nicely, maybe they fixed something. Also I use consult-project-extra
it's great
works for me as well, I just had to set a consult-project-root-function, but I am not even sure that's still necessary
My project root function combines project.el and perspective, so e.g. if I’m looking at a scratch buffer, it still knows what the project is
Interesting - consult-ripgrep
and consult-project-extra-find
work fine when switching projects, but consult-buffer
doesn’t get the project root, and so doesn’t show project buffers/files.
consult-buffer
is for me for all buffers, consult-project-extra-find
is for buffers and files in current project
Oh, I thought it would narrow to project buffers and files: https://github.com/minad/consult#virtual-buffers=
Given all of the stuff consult-buffer
does around this, I’ve never been sure what consult-project-extra
provides that consult-buffer
doesn’t, although I do have it installed.
But now that I know it works nicely with project switching, I finally have a use for it 😁
I spent ages in the past trying to get consult-buffer working with project.el, so this is a nice win!
I setup consult-buffer to be automatically narrowed to project (+ perspective) files and buffers
Similar to https://github.com/minad/consult/wiki#start-command-with-initial-narrowing=