Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jghub
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
Why directory jumpers should use exponential moving sums instead of frecency
3 points
by
jghub
3mo ago
|
0 comments
2.
▲
Show HN: Ze.sh – a z.sh-derived directory jumper that uses an event clock
(github.com)
5 points
by
jghub
3mo ago
|
0 comments
3.
▲
by
jghub
7mo ago
To answer your specific questions on shell integration: cd - behavior: It undoes the last directory change irrespective of whether you did it with builtin cd or via sd. If you do "sd project-a" and then "cd -", you go ba
4.
▲
by
jghub
7mo ago
Sure, needs and tastes differ. 'cd -' behaves exactly as it always does. Functionality-wise, when you use the 'sd' wrapper (which shadows the builtin by default), it treats the standard cd behavior as a prioritized subse
5.
▲
by
jghub
7mo ago
Not really, because zoxide's "aging" is a global multiplicative downscale of cumulative scores. It doesn't solve the problem of "Historical Rigidity." In zoxide, every visit you have ever made contributes to a
6.
▲
by
jghub
7mo ago
To clarify the matching: sd uses AWK-based regex matching against the full logged pathname ($0 ~ pattern). It does not use "fuzzy" sub-sequence matching (pooling 't', 'a', and 's' from different path
7.
▲
by
jghub
7mo ago
That workflow is perfectly valid -- if you have a stable set of 5-10 projects, CDPATH and manual Tab-completion are hard to beat. I built sd for a different scenario: when your 'active' set of locations to reach is large and/
8.
▲
by
jghub
7mo ago
The Mozilla approach is a clever optimization for large-scale databases (like browser history), but it relies on a specific decay model that can be represented as a point-in-time value I believe. I chose a different path for sd for two reas
9.
▲
by
jghub
7mo ago
The difference in usability is most apparent during context switching and burst activity. The Problem with Heuristics: Most tools use simple counters and multipliers. If you spend 10 minutes performing a repetitive task in a temporary direc
10.
▲
by
jghub
7mo ago
To "manage" in this context refers to maintaining a ranked database of your directory history so you can navigate without providing full or relative paths. The difference in practice: With built-in `cd`: Navigation is manual and l
11.
▲
Show HN: A shell-native cd-compatible directory jumper using power-law frecency
(github.com)
26 points
by
jghub
7mo ago
|
16 comments