[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line a8cb383957 168/195: 2 new segments: show ju
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line a8cb383957 168/195: 2 new segments: show just the file's name & show path AND file name |
Date: |
Wed, 5 Jan 2022 02:59:52 -0500 (EST) |
branch: elpa/telephone-line
commit a8cb3839570557b49f487316f5a59b9aa0e4486b
Author: Mike Panitz <mike.panitz@gmail.com>
Commit: Mike Panitz <mike.panitz@gmail.com>
2 new segments: show just the file's name & show path AND file name
---
telephone-line-segments.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 4afff11f39..a88a8101c0 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -95,6 +95,17 @@ Adapted from doom-modeline."
(telephone-line-defsegment* telephone-line-buffer-name-segment ()
(telephone-line-raw (buffer-name)))
+;; For a file like /a/b/c/file.txt, this should display
+;; file.txt
+(telephone-line-defsegment telephone-line-buffer-name-segment ()
+ mode-line-buffer-identification
+ )
+
+;; For a file like /a/b/c/file.txt, this should display
+;; /a/b/c/file.txt
+(telephone-line-defsegment telephone-line-file-name-segment ()
+ buffer-file-name)
+
(telephone-line-defsegment* telephone-line-buffer-modified-segment ()
(if (buffer-modified-p)
(telephone-line-raw "!")
- [nongnu] elpa/telephone-line c5e08d268d 007/195: Move screenshots into subdir, (continued)
- [nongnu] elpa/telephone-line c5e08d268d 007/195: Move screenshots into subdir, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 0762bae37a 079/195: Corrected indentation, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 96030b4c98 026/195: Further clean up start of readme, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 2e7ba0bfc2 015/195: Make utf-8 separators a part of pbm separators, rather than separate entities altogether, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3e66e72d9c 075/195: add telephone-line-workgroups2-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 85d25085ef 106/195: Trig Separators!, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d0428bbd5c 108/195: Lighter color images, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 7fd38cce0c 093/195: Clarify config again, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 01a2be2798 129/195: Fix right separators on console, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 2cfe86ee8e 155/195: Merge pull request #76 from ogdenwebb/master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a8cb383957 168/195: 2 new segments: show just the file's name & show path AND file name,
ELPA Syncer <=
- [nongnu] elpa/telephone-line cce570e581 178/195: Provide TUI fallback for all separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line bfe7b189d7 177/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 110c578ccf 184/195: Merge pull request #113 from gagbo/patch-2, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line eb178dda26 188/195: Merge pull request #116 from fdeitylink/patch-1, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line aebac4658e 190/195: Fix for Emacs 27.1 scaling, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 408e05e105 172/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 67a28e8267 182/195: Add telephone-line-flymake-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 44f296e6a1 076/195: Merge pull request #24 from myTerminal/master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3ede7e6ff3 122/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6789e79806 124/195: Define nil separator in terms of a pattern func; fixes height support., ELPA Syncer, 2022/01/05