bufexplorer.txt 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. *bufexplorer.txt* Buffer Explorer Last Change: 20 Mar 2025
  2. Buffer Explorer *buffer-explorer* *bufexplorer*
  3. Version 7.9.0
  4. Plugin for easily exploring (or browsing) Vim|:buffers|.
  5. |bufexplorer-installation| Installation
  6. |bufexplorer-usage| Usage
  7. |bufexplorer-windowlayout| Window Layout
  8. |bufexplorer-customization| Customization
  9. |bufexplorer-changelog| Change Log
  10. |bufexplorer-todo| Todo
  11. |bufexplorer-credits| Credits
  12. |bufexplorer-copyright| Copyright
  13. For Vim version 7.4 and above.
  14. This plugin is only available if 'compatible' is not set.
  15. {Vi does not have any of this}
  16. ==============================================================================
  17. INSTALLATION *bufexplorer-installation*
  18. To install:
  19. - Download the bufexplorer.zip from one of the following places:
  20. https://github.com/jlanzarotta/bufexplorer
  21. http://www.vim.org/scripts/script.php?script_id=42
  22. or use a package manager like vim-plug, Vundle, etc..
  23. - Extract the zip archive into your runtime directory.
  24. The archive contains plugin/bufexplorer.vim, and doc/bufexplorer.txt.
  25. - Start Vim or goto an existing instance of Vim.
  26. - Execute the following command:
  27. >
  28. :helptag <your runtime directory>/doc
  29. <
  30. This will generate all the help tags for any file located in the doc
  31. directory.
  32. ==============================================================================
  33. USAGE *bufexplorer-usage*
  34. To start exploring in the current window, use: >
  35. <Leader>be or :BufExplorer or Your custom key mapping
  36. To toggle bufexplorer on or off in the current window, use: >
  37. <Leader>bt or :ToggleBufExplorer or Your custom key mapping
  38. To start exploring in a newly split horizontal window, use: >
  39. <Leader>bs or :BufExplorerHorizontalSplit or Your custom key mapping
  40. To start exploring in a newly split vertical window, use: >
  41. <Leader>bv or :BufExplorerVerticalSplit or Your custom key mapping
  42. If you would like to use something other than the default leader key - '\' -
  43. you may simply change the leader (see |mapleader|).
  44. When <Leader>bs or <Leader>bv is issued, bufexplorer opens in either a
  45. horizontally or vertically split window. By issuing either of these commands,
  46. the user is telling bufexplorer that they want to split the window and have
  47. bufexplorer show the buffer they are about to select (from the bufexplorer
  48. windows) in the newly split window. When <Leader>be is issued, bufexplorer
  49. opens the bufexplorer contents in the current window and the buffer the user
  50. selects is opened in the current window.
  51. Note: If the current buffer is modified when bufexplorer started, the current
  52. window is always split and the new bufexplorer is displayed in that new
  53. window.
  54. Commands to use once exploring:
  55. <F1> Toggle help information.
  56. <enter> Opens the buffer that is under the cursor into the current
  57. window.
  58. <leftmouse> Opens the buffer that is under the cursor into the current
  59. window.
  60. <shift-enter> Opens the buffer that is under the cursor in another tab.
  61. a Toggles whether you are taken to the active window when
  62. selecting a buffer or not.
  63. b Fast buffer switching with b<any bufnum>.
  64. B Works in association with the |ShowTabBuffer| option. If
  65. |ShowTabBuffer| is set to 1, this toggles if BufExplorer is to
  66. only store the most recent tab for this buffer or not.
  67. d |:delete| the buffer under the cursor from the list. The
  68. buffer's 'buflisted' is cleared. This allows for the buffer to
  69. be displayed again using the 'show unlisted' command.
  70. D |:wipeout| the buffer under the cursor from the list. When a
  71. buffer is wiped, it will not be shown when unlisted buffers are
  72. displayed.
  73. F Open selected buffer in another window above the current.
  74. f Open selected buffer in another window below the current.
  75. o Opens the buffer that is under the cursor into the current
  76. window.
  77. O Opens the buffer that is under the cursor into the window where
  78. BufExplorer was originally launched.
  79. p Toggles the showing of a split filename/pathname.
  80. q Exit/Close bufexplorer.
  81. r Reverses the order the buffers are listed in.
  82. R Toggles relative path/absolute path.
  83. s Cycle thru how the buffers are listed. Either by buffer
  84. number, file name, file extension, most recently used (MRU), or
  85. full path.
  86. S Cycle thru how the buffers are listed, in reverse order.
  87. Either by buffer number, file name, file extension, most
  88. recently used (MRU), or full path.
  89. t Opens the buffer that is under the cursor in another tab.
  90. T Toggles to show only buffers for this tab or not.
  91. u Toggles the showing of "unlisted" buffers.
  92. V Open the selected buffer in another window on the left of the current.
  93. v Open the selected buffer in another window on the right of the current.
  94. X Toggles the showing of terminal buffers.
  95. Once invoked, Buffer Explorer displays a sorted list (MRU is the default
  96. sort method) of all the buffers that are currently opened. You are then
  97. able to move the cursor to the line containing the buffer's name you are
  98. wanting to act upon. Once you have selected the buffer you would like,
  99. you can then either open it, close it (delete), resort the list, reverse
  100. the sort, quit exploring and so on...
  101. ===============================================================================
  102. WINDOW LAYOUT *bufexplorer-windowlayout*
  103. -------------------------------------------------------------------------------
  104. " Press <F1> for Help
  105. " Sorted by mru | Locate buffer | Absolute Split path
  106. "=
  107. 1 %a bufexplorer.txt C:\Vim\vimfiles\doc line 87
  108. 2 # bufexplorer.vim c:\Vim\vimfiles\plugin line 1
  109. -------------------------------------------------------------------------------
  110. | | | | |
  111. | | | | +-- Current Line #.
  112. | | | +-- Relative/Full Path
  113. | | +-- Buffer Name.
  114. | +-- Buffer Attributes. See |:buffers| for more information.
  115. +-- Buffer Number. See |:buffers| for more information.
  116. ===============================================================================
  117. CUSTOMIZATION *bufexplorer-customization*
  118. If you do not like the default key mappings of <Leader>be, <Leader>bs, and
  119. <Leader>bv, you can override bufexplorer's default mappings by setting up
  120. something like the following in your vimrc file:
  121. nnoremap <silent> <F11> :BufExplorer<CR>
  122. nnoremap <silent> <s-F11> :ToggleBufExplorer<CR>
  123. nnoremap <silent> <m-F11> :BufExplorerHorizontalSplit<CR>
  124. nnoremap <silent> <c-F11> :BufExplorerVerticalSplit<CR>
  125. BufExplorer provides the following <Plug> mappings for the operations it
  126. provides. The mappings are buffer-local to BufExplorer:
  127. <Plug>(BufExplorer_BufferDelete) Delete buffer with confirmation
  128. <Plug>(BufExplorer_BufferDeleteForced) Delete buffer w/o confirmation
  129. <Plug>(BufExplorer_BufferWipe) Wipe buffer with confirmation
  130. <Plug>(BufExplorer_BufferWipeForced) Wipe buffer w/o confirmation
  131. <Plug>(BufExplorer_Close) Close BufExplorer window
  132. <Plug>(BufExplorer_OpenBuffer) Open buffer
  133. <Plug>(BufExplorer_OpenBufferAsk) Prompt for buffer & open
  134. <Plug>(BufExplorer_OpenBufferOriginalWindow) Open buffer in original window
  135. <Plug>(BufExplorer_OpenBufferSplitAbove) Horizontal split & open above
  136. <Plug>(BufExplorer_OpenBufferSplitBelow) Horizontal split & open below
  137. <Plug>(BufExplorer_OpenBufferSplitLeft) Vertical split & open left
  138. <Plug>(BufExplorer_OpenBufferSplitRight) Vertical split & open right
  139. <Plug>(BufExplorer_OpenBufferTab) Open buffer in new tab
  140. <Plug>(BufExplorer_SortByNext) Select next sort order
  141. <Plug>(BufExplorer_SortByPrev) Select previous sort order
  142. <Plug>(BufExplorer_ToggleFindActive) Toggle finding active buffer
  143. <Plug>(BufExplorer_ToggleHelp) Toggle help information
  144. <Plug>(BufExplorer_ToggleOnlyOneTab) Toggle showing only on MRU tab
  145. <Plug>(BufExplorer_ToggleReverseSort) Reverse current sort order
  146. <Plug>(BufExplorer_ToggleShowRelativePath) Toggle showing relative path
  147. <Plug>(BufExplorer_ToggleShowTabBuffer) Toggle "only this tab" bufs
  148. <Plug>(BufExplorer_ToggleShowTerminal) Toggle showing terminal bufs
  149. <Plug>(BufExplorer_ToggleShowUnlisted) Toggle showing unlisted bufs
  150. <Plug>(BufExplorer_ToggleSplitOutPathName) Toggle splitting out path name
  151. At BufExplorer startup, the following buffer-local mappings are made in
  152. BufExplorer's buffer:
  153. nmap <nowait> <buffer> <2-leftmouse> <Plug>(BufExplorer_OpenBuffer)
  154. nmap <nowait> <buffer> <CR> <Plug>(BufExplorer_OpenBuffer)
  155. nmap <nowait> <buffer> <F1> <Plug>(BufExplorer_ToggleHelp)
  156. nmap <nowait> <buffer> <s-cr> <Plug>(BufExplorer_OpenBufferTab)
  157. nmap <nowait> <buffer> a <Plug>(BufExplorer_ToggleFindActive)
  158. nmap <nowait> <buffer> b <Plug>(BufExplorer_OpenBufferAsk)
  159. nmap <nowait> <buffer> B <Plug>(BufExplorer_ToggleOnlyOneTab)
  160. nmap <nowait> <buffer> d <Plug>(BufExplorer_BufferDelete)
  161. nmap <nowait> <buffer> D <Plug>(BufExplorer_BufferWipe)
  162. nmap <nowait> <buffer> f <Plug>(BufExplorer_OpenBufferSplitBelow)
  163. nmap <nowait> <buffer> F <Plug>(BufExplorer_OpenBufferSplitAbove)
  164. nmap <nowait> <buffer> o <Plug>(BufExplorer_OpenBuffer)
  165. nmap <nowait> <buffer> O <Plug>(BufExplorer_OpenBufferOriginalWindow)
  166. nmap <nowait> <buffer> p <Plug>(BufExplorer_ToggleSplitOutPathName)
  167. nmap <nowait> <buffer> q <Plug>(BufExplorer_Close)
  168. nmap <nowait> <buffer> r <Plug>(BufExplorer_ToggleReverseSort)
  169. nmap <nowait> <buffer> R <Plug>(BufExplorer_ToggleShowRelativePath)
  170. nmap <nowait> <buffer> s <Plug>(BufExplorer_SortByNext)
  171. nmap <nowait> <buffer> S <Plug>(BufExplorer_SortByPrev)
  172. nmap <nowait> <buffer> t <Plug>(BufExplorer_OpenBufferTab)
  173. nmap <nowait> <buffer> T <Plug>(BufExplorer_ToggleShowTabBuffer)
  174. nmap <nowait> <buffer> u <Plug>(BufExplorer_ToggleShowUnlisted)
  175. nmap <nowait> <buffer> v <Plug>(BufExplorer_OpenBufferSplitRight)
  176. nmap <nowait> <buffer> V <Plug>(BufExplorer_OpenBufferSplitLeft)
  177. nmap <nowait> <buffer> X <Plug>(BufExplorer_ToggleShowTerminal)
  178. These buffer-local mappings may be adjusted as desired after BufExplorer has
  179. been launched, typically by use of an autocommand. At BufExplorer startup, a
  180. |User| autocommand will be sent with an autocommand pattern of
  181. `BufExplorer_Started`. This event may be caught via an |:autocmd|, allowing
  182. customization of mappings when BufExplorer launches.
  183. Below is an example showing of some of the possibilites. `UserPrefix_` is an
  184. arbitrary user-chosen prefix to avoid naming collisions. When the
  185. `BufExplorer_Started` event is detected, `UserPrefix_setupBufExplorer()` will
  186. be called to adjust BufExplorer's mappings: >
  187. augroup UserPrefix_BufExplorerGroup
  188. autocmd!
  189. autocmd User BufExplorer_Started call UserPrefix_setupBufExplorer()
  190. augroup END
  191. function! UserPrefix_setupBufExplorer()
  192. " Example: Make `d` force-delete (`:bd!`) and `D` force-wipe (`:bw!`),
  193. " bypassing the confirmation prompt that BufExplorer normally provides
  194. " for modified buffers and terminal buffers:
  195. nmap <nowait> <buffer> d <Plug>(BufExplorer_BufferDeleteForced)
  196. nmap <nowait> <buffer> D <Plug>(BufExplorer_BufferWipeForced)
  197. " Example: Map the `<Space>` key to close BufExplorer (like `q`).
  198. nmap <nowait> <buffer> <Space> <Plug>(BufExplorer_Close)
  199. " Example: Map the `<Esc>` key to close BufExplorer (like `q`).
  200. " Note: Mapping `<Esc>` works badly in console Vim because `<Esc>` sends
  201. " an escape byte, which is also used as the first byte in a number of
  202. " multi-byte key codes (e.g., arrow keys). Vim must wait for
  203. " 'ttimeoutlen` to expire to guess whether the escape byte came from
  204. " pressing the `<Esc>` key or from some multi-byte key code. Gvim and
  205. " Neovim do not have this issue.
  206. nmap <nowait> <buffer> <Esc> q
  207. " Example: Map `l` key to open the buffer (like `<Enter>`).
  208. nmap <nowait> <buffer> l <Plug>(BufExplorer_OpenBuffer)
  209. " Example: Map the `t` key to `<Nop>` to prevent opening in a tab.
  210. nmap <nowait> <buffer> t <Nop>
  211. endfunction
  212. <
  213. *g:bufExplorerChgWin*
  214. If set, bufexplorer will bring up the selected buffer in the window specified
  215. by g:bufExplorerChgWin.
  216. *g:bufExplorerDefaultHelp*
  217. To control whether the default help is displayed or not, use: >
  218. let g:bufExplorerDefaultHelp=0 " Do not show default help.
  219. let g:bufExplorerDefaultHelp=1 " Show default help.
  220. The default is to show the default help.
  221. *g:bufExplorerDisableDefaultKeyMapping*
  222. To control whether the default key mappings are enabled or not, use: >
  223. let g:bufExplorerDisableDefaultKeyMapping=0 " Do not disable mapping.
  224. let g:bufExplorerDisableDefaultKeyMapping=1 " Disable mapping.
  225. The default is NOT to disable the default key mapping.
  226. *g:bufExplorerDetailedHelp*
  227. To control whether detailed help is display by, use: >
  228. let g:bufExplorerDetailedHelp=0 " Do not show detailed help.
  229. let g:bufExplorerDetailedHelp=1 " Show detailed help.
  230. The default is NOT to show detailed help.
  231. *g:bufExplorerFindActive*
  232. To control whether you are taken to the active window when selecting a buffer,
  233. use: >
  234. let g:bufExplorerFindActive=0 " Do not go to active window.
  235. let g:bufExplorerFindActive=1 " Go to active window.
  236. The default is to be taken to the active window.
  237. *g:bufExplorerFuncRef*
  238. When a buffer is selected, the functions specified either singly or as a list
  239. will be called.
  240. *g:bufExplorerOnlyOneTab*
  241. To control whether a buffer should be shown on any tab where it has ever been
  242. used or only on the most-recently-used (MRU) tab (i.e., the tab where the buffer
  243. was most recently used), use: >
  244. let g:bufExplorerOnlyOneTab=0 " Show in all tabs where buffer was used.
  245. let g:bufExplorerOnlyOneTab=1 " Show buffer only in MRU tab.
  246. The default is `1` (show a buffer only on the MRU tab).
  247. This setting applies only when |g:bufExplorerShowTabBuffer| is true (i.e., when
  248. BufExplorer shows only those buffers used in the current tab instead of showing
  249. all buffers).
  250. *g:bufExplorerReverseSort*
  251. To control whether to sort the buffer in reverse order or not, use: >
  252. let g:bufExplorerReverseSort=0 " Do not sort in reverse order.
  253. let g:bufExplorerReverseSort=1 " Sort in reverse order.
  254. The default is NOT to sort in reverse order.
  255. *g:bufExplorerShowDirectories*
  256. Directories usually show up in the list from using a command like ":e .".
  257. To control whether to show directories in the buffer list or not, use: >
  258. let g:bufExplorerShowDirectories=0 " Do not show directories.
  259. let g:bufExplorerShowDirectories=1 " Show directories.
  260. The default is to show directories.
  261. *g:bufExplorerShowNoName*
  262. To control whether to show "No Name" buffers or not, use: >
  263. let g:bufExplorerShowNoName=0 " Do not "No Name" buffers.
  264. let g:bufExplorerShowNoName=1 " Show "No Name" buffers.
  265. The default is to NOT show "No Name buffers.
  266. *g:bufExplorerShowRelativePath*
  267. To control whether to show absolute paths or relative to the current
  268. directory, use: >
  269. let g:bufExplorerShowRelativePath=0 " Show absolute paths.
  270. let g:bufExplorerShowRelativePath=1 " Show relative paths.
  271. The default is to show absolute paths.
  272. *g:bufExplorerShowTabBuffer*
  273. To control whether or not to show buffers on for the specific tab or not, use: >
  274. let g:bufExplorerShowTabBuffer=0 " No.
  275. let g:bufExplorerShowTabBuffer=1 " Yes.
  276. The default is not to show.
  277. *g:bufExplorerShowUnlisted*
  278. To control whether to show unlisted buffers or not, use: >
  279. let g:bufExplorerShowUnlisted=0 " Do not show unlisted buffers.
  280. let g:bufExplorerShowUnlisted=1 " Show unlisted buffers.
  281. The default is to NOT show unlisted buffers.
  282. *g:bufExplorerSortBy*
  283. To control what field the buffers are sorted by, use: >
  284. let g:bufExplorerSortBy='extension' " Sort by file extension.
  285. let g:bufExplorerSortBy='fullpath' " Sort by full file path name.
  286. let g:bufExplorerSortBy='mru' " Sort by most recently used.
  287. let g:bufExplorerSortBy='name' " Sort by the buffer's name.
  288. let g:bufExplorerSortBy='number' " Sort by the buffer's number.
  289. The default is to sort by mru.
  290. *g:bufExplorerSplitBelow*
  291. To control where the new split window will be placed above or below the
  292. current window, use: >
  293. let g:bufExplorerSplitBelow=1 " Split new window below current.
  294. let g:bufExplorerSplitBelow=0 " Split new window above current.
  295. The default is to use whatever is set by the global &splitbelow
  296. variable.
  297. *g:bufExplorerSplitHorzSize*
  298. To control the size of the new horizontal split window. use: >
  299. let g:bufExplorerSplitHorzSize=n " New split window is n rows high.
  300. let g:bufExplorerSplitHorzSize=0 " New split window size set by Vim.
  301. The default is 0, so that the size is set by Vim.
  302. *g:bufExplorerSplitOutPathName*
  303. To control whether to split out the path and file name or not, use: >
  304. let g:bufExplorerSplitOutPathName=1 " Split the path and file name.
  305. let g:bufExplorerSplitOutPathName=0 " Don't split the path and file
  306. " name.
  307. The default is to split the path and file name.
  308. *g:bufExplorerSplitRight*
  309. To control where the new vsplit window will be placed to the left or right of
  310. current window, use: >
  311. let g:bufExplorerSplitRight=0 " Split left.
  312. let g:bufExplorerSplitRight=1 " Split right.
  313. The default is to use the global &splitright.
  314. *g:bufExplorerSplitVertSize*
  315. To control the size of the new vertical split window, use: >
  316. let g:bufExplorerSplitVertSize=n " New split window is n columns wide.
  317. let g:bufExplorerSplitVertSize=0 " New split windows size set by Vim.
  318. The default is 0, so that the size is set by Vim.
  319. *g:bufExplorerShowTerminal*
  320. To control whether terminal buffers are displayed in BufExplorer, use: >
  321. let g:bufExplorerShowTerminal=1 " Show terminal buffers.
  322. let g:bufExplorerShowTerminal=0 " Don't show terminal buffers.
  323. The default is 1, to show the terminal buffers.
  324. *g:bufExplorerVersionWarn*
  325. To control whether to warning about Vim version or not, use: >
  326. let g:bufExplorerVersionWarn=1 " Warn if version conflict.
  327. let g:bufExplorerVersionWarn=0 " Do not warn if version conflict.
  328. The default is 1.
  329. ===============================================================================
  330. CHANGE LOG *bufexplorer-changelog*
  331. 7.9.0 March 20, 2025
  332. What's Changed
  333. - Another major patch implemented by Dr. Michael Henry.
  334. * Improve terminal buffer display and toggling ability.
  335. https://github.com/jlanzarotta/bufexplorer/pull/123
  336. - Improve the display of terminal buffers to be a uniform
  337. /current/working/directory/!PID:shellName on Vim and Neovim.
  338. - Enable the ability to toggle the showing of terminal buffers
  339. (via the X command).
  340. * Buffer removal enhancements.
  341. https://github.com/jlanzarotta/bufexplorer/pull/124
  342. - Allow deletion/wiping of Neovim terminal buffers (addresses Feature
  343. Request: Add an option to do :bd! #69).
  344. - Retain buffer until it has been fully wiped.
  345. - Improve error message when deleting an unlisted buffer.
  346. * Allow customized mappings.
  347. https://github.com/jlanzarotta/bufexplorer/pull/125
  348. - Provide a mechanism for users to adjust BufExplorer command mappings.
  349. This addresses Exit on 'Esc' press #73 and Add l as an additional
  350. key to select a buffer #113.
  351. - Expose new "forced" delete and wipe actions that may be optionally
  352. mapped by the user. This removes confirmation for modified buffers
  353. and terminal buffers.
  354. - Remove incomplete visual-mode d/D mappings.
  355. 7.8.0 March 05, 2025
  356. After all these many years, bufexplorer now requires Vim version 7.4 or
  357. greater.
  358. 7.7.0 March 05, 2025
  359. What's Changed
  360. - Another Major patch implemented by Dr. Michael Henry.
  361. https://github.com/jlanzarotta/bufexplorer/pull/121
  362. * Fix issue Bufexplorer MRU sort doesn't work properly if using
  363. restore_session.vim #8 "Bufexplorer MRU sort doesn't work properly if
  364. using restore_session.vim".
  365. * Fix issue Bufexplorer interferes with the startinsert! command #87
  366. "Bufexplorer interferes with the startinsert! command".
  367. * Treat unlisted buffers as least-recently-used instead of
  368. most-recently-used in the MRU sort order.
  369. * Replace the undocumented m key (intended for debugging MRU logic)
  370. with the BufExplorer_eval() and BufExplorer_execute() general
  371. debugging features.
  372. * Improve speed of MRU tracking.
  373. 7.6.0 February 17, 2025
  374. What's Changed
  375. - Another Major patch implemented by Dr. Michael Henry.
  376. https://github.com/jlanzarotta/bufexplorer/pull/119
  377. * Sorting by fullname now depends only on the buffer's absolute path
  378. using a new sorting mechanism. Other sort modes have been converted to
  379. use this mechanism as well.
  380. * Display of directory buffers is now suppressed when
  381. g:bufExplorerShowDirectories == 0 as described in the BufExplorer
  382. documentation.
  383. * Path calculations for the elements in s:types have been normalized.
  384. fullpath now has simplify() applied to normalize paths like
  385. dir/../file. Trailing path separators for directories have been
  386. removed. The shortname <DIRECTORY> for directories has been
  387. eliminated; instead, the directory's basename is used as is done for
  388. files (except for root directories, where the trailing path separator
  389. cannot be removed; a shortname of . is used for this case). A new
  390. element, homepath, has been added to s.types; this is fullpath
  391. shortened for paths in $HOME and without the trailing path separator.
  392. Other displayable paths (path, relativepath, relativename) are
  393. similarly shortened for paths in $HOME.
  394. * Textual substitution of $HOME -> ~ in paths has been eliminated. This
  395. substitution could occur anywhere in the path, not just at the start,
  396. causing undesirable anomalies. Shortening for paths in $HOME is now
  397. done via homename and associated variables from s:types.
  398. * If the devicons plugin is installed, a buffer's buf.isdir status has
  399. been added as a parameter passed to that plugin, allowing the plugin
  400. to supply a directory icon for buffer directories.
  401. * Avoid calculating buffer details until they are needed for display.
  402. Users who don't want to see unlisted buffers shouldn't have to pay
  403. for the expensive work of calculating buffer details for unlisted
  404. buffers, only to have that information ignored. This resolves
  405. bufexplorer is slow to open with many unlisted buffers.
  406. https://github.com/jlanzarotta/bufexplorer/issues/20
  407. 7.5.0 February 16, 2025
  408. What's Changed
  409. - Major patch implemented by Dr. Michael Henry.
  410. https://github.com/jlanzarotta/bufexplorer/pull/118
  411. Significant rework and restructuring of the s:SelectBuffer() method to
  412. demonstrate behaviors described in Github issue #117.
  413. https://github.com/jlanzarotta/bufexplorer/issues/117
  414. This patch includes fixes which also resolves:
  415. - Github issue #81. Previous buffer duplicated in split after openning
  416. new buffer in tab.
  417. https://github.com/jlanzarotta/bufexplorer/issues/81
  418. - Github issue #65. bv plus t does weird things.
  419. https://github.com/jlanzarotta/bufexplorer/issues/65
  420. - Github issue #52. Find Active Window not working as expected.
  421. https://github.com/jlanzarotta/bufexplorer/issues/52
  422. 7.4.28 November 5, 2024
  423. - Thanks to GitHub user jsvia, for the addition of the new
  424. bufExplorerShowTerminal feature. Please refer to the documentation
  425. for complete information.
  426. 7.4.27 May 30, 2024
  427. - Thanks to GitHub user NotNormallyAGitUser, for the recommendation to
  428. change the display of the relative path to replace $HOME with "~".
  429. This save valuable screen real estate.
  430. 7.4.26 May 01, 2023
  431. What's Changed
  432. - wipe explorer buffer on hide by @basharh in
  433. https://github.com/jlanzarotta/bufexplorer/pull/111
  434. New Contributors
  435. - @basharh made their first contribution in
  436. https://github.com/jlanzarotta/bufexplorer/pull/111
  437. Full Changelog
  438. https://github.com/jlanzarotta/bufexplorer/compare/v.7.4.25...v7.4.26
  439. 7.4.25 September 20, 2022
  440. What's Changed
  441. - Fix MRU sort order after loading vim session by @mmrwoods in
  442. https://github.com/jlanzarotta/bufexplorer/pull/107
  443. New Contributors
  444. - @mmrwoods made their first contribution in
  445. https://github.com/jlanzarotta/bufexplorer/pull/107
  446. Full Changelog
  447. https://github.com/jlanzarotta/bufexplorer/compare/v7.4.24...v.7.4.25
  448. 7.4.24 May 03, 2022
  449. Updated copyright notice.
  450. 7.4.23 January 23, 2022
  451. Merged in changes from benoit-pierre that fixes an error thrown when vim
  452. is in read-only mode.
  453. Merged in changes from tartansandal that implements the use of an
  454. independent variable to track window splitting since s:splitMode != ''
  455. no longer implies that a split was triggered.
  456. 7.4.22 January 5,2022
  457. - Merged in change from nadean that fixed an issue that if you use either
  458. split mode, you could no longer use the regular non-split mode. This was
  459. because the split mode set s:splitMode and that variable was never reset
  460. to "" to allow you run without split mode.
  461. 7.4.21 December 8, 2018
  462. - Merged in changes from adelarsq that introduced ryanoasis/vim-devicons
  463. support. If the global g:loaded_webdevicons has been set, bufexplorer
  464. will now load the associated dev icons for each buffer.
  465. 7.4.20 January 18, 2017
  466. - Thanks to jpflouret for supplying code that can remove the warning
  467. messages if you using this plugin on an older version of Vim. The
  468. global variable is g:bufExplorerVersionWarn.
  469. 7.4.19 September 18, 2017
  470. - Merged all changes from github back into this version and tried to sync
  471. to the correct version number.
  472. 7.4.18 - Github.
  473. 7.4.17 - Github.
  474. 7.4.16 August 14, 2017
  475. - Thanks to Yubo Su for the patch that adds 'f, F, V, and v' commands.
  476. With this change, the original 'f' command was remapped to 'a'.
  477. The set of commands that can be used during exploring are:
  478. F - Open selected buffer in another window above the current.
  479. f - Open selected buffer in another window below the current.
  480. V - Open the selected buffer in another window on the left of the
  481. current.
  482. v - Open the selected buffer in another window on the right of the
  483. current.
  484. 7.4.15 May 01, 2017
  485. - Finally applied the patch submitted by justfalter. This patch is a
  486. backward-compatible fix for the "invalid tab range" bug.
  487. 7.4.14 April 10, 2017
  488. - As suggested by adelarsq way back on January 5th, 2016, a filetype has
  489. been added. There is now 'filetype=bufexplorer'.
  490. 7.4.13 March 08, 2017
  491. - Thanks to devakivamsi for pointing out that even though bufexplorer
  492. turns off line numbers by default within its own window, this did not
  493. work correctly when using WinManager. This has now been corrected.
  494. 7.4.12 September 30, 2016
  495. - Thanks again to Martin Vuille for several more fixes related to making
  496. bufexplorer more tab-friendly.
  497. 7.4.11 September, 20, 2016
  498. - Thanks to Martin Vuille for reworking the per-tab buffer listing code.
  499. Fix for g:bufExplorerShowTabBuffer is not working correctly and other
  500. "gliches" when the ShotTabBuffer option is enabled. For example old
  501. code would not correctly handle adding/deleting a tab that wasn't the
  502. highest-numbered tab.
  503. 7.4.10 August 26, 2016
  504. - Thanks to buddylindsey for fixing a misspelling in the docs.
  505. 7.4.9 April 01, 2016
  506. - Thanks to ivegotasthma for supplying a patch to fix a major issue with
  507. plugin performance when lots of buffers are open.
  508. - Thanks to ershov for the patch to fix grouping of files in ambiguous
  509. sort modes.
  510. - Thanks to PhilRunninger for changing documentation to use <Leader>, in
  511. place of '\'.
  512. 7.4.8 January 27, 2015
  513. - Thanks to Marius Gedminas for fixing up the documentation and correcting
  514. various typos.
  515. 7.4.7 January 20, 2015
  516. - Thanks goes out to Phil Runninger for added the ability to toggle the
  517. bufexplorer list on and off using the :ToggleBufExplorer command, the
  518. map <Leader>bt, and the function ToggleBufExplorer().
  519. 7.4.6 November 03, 2014
  520. - Not sure how, but the file format was converted to Dos instead of Unix.
  521. I converted the file back to Unix.
  522. 7.4.5 October 24, 2014
  523. - Dr Michael Henry suggested to change all noremap commands to nnoremap.
  524. Using noremap is unnecessarily broad and can cause problems, especially
  525. for select mode.
  526. 7.4.4 August 19, 2014
  527. - Revert change where bufexplorer windows was closed even if the target
  528. buffer has not been loaded yet.
  529. 7.4.3 August 13, 2014
  530. - Ivan Ukhov fixed issue with deleting the last window. This update also
  531. fixes as well as another. If you have say, NERDtree open on the left
  532. side and bufexplorer on the right, that bufexplorer would close NERDtree
  533. erroneously thinking that it is closing itself.
  534. - Radoslaw Burny fixed a few bugs that surfaced when bufexplorer is used
  535. within winmanager.
  536. 7.4.2 October 22, 2013
  537. - Added global option g:bufExplorerDisableDefaultKeyMapping. This option
  538. controls weather the default key mappings (\be, \bs, and \bv) are
  539. enabled or not. See documentation for more information.
  540. 7.4.1 October 11, 2013
  541. - First update related to Vim 7.4.
  542. - Changed license text.
  543. - Fixed issue with 'hidden'. If 'hidden' is set, make sure that
  544. g:bufExplorerFindActive is set to 0. Otherwise, when using \bs or \bv,
  545. and selecting a buffer, the original buffer will be switched to instead
  546. of being opened in the newly created windows.
  547. - Added new 'b' mapping when the bufExplorer window is opened. When 'b'
  548. is pressed, the user is prompted for the buffer number to switch to, and
  549. is is then switched to when <CR> is pressed. This allows for somewhat
  550. faster buffer switching instead of using the j and k keys or the mouse
  551. to select the buffer to switch to.
  552. - Removed 'set nolist' from the Initialize() function as well as the
  553. restore of the 'list' setting in the CleanUp() function. These were
  554. causing issues when multiple new files were opened from the command
  555. line. Furthermore, there was really no reason, that I can remember, to
  556. why the 'list' setting was saved, modified, and restored anyways.
  557. - Fixed issue with WinManager integration code not working correctly
  558. anymore.
  559. - Brought back the xnoremap setup for the 'd' and 'D' keys. These were
  560. removed for some reason after version 7.2.8.
  561. - Thanks to all the contributors and testers.
  562. 7.3.6 May 06, 2013
  563. - Removed the 'drop' window command that was causing issue with the
  564. argument-list being modified after the BufExplorer windows was
  565. displayed.
  566. 7.3.5 February 08, 2013
  567. - Michael Henry added the ability to view "No Name" buffers. This
  568. functionality was lost since version 7.3.0. He also did some removal of
  569. "dead" code and cleaned up the code to handle filenames with embedded
  570. '"'.
  571. 7.3.4 January 28, 2013
  572. - Thanks go out to John Szakmeister for finding and fixing a bug in the
  573. RebuildBufferList method. The keepjumps line that clears the list could
  574. potentially reference a backwards range.
  575. 7.3.3 January 14, 2013
  576. - Major cleanup and reorganization of the change log.
  577. - We welcome the return of g:bufExplorerSplitHorzSize and
  578. g:bufExplorerSplitVertSize. When setting these values, anything less
  579. than or equal to 0 causes the split windows size to be determined by
  580. Vim. If for example you want your new horizontal split window 10 rows
  581. high, set g:bufExplorerSplitHorzSize = 10 in your .vimrc. Similar would
  582. be done if wanting a vertical split except you would use the
  583. g:bufExplorerSplitVertSize variable instead.
  584. 7.3.2 December 24, 2012
  585. - Thanks go out to Michael Henry for pointing out that I completely
  586. missed yet another function, ReverseSortSelect(), during the
  587. refactoring. This function has now returned.
  588. 7.3.1 December 06, 2012
  589. - Thanks go out to Brett Rasmussen for pointing out that the feature
  590. added way back in version 7.2.3 by Yuriy Ershov to automatically
  591. reposition the cursor to the line containing the active buffer, was
  592. no longer in the plugin. That bit of code has been re-added and
  593. all is well.
  594. 7.3.0 October 09, 2012
  595. - It has been quite a while since I published a new version and this
  596. is the first version since Vim 7.3 was released. I have put some
  597. time into reworking and cleaning up the code as well as various bug
  598. fixes. Overall, I am hopeful that I not forgotten or lost a feature.
  599. - Thanks to Tim Johnson for testing out this new version.
  600. - I have hopefully allowed for better mapping of the main public
  601. methods as is explained in the |bufexplorer-customization| section
  602. of the documentation.
  603. - Add new 'B', 'o', and 'S' key mappings.
  604. 7.2.8 November 08, 2010
  605. - Thanks to Charles Campbell for integrating bufexplorer with GDBMGR.
  606. http://mysite.verizon.net/astronaut/vim/index.html#GDBMGR
  607. 7.2.7 April 26, 2010
  608. - My 1st attempt to fix the "cache" issue where buffers information
  609. has changed but the cache/display does not reflect those changes.
  610. More work still needs to be done.
  611. 7.2.6 February 12, 2010
  612. - Thanks to Michael Henry for pointing out that I totally forgot to
  613. update the inline help to reflect the previous change to the 'd'
  614. and 'D' keys. Opps!
  615. 7.2.5 February 10, 2010
  616. - Philip Morant suggested switching the command (bwipe) associated
  617. with the 'd' key with the command (bdelete) associated with the 'D'
  618. key. This made sense since the 'd' key is more likely to be used
  619. compared to the 'D' key.
  620. 7.2.4 January 14, 2010
  621. - I did not implement the patch provided by Godefroid Chapelle
  622. correctly. I missed one line which happened to be the most important
  623. one :)
  624. 7.2.3 December 15, 2009
  625. - Hopefully I have not left anyone or anything out :)
  626. - Thanks to David Fishburn for helping me out with a much needed
  627. code overhaul as well as some awesome performance enhancements.
  628. - David also reworked the handling of tabs.
  629. - Thanks to Vladimir Dobriakov for making the suggestions on
  630. enhancing the documentation to include a better explaination of
  631. what is contained in the main bufexplorer window.
  632. - Thanks to Yuriy Ershov for added code that when the bufexplorer
  633. window is opened, the cursor is now positioned at the line with the
  634. active buffer (useful in non-MRU sort modes).
  635. - Yuriy also added the abiltiy to cycle through the sort fields in
  636. reverse order.
  637. - Thanks to Michael Henry for supplying a patch that allows
  638. bufexplorer to be opened even when there is one buffer or less.
  639. - Thanks to Godefroid Chapelle for supplying a patch that fixed
  640. MRU sort order after loading a session.
  641. 7.2.2 November 19, 2008
  642. - Thanks to David L. Dight for spotting and fixing an issue when using
  643. ctrl^. bufexplorer would incorrectly handle the previous buffer so
  644. that when ctrl^ was pressed the incorrect file was opened.
  645. 7.2.1 September 03, 2008
  646. - Thanks to Dimitar for spotting and fixing a feature that was
  647. inadvertently left out of the previous version. The feature was when
  648. bufexplorer was used together with WinManager, you could use the tab
  649. key to open a buffer in a split window.
  650. 7.2.0 August 15, 2008
  651. - For all those missing the \bs and \bv commands, these have now
  652. returned. Thanks to Phil O'Connell for asking for the return of
  653. these missing features and helping test out this version.
  654. - Fixed problem with the bufExplorerFindActive code not working
  655. correctly.
  656. - Fixed an incompatibility between bufexplorer and netrw that caused
  657. buffers to be incorrectly removed from the MRU list.
  658. 7.1.7 December 21, 2007
  659. - TaCahiroy fixed several issues related to opening a buffer in a tab.
  660. 7.1.6 December 01, 2007
  661. - Removed ff=unix from modeline in bufexplorer.txt. Found by Bill
  662. McCarthy.
  663. 7.1.5 November 30, 2007
  664. - Could not open unnamed buffers. Fixed by TaCahiroy.
  665. 7.1.4 November 16, 2007
  666. - Sometimes when a file's path has 'white space' in it, extra buffers
  667. would be created containing each piece of the path. i.e:
  668. opening c:\document and settings\test.txt would create a buffer
  669. named "and" and a buffer named "Documents". This was reported and
  670. fixed by TaCa Yoss.
  671. 7.1.3 November 15, 2007
  672. - Added code to allow only one instance of the plugin to run at a time.
  673. Thanks Dennis Hostetler.
  674. 7.1.2 November 07, 2007
  675. - Dave Larson added handling of tabs.
  676. - Dave Larson removed \bs and \bv commands because these are easier for
  677. the used to create horizontal and vertical windows.
  678. - Fixed a jumplist issue spotted by JiangJun. I overlooked the
  679. 'jumplist' and with a couple calls to 'keepjumps', everything is fine
  680. again.
  681. - Went back to using just a plugin file, instead of both an autoload
  682. and plugin file. The splitting of the file caused issues with other
  683. plugins. So if you have a prior version of bufexplorer that has an
  684. autoload file, please remove autoload\bufexplorer and
  685. plugin\bufexplorer before installing this new version.
  686. - Fixed E493 error spotted by Thomas Arendsen Hein.
  687. - Minor cosmetic changes.
  688. - Minor help file changes.
  689. 7.1.1 August 02, 2007
  690. - A problem spotted by Thomas Arendsen Hein. When running Vim
  691. (7.1.94), error E493 was being thrown.
  692. * Added 'D' for 'delete' buffer as the 'd' command was a 'wipe' buffer.
  693. 7.1.0 August 01, 2007
  694. - Another 'major' update, some by Dave Larson, some by me.
  695. - Making use of 'autoload' now to make the plugin load quicker.
  696. - Removed '\bs' and '\bv'. These are now controlled by the user. The
  697. user can issue a ':sp' or ':vs' to create a horizontal or vertical
  698. split window and then issue a '\be'
  699. - Added handling of tabs.
  700. 7.0.17 July 24, 2007
  701. - Fixed issue with 'drop' command.
  702. - Various enhancements and improvements.
  703. 7.0.16 May 15, 2007
  704. - Fixed issue reported by Liu Jiaping on non Windows systems, which was
  705. ...
  706. Open file1, open file2, modify file1, open bufexplorer, you get the
  707. following error:
  708. --------8<--------
  709. Error detected while processing function
  710. <SNR>14_StartBufExplorer..<SNR>14_SplitOpen:
  711. line 4:
  712. E37: No write since last change (add ! to override)
  713. But the worse thing is, when I want to save the current buffer and
  714. type ':w', I get another error message:
  715. E382: Cannot write, 'buftype' option is set
  716. --------8<--------
  717. 7.0.15 April 27, 2007
  718. - Thanks to Mark Smithfield for suggesting bufexplorer needed to handle
  719. the ':args' command.
  720. 7.0.14 March 23, 2007
  721. - Thanks to Randall Hansen for removing the requirement of terminal
  722. versions to be recompiled with 'gui' support so the 'drop' command
  723. would work. The 'drop' command is really not needed in terminal
  724. versions.
  725. 7.0.13 February 23, 2007
  726. - Fixed integration with WinManager.
  727. - Thanks to Dave Eggum for another update.
  728. * Fix: The detailed help didn't display the mapping for toggling
  729. the split type, even though the split type is displayed.
  730. * Fixed incorrect description in the detailed help for toggling
  731. relative or full paths.
  732. * Deprecated s:ExtractBufferNbr(). Vim's str2nr() does the same
  733. thing.
  734. * Created a s:Set() function that sets a variable only if it hasn't
  735. already been defined. It's useful for initializing all those
  736. default settings.
  737. * Removed checks for repetitive command definitions. They were
  738. unnecessary.
  739. * Made the help highlighting a little more fancy.
  740. * Minor reverse compatibility issue: Changed ambiguous setting
  741. names to be more descriptive of what they do (also makes the code
  742. easier to follow):
  743. Changed bufExplorerSortDirection to bufExplorerReverseSort
  744. Changed bufExplorerSplitType to bufExplorerSplitVertical
  745. Changed bufExplorerOpenMode to bufExplorerUseCurrentWindow
  746. * When the BufExplorer window closes, all the file-local marks are
  747. now deleted. This may have the benefit of cleaning up some of the
  748. jumplist.
  749. * Changed the name of the parameter for StartBufExplorer from
  750. "split" to "open". The parameter is a string which specifies how
  751. the buffer will be open, not if it is split or not.
  752. * Deprecated DoAnyMoreBuffersExist() - it is a one line function
  753. only used in one spot.
  754. * Created four functions (SplitOpen(), RebuildBufferList(),
  755. UpdateHelpStatus() and ReSortListing()) all with one purpose - to
  756. reduce repeated code.
  757. * Changed the name of AddHeader() to CreateHelp() to be more
  758. descriptive of what it does. It now returns an array instead of
  759. updating the window directly. This has the benefit of making the
  760. code more efficient since the text the function returns is used a
  761. little differently in the two places the function is called.
  762. * Other minor simplifications.
  763. 7.0.12 November 30, 2006
  764. - MAJOR Update. This version will ONLY run with Vim version 7.0 or
  765. greater.
  766. - Dave Eggum has made some 'significant' updates to this latest
  767. version:
  768. * Added BufExplorerGetAltBuf() global function to be used in the
  769. user's rulerformat.
  770. * Added g:bufExplorerSplitRight option.
  771. * Added g:bufExplorerShowRelativePath option with mapping.
  772. * Added current line highlighting.
  773. * The split type can now be changed whether bufexplorer is opened
  774. in split mode or not.
  775. * Various major and minor bug fixes and speed improvements.
  776. * Sort by extension.
  777. - Other improvements/changes:
  778. * Changed the help key from '?' to <F1> to be more 'standard'.
  779. * Fixed splitting of vertical bufexplorer window.
  780. - Hopefully I have not forgot something :)
  781. 7.0.11 March 10, 2006
  782. - Fixed a couple of highlighting bugs, reported by David Eggum.
  783. - Dave Eggum also changed passive voice to active on a couple of
  784. warning messages.
  785. 7.0.10 March 02, 2006
  786. - Fixed bug report by Xiangjiang Ma. If the 'ssl' option is set,
  787. the slash character used when displaying the path was incorrect.
  788. 7.0.9 February 28, 2006
  789. - Martin Grenfell found and eliminated an annoying bug in the
  790. bufexplorer/winmanager integration. The bug was were an
  791. annoying message would be displayed when a window was split or
  792. a new file was opened in a new window. Thanks Martin!
  793. 7.0.8 January 18, 2006
  794. - Thanks to Mike Li for catching a bug in the WinManager integration.
  795. The bug was related to the incorrect displaying of the buffer
  796. explorer's window title.
  797. 7.0.7 December 19, 2005
  798. - Thanks to Jeremy Cowgar for adding a new enhancement. This
  799. enhancement allows the user to press 'S', that is capital S, which
  800. will open the buffer under the cursor in a newly created split
  801. window.
  802. 7.0.6 November 18, 2005
  803. - Thanks to Larry Zhang for finding a bug in the "split" buffer code.
  804. If you force set g:bufExplorerSplitType='v' in your vimrc, and if you
  805. tried to do a \bs to split the bufexplorer window, it would always
  806. split horizontal, not vertical.
  807. - Larry Zhang also found that I had a typeo in that the variable
  808. g:bufExplorerSplitVertSize was all lower case in the documentation
  809. which was incorrect.
  810. 7.0.5 October 18, 2005
  811. - Thanks to Mun Johl for pointing out a bug that if a buffer was
  812. modified, the '+' was not showing up correctly.
  813. 7.0.4 October 03, 2005
  814. - Fixed a problem discovered first by Xiangjiang Ma. Well since I've
  815. been using vim 7.0 and not 6.3, I started using a function (getftype)
  816. that is not in 6.3. So for backward compatibility, I conditionaly use
  817. this function now. Thus, the g:bufExplorerShowDirectories feature is
  818. only available when using vim 7.0 and above.
  819. 7.0.3 September 30, 2005
  820. - Thanks to Erwin Waterlander for finding a problem when the last
  821. buffer was deleted. This issue got me to rewrite the buffer display
  822. logic (which I've wanted to do for sometime now).
  823. - Also great thanks to Dave Eggum for coming up with idea for
  824. g:bufExplorerShowDirectories. Read the above information about this
  825. feature.
  826. 7.0.2 March 25, 2005
  827. - Thanks to Thomas Arendsen Hein for finding a problem when a user
  828. has the default help turned off and then brought up the explorer. An
  829. E493 would be displayed.
  830. 7.0.1 March 10, 2005
  831. - Thanks to Erwin Waterlander for finding a couple problems.
  832. The first problem allowed a modified buffer to be deleted. Opps! The
  833. second problem occurred when several files were opened, BufExplorer
  834. was started, the current buffer was deleted using the 'd' option, and
  835. then BufExplorer was exited. The deleted buffer was still visible
  836. while it is not in the buffers list. Opps again!
  837. 7.0.0 March 10, 205
  838. - Thanks to Shankar R. for suggesting to add the ability to set
  839. the fixed width (g:bufExplorerSplitVertSize) of a new window
  840. when opening bufexplorer vertically and fixed height
  841. (g:bufExplorerSplitHorzSize) of a new window when opening
  842. bufexplorer horizontally. By default, the windows are normally
  843. split to use half the existing width or height.
  844. 6.3.0 July 23, 2004
  845. - Added keepjumps so that the jumps list would not get cluttered with
  846. bufexplorer related stuff.
  847. 6.2.3 April 15, 2004
  848. - Thanks to Jay Logan for finding a bug in the vertical split position
  849. of the code. When selecting that the window was to be split
  850. vertically by doing a '\bv', from then on, all splits, i.e. '\bs',
  851. were split vertically, even though g:bufExplorerSplitType was not set
  852. to 'v'.
  853. 6.2.2 January 09, 2004
  854. - Thanks to Patrik Modesto for adding a small improvement. For some
  855. reason his bufexplorer window was always showing up folded. He added
  856. 'setlocal nofoldenable' and it was fixed.
  857. 6.2.1 October 09, 2003
  858. - Thanks goes out to Takashi Matsuo for added the 'fullPath' sorting
  859. logic and option.
  860. 6.2.0 June 13, 2003
  861. - Thanks goes out to Simon Johann-Ganter for spotting and fixing a
  862. problem in that the last search pattern is overridden by the search
  863. pattern for blank lines.
  864. 6.1.6 May 05, 2003
  865. - Thanks to Artem Chuprina for finding a pesky bug that has been around
  866. for sometime now. The <esc> key mapping was causing the buffer
  867. explored to close prematurely when vim was run in an xterm. The <esc>
  868. key mapping is now removed.
  869. 6.1.5 April 28, 2003
  870. - Thanks to Khorev Sergey. Added option to show default help or not.
  871. 6.1.4 March 18, 2003
  872. - Thanks goes out to Valery Kondakoff for suggesting the addition of
  873. setlocal nonumber and foldcolumn=0. This allows for line numbering
  874. and folding to be turned off temporarily while in the explorer.
  875. 6.1.3 March 11, 2003
  876. - Added folding.
  877. - Did some code cleanup.
  878. - Added the ability to force the newly split window to be temporarily
  879. vertical, which was suggested by Thomas Glanzmann.
  880. 6.1.2 November 05, 2002
  881. - Now pressing the <esc> key will quit, just like 'q'.
  882. - Added folds to hide winmanager configuration.
  883. - If anyone had the 'C' option in their cpoptions they would receive
  884. a E10 error on startup of BufExplorer. cpo is now saved, updated and
  885. restored. Thanks to Charles E Campbell, Jr.
  886. - Attempted to make sure there can only be one BufExplorer window open
  887. at a time.
  888. 6.1.1 March 28, 2002
  889. - Thanks to Brian D. Goodwin for adding toupper to FileNameCmp. This
  890. way buffers sorted by name will be in the correct order regardless of
  891. case.
  892. 6.0.16 March 14, 2002
  893. - Thanks to Andre Pang for the original patch/idea to get bufexplorer
  894. to work in insertmode/modeless mode (evim).
  895. - Added Initialize and Cleanup autocommands to handle commands that
  896. need to be performed when starting or leaving bufexplorer.
  897. 6.0.15 February 20, 2002
  898. - Srinath Avadhanulax added a patch for winmanager.vim.
  899. 6.0.14 February 19, 2002
  900. - Fix a few more bug that I thought I already had fixed.
  901. - Thanks to Eric Bloodworth for adding 'Open Mode/Edit in Place'.
  902. - Added vertical splitting.
  903. 6.0.13 February 05, 2002
  904. - Thanks to Charles E Campbell, Jr. for pointing out some embarrassing
  905. typos that I had in the documentation. I guess I need to run the
  906. spell checker more :o)
  907. 6.0.12 February 04, 2002
  908. - Thanks to Madoka Machitani, for the tip on adding the augroup command
  909. around the MRUList autocommands.
  910. 6.0.11 January 26, 2002
  911. - Fixed bug report by Xiangjiang Ma. '"=' was being added to the search
  912. history which messed up hlsearch.
  913. 6.0.10 January 14, 2002
  914. - Added the necessary hooks so that the Srinath Avadhanula's
  915. winmanager.vim script could more easily integrate with this script.
  916. - Tried to improve performance.
  917. 6.0.9 December 17, 2001
  918. - Added MRU (Most Recently Used) sort ordering.
  919. 6.0.8 December 03, 2001
  920. - Was not resetting the showcmd command correctly.
  921. - Added nifty help file.
  922. 6.0.7 November 19, 2001
  923. - Thanks to Brett Carlane for some great enhancements. Some are added,
  924. some are not, yet. Added highlighting of current and alternate
  925. filenames. Added splitting of path/filename toggle. Reworked
  926. ShowBuffers().
  927. - Changed my email address.
  928. 6.0.6 September 05, 2001
  929. - Copyright notice added. Needed this so that it could be distributed
  930. with Debian Linux.
  931. - Fixed problem with the SortListing() function failing when there was
  932. only one buffer to display.
  933. 6.0.5 August 10, 2001
  934. - Fixed problems reported by David Pascoe, in that you where unable to
  935. hit 'd' on a buffer that belonged to a files that no longer existed
  936. and that the 'yank' buffer was being overridden by the help text when
  937. the bufexplorer was opened.
  938. 6.0.4 July, 31, 2001
  939. - Thanks to Charles Campbell, Jr. for making this plugin more plugin
  940. *compliant*, adding default keymappings of <Leader>be and <Leader>bs
  941. as well as fixing the 'w:sortDirLabel not being defined' bug.
  942. 6.0.3 July 30, 2001
  943. - Added sorting capabilities. Sort taken from explorer.vim.
  944. 6.0.2 July 25, 2001
  945. - Can't remember.
  946. 6.0.1 Sometime before July 25, 2001
  947. - Initial release.
  948. ===============================================================================
  949. TODO *bufexplorer-todo*
  950. - Add ability to open a buffer in a horizontal or vertical split after the
  951. initial bufexplorer window is opened.
  952. ===============================================================================
  953. CREDITS *bufexplorer-credits*
  954. Author: Jeff Lanzarotta <my name at gmail dot com>
  955. Credit must go out to Bram Moolenaar (RIP) and all the Vim developers for
  956. making the world's best editor (IMHO). I also want to thank everyone who
  957. helped and gave me suggestions. I wouldn't want to leave anyone out so I
  958. won't list names.
  959. ===============================================================================
  960. COPYRIGHT *bufexplorer-copyright*
  961. Copyright (c) 2001-2025, Jeff Lanzarotta
  962. All rights reserved.
  963. Redistribution and use in source and binary forms, with or without
  964. modification, are permitted provided that the following conditions are met:
  965. * Redistributions of source code must retain the above copyright notice, this
  966. list of conditions and the following disclaimer.
  967. * Redistributions in binary form must reproduce the above copyright notice,
  968. this list of conditions and the following disclaimer in the documentation
  969. and/or other materials provided with the distribution.
  970. * Neither the name of the {organization} nor the names of its contributors may
  971. be used to endorse or promote products derived from this software without
  972. specific prior written permission.
  973. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  974. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  975. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  976. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  977. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  978. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  979. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  980. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  981. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  982. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  983. ===============================================================================
  984. vim:tw=78:noet:wrap:ts=4:ft=help:norl: