sponsor Vim development Vim logo Vim Book Ad

LustyExplorer : Dynamic filesystem and buffer explorer

 script karma  Rating 268/86, Downloaded by 3469

created by
Stephen Bach
 
script type
utility
 
description
LustyExplorer is a fast and responsive way to manage files and buffers in Vim.  It includes both a filesystem explorer (for opening new files) and a buffer explorer (for switching between currently open files) through a mostly common interface.

Here's an animated gif showing it in action:

      http://viewglob.sourceforge.net/lusty-explorer-animated.gif
      (from 1.x)

Annotated snapshot progression:

      http://viewglob.sourceforge.net/lusty-explorer-annotated.png
      (from 1.x)

Instructions for use:

      <Leader>lf  - Opens the filesystem explorer.
      <Leader>lr  - Opens the filesystem explorer at the directory of the current file.
      <Leader>lb  - Opens the buffer explorer.

When one of the explorers is launched, a new window appears at bottom presenting a list of files/dirs or buffers, and in the status bar is a prompt:

      >>

As you type a name, the list updates using a fuzzy matching algorithm.  Press enter to open the selected match, <C-n>/<C-p> to select the next/previous match, or press <ESC> or <Ctrl-c> to cancel.

If you like LustyExplorer, you may also like LustyJuggler: vimscript #2050

See the "Usage:" section of the script for other tricks and features.
 
install details
Copy the script into your $HOME/.vim/plugin directory so that it will be sourced on startup.  If you have previously installed dynamic-explorer.vim (the old name), remove it.

NOTE: This plugin requires Vim be compiled with Ruby interpretation.  If you do not currently have this functionality, see the "Install Details:" section of the script for directions on adding it.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
lusty-explorer.vim 2.1.1 2009-10-13 7.0 Stephen Bach - Open files using relative paths for better readability in e.g. :ls. (Thanks to Bernhard Walle)
- Warn when fuzzyfinder_textmate is detected -- this plugin interacts poorly with LustyExplorer. (Thanks to Charl Matthee)
- Fix a minor highlighting bug.
lusty-explorer.vim 2.1.0 2009-06-10 7.0 Stephen Bach - Significant performance increase for directories with many files.
- Lower memory usage in directory memoization.
lusty-explorer.vim 2.0 2009-05-28 7.0 Stephen Bach The vast majority of these changes were contributed by Matt Tolton:
- Flex/fuzzy matching using the LiquidMetal algorithm:
  <http://github.com/rmm5t/liquidmetal/tree/master>;
- Buffer explorer: paths are hidden except to differentiate buffers of
  the same basename.
- New option:
    g:LustyExplorerAlwaysShowDotFiles
- Filesystem explorer: directory contents are memoized
- New keys for the prompt:
    C-t: open selected entry in new tab
    C-n: select the next entry
    C-p: select the previous entry
    C-w: move one directory upward at prompt
    C-u: clear the prompt
- New keys specific to the filesystem explorer:
    C-r: refresh directory contents
    C-a: open all files in the current list
    C-e: create a new file with the given name
- Cursor will "hide" correctly when a filename includes a two-column
  character.
- GetLatestVimScripts compatibility.
- Faster implentation of columnize().  Thanks to Sami Samhuri.
- Fixed a declaration typo.  Thanks to Simo Salminen.
lusty-explorer.vim 1.4.3 2009-02-02 7.0 Stephen Bach - Definitively fix the bug of overwritten delete registers.
- Respect the 'wildignore' variable; g:LustyExplorerFileMasks still works, but is deprecated.
lusty-explorer.vim 1.4.2 2008-08-25 7.0 Stephen Bach Restore the unnamed (default) register after using the explorer.  Thanks to cho45.
lusty-explorer.vim 1.4.1 2007-11-04 7.0 Stephen Bach - When the explorer is cancelled, reset the previous buffer (b#) to the actual previous buffer.
- Fixed error when launching the explorer while editing a remote file through netrw.  Thanks to Bernhard Walle.
lusty-explorer.vim 1.4.0 2007-11-01 7.0 Stephen Bach - Filesystem explorer: added g:LustyExplorerFileMasks variable to hide certain types of files.
- Filesystem explorer: speed up for directories with many files.
- Added truncation indicator if there are more entries than can be displayed.
lusty-explorer.vim 1.3.1 2007-10-26 7.0 Stephen Bach Fixed memoization bug for recursing into directories with mixed case names.
lusty-explorer.vim 1.3.0 2007-10-25 7.0 Stephen Bach - Filesystem explorer now does variable ($FOO) expansion.
- Added some memoization for noticeable speed up on older hardware.
lusty-explorer.vim 1.2.6 2007-10-13 7.0 Stephen Bach Added compatibility for Windows, finally.  Please let me know if you have any problems.
lusty-explorer.vim 1.2.5 2007-10-05 7.0 Stephen Bach - Now deals correctly with unnamed buffers instead of spitting out an error.  Thanks to Rajendra Badapanda.
- Buffer explorer will now launch even if only a single buffer is open.
lusty-explorer.vim 1.2.4 2007-09-18 7.0 Stephen Bach - Pressing <TAB> will now open a buffer/file if it is the only entry.
- If <ENTER> is pressed when there are no matching entries, a new buffer will be created with the given name.
- <C-g> now behaves like <C-c> and <ESC>.
lusty-explorer.vim 1.2.3 2007-06-21 7.0 Stephen Bach Added g:LustyExplorerSuppressRubyWarning option for situations where the same Vim configuration is used over multiple machines, not all of which have Ruby installed.  Thanks to Bernhard Walle.
lusty-explorer.vim 1.2.2 2007-06-18 7.0 Stephen Bach Fixed filename truncation when sidescroll/sidescrolloff have been set.  Thanks to Bernhard Walle.
lusty-explorer.vim 1.2.1 2007-06-05 7.0 Stephen Bach - <C-h> now interpreted as backspace.  Thanks to Yuichi Tateno.
- Much improved handling of files/directories with special characters in their names.
lusty-explorer.vim 1.2.0 2007-06-02 7.0 Stephen Bach - Added :FilesystemExplorerFromHere command.  Thanks to Sergey Popov.
- Added highlighting to the prompt and cursor.
- Buffer explorer: added [+] indicator to dirty buffers.
- Many small fixes.
lusty-explorer.vim 1.1.2 2007-05-30 7.0 Stephen Bach - Filesystem explorer now does tilde (~) expansion.
- Fixed some Vim error messages for special characters in filenames/input.
- Internal refactoring.
lusty-explorer.vim 1.1.1 2007-05-17 7.0 Stephen Bach Recursing into directories with capital letters in their names using case-insensitive matching has been fixed.  Thanks to Raimon Grau.
lusty-explorer.vim 1.1.0 2007-05-15 7.0 Stephen Bach - Renamed from DynamicExplorer.
- Buffer explorer now orders by Most Recently Used.
- Buffer explorer now matches anywhere in name.
- Filesystem explorer highlights opened files.
dynamic-explorer.vim 1.0.1 2007-05-12 7.0 Stephen Bach - Allow opening files with spaces in their names.
- Fixed listing bug where the whole window width sometimes wasn't being utilized.
- The cursor is now moved off into a more inconspicuous corner.
- Syntax highlighting improved for listings with spaces or parens.
- Internal refactoring.
dynamic-explorer.vim 1.0 2007-05-08 7.0 Stephen Bach Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo