aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-11 15:30:02 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-11 15:30:02 +0300
commitf06be72977932606e047fdff713959e59c7252e3 (patch)
treede295ff62cbb767ccd6e21b394c22ce42e4af8d8
parent1cab51ae9f2be7d4f490a043ca1053ca19eeff92 (diff)
notes
-rw-r--r--internal/notes.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/notes.txt b/internal/notes.txt
index c09bd3c6..cb53b17c 100644
--- a/internal/notes.txt
+++ b/internal/notes.txt
@@ -14,3 +14,7 @@
no POWERLEVEL9K_SEGMENT_*_UPGLOB are, upglob can be checked from _p9k_set_prompt. otherwise it
has to be checked from `p10k segment` (or its internal equivalent). how to make it work with
static segments that have multiple states? for example, prompt_char.
+- when directory cannot be shortened any further, start chopping off segments from the left and
+ replacing the chopped off part with `…`. e.g., `…/x/anchor/y/anchor`. the shortest dir
+ representation is thus `…/last` or `…/last` depending on whether the last segment is an anchor.
+ the replacement parameter's value is `…/` (with a slash) to allow for `x/anchor/y/anchor`.