Przeglądaj źródła

Thanks to GitHub user NotNormallyAGitUser, for the recommendation to change the display of the relative path to replace C:\Users\jlanzarotta with '~'. This save valuable screen real estate.

Jeff Lanzarotta 1 rok temu
rodzic
commit
2308e87960
2 zmienionych plików z 14 dodań i 10 usunięć
  1. 9 5
      doc/bufexplorer.txt
  2. 5 5
      plugin/bufexplorer.vim

+ 9 - 5
doc/bufexplorer.txt

@@ -1,7 +1,7 @@
-*bufexplorer.txt*              Buffer Explorer       Last Change: 01 May 2023
+*bufexplorer.txt*              Buffer Explorer       Last Change: 30 May 2024
 
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
-                                Version 7.4.26
+                                Version 7.4.27
 
 Plugin for easily exploring (or browsing) Vim|:buffers|.
 
@@ -263,6 +263,10 @@ The default is 1.
 ===============================================================================
 CHANGE LOG                                              *bufexplorer-changelog*
 
+7.4.27   May 30, 2024
+       - Thanks to GitHub user NotNormallyAGitUser, for the recommendation to
+         change the display of the relative path to replace $HOME with "~".
+         This save valuable screen real estate.
 7.4.26   May 01, 2023
      What's Changed
        - wipe explorer buffer on hide by @basharh in
@@ -795,9 +799,9 @@ TODO                                                         *bufexplorer-todo*
 ===============================================================================
 CREDITS                                                   *bufexplorer-credits*
 
-Author: Jeff Lanzarotta <delux256-vim at outlook dot com>
+Author: Jeff Lanzarotta <my name at gmail dot com>
 
-Credit must go out to Bram Moolenaar and all the Vim developers for
+Credit must go out to Bram Moolenaar (RIP) and all the Vim developers for
 making the world's best editor (IMHO). I also want to thank everyone who
 helped and gave me suggestions. I wouldn't want to leave anyone out so I
 won't list names.
@@ -805,7 +809,7 @@ won't list names.
 ===============================================================================
 COPYRIGHT                                               *bufexplorer-copyright*
 
-Copyright (c) 2001-2022, Jeff Lanzarotta
+Copyright (c) 2001-2024, Jeff Lanzarotta
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without

+ 5 - 5
plugin/bufexplorer.vim

@@ -1,5 +1,5 @@
 "============================================================================
-"    Copyright: Copyright (c) 2001-2023, Jeff Lanzarotta
+"    Copyright: Copyright (c) 2001-2024, Jeff Lanzarotta
 "               All rights reserved.
 "
 "               Redistribution and use in source and binary forms, with or
@@ -36,7 +36,7 @@
 " Name Of File: bufexplorer.vim
 "  Description: Buffer Explorer Vim Plugin
 "   Maintainer: Jeff Lanzarotta (my name at gmail dot com)
-" Last Changed: Monday, 01 May 2023
+" Last Changed: Thursday, 30 May 2024
 "      Version: See g:bufexplorer_version for version number.
 "        Usage: This file should reside in the plugin directory and be
 "               automatically sourced.
@@ -74,7 +74,7 @@ endif
 "1}}}
 
 " Version number
-let g:bufexplorer_version = "7.4.26"
+let g:bufexplorer_version = "7.4.27"
 
 " Plugin Code {{{1
 " Check for Vim version {{{2
@@ -770,12 +770,12 @@ function! s:BuildBufferList()
         " Are we to split the path and file name?
         if g:bufExplorerSplitOutPathName
             let type = (g:bufExplorerShowRelativePath) ? "relativepath" : "path"
-            let path = buf[type]
+            let path = substitute( buf[type], $HOME."\\>", "~", "" )
             let pad  = (g:bufExplorerShowUnlisted) ? s:allpads.shortname : s:listedpads.shortname
             let line .= buf.shortname." ".strpart(pad.path, s:StringWidth(buf.shortname))
         else
             let type = (g:bufExplorerShowRelativePath) ? "relativename" : "fullname"
-            let path = buf[type]
+            let path = substitute( buf[type], $HOME."\\>", "~", "" )
             let line .= path
         endif