diff options
| author | João Távora <joaotavora@gmail.com> | 2023-09-05 15:59:03 +0100 |
|---|---|---|
| committer | João Távora <joaotavora@gmail.com> | 2023-09-05 18:17:26 +0100 |
| commit | 2292a57f11e4ca07e3304b69ef42b929569e41d0 (patch) | |
| tree | beb934e51faa127d4fe07074afca8772218da3d9 /breadcrumb.el | |
| parent | 995e1638d261ad845aed39a81fd8f158d721dba5 (diff) | |
Replace project-name with much faster and decent alternative
* breadcrumb.el (bc--project-crumbs-1): Use file-name-base + directory-file-name.
Diffstat (limited to 'breadcrumb.el')
| -rw-r--r-- | breadcrumb.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/breadcrumb.el b/breadcrumb.el index cf527af..542f4f6 100644 --- a/breadcrumb.el +++ b/breadcrumb.el @@ -343,8 +343,8 @@ propertized crumbs." collect (bc--format-project-node s more root upto) into retval finally (cl-return - (if project - (cons (propertize (project-name project) + (if root + (cons (propertize (file-name-base (directory-file-name root)) 'bc-dont-shorten t 'face 'bc-project-base-face) retval) |
