This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-28
Channels
- # 100-days-of-code (10)
- # announcements (2)
- # architecture (16)
- # beginners (51)
- # bitcoin (3)
- # calva (1)
- # cider (6)
- # cljdoc (8)
- # cljs-dev (14)
- # cljsrn (4)
- # clojure (59)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (13)
- # clojure-spec (54)
- # clojure-uk (81)
- # clojurebridge (4)
- # clojurescript (20)
- # core-async (16)
- # cursive (39)
- # datomic (27)
- # emacs (12)
- # events (1)
- # figwheel-main (20)
- # fulcro (35)
- # funcool (1)
- # graphql (9)
- # hyperfiddle (10)
- # jobs (1)
- # jobs-discuss (7)
- # keechma (10)
- # lumo (22)
- # nrepl (18)
- # off-topic (28)
- # onyx (3)
- # pedestal (4)
- # re-frame (8)
- # reagent (8)
- # ring (4)
- # rum (3)
- # shadow-cljs (29)
- # testing (5)
@gtzogana sometimes I just redefine the test as empty 😄
so it means it still runs but at least it passes quickly
How do I prevent "buffer creep" in the sense that I can dedicate workspaces to only allow buffers to come into view if they are part of a specific project?
I use that all the time, but it's prev-next buffer that isn't aware of projects. I started to look into making a next/previous buffer for projects but wanted to see if there's an equivalent. Basically I want to dedicate a layout to a specific project.
I use such an approach, it works great but it's too tailor-made to share it (yet) Basically I have a hashmap mapping project-id -> filename-list, and my next/prev buffer functions shift the order of those lists by one position
What are some of the vars you use to build the list, if you can could you sahre it in a gist, I'm curious to build on it
I wanted to do something like check if the next buffer was in the same layout, if not then go to the nearest one that was, and vice versa for previous
just found the code for next-buffer pretty involved
https://github.com/vemv/.emacs.d/blob/181f8175480c45fc020ee68e0a39ef985b2b8166/lib/non-submodules/vemv.project-interaction.el#L176
• The code uses a fixed layout: (vemv/safe-select-window vemv/main_window)
. vemv/main_window
is the window where I open all my project-specific file buffers (other buffers may temporarily hijack it as well)
• Only 3 function calls in this body are relevant to the 'algorithm': (vemv/clean-chosen-file-buffer-order)
, (switch-to-buffer ...
, (puthash ...
I'll take a look, thanks