probably all the same feature
turn it on, it guides you through getting everything started
then has support hydra/keybindings in clawe-mx
A nice swap-file! function shared in clojurians:
(defn swap-file!
"Swaps the contents of file to be:
(apply f current-contents-of-file args). f should be free of side effects.
Returns the value that was swapped in."
[file f & xs]
(let [old-val (slurp file)
new-val (apply f old-val xs)]
(spit file new-val)
new-val))
Like
swap!
for an atom, but for a file's
contents.
Gotta start collecting these sometime!
I have more to explore here, but it seems to produce garden styles from tailwind classes?
Clojure and lisps in general make it incredibly easy to write functions - small, reusable patterns that you'll want everywhere.
The standard library provides plenty to work with, but sometimes you end up needing the same pattern over and over again.
These small, repeated helpers tend to get shoved
into util
namespaces in large projects - but then,
what if you want them across projects?
Enter the standard-lib wishlist lib. All the helpers you wish were in the standard lib. Maybe one day they will be!
Two such libraries in this vein:
(#{"goals"} "goals") => "goals"
(#{"goals"} #{"goals"}) => nil
(#{#{"goals"}} #{"goals"}) => #{"goals"}
(seq (set/intersection #{"goals"} #{"goals"})) => ("goals")
On my 11/11/22 stream there was a css height background moment.
h-screen
filled the container just fine, until the
content went beyond the height - then, scrolling revealed the
content below the fold had no background!
Switching to
h-full
fixes the scrolling, but when the content
does not reach the fold, there is again a background
gap.
Turns out,
min-h-screen
is what we want. I found it suggested on
StackOverflow here: https://stackoverflow.com/a/68637532/860787
min-h-screen
fills the full window height _AND_
maintains the background on content below the fold when
scrolling.
Very happy to avoid dealing with the root
<body>
elem in this case! That would have gotten
quite messy, bubbling up background colors to the root elem.
(\*shudder\*)
For reference:
.min-h-screen {
min-height: 100vh;
}
.h-screen {
height: 100vh;
}
.h-full {
height: 100%;
}
Initial goal: a floating, always-on-top dashboard component
that shows the "goal" or "goals" tagged todos in today's daily
and highlights based on other tags (current, etc)
We may give up on this - really i just want to spend a bit of time diving so i can get some context on it.
modeled after the topbar itself
mvp-only
:org/name
The overview and note taking is perhaps more important