Permalink
Browse files

Version 0.4

- "Delete file" will ask whether to delete a corresponding buffer too.
- <c-w> ... View file in original window
- Disabled <c-o> Open dir
- Require tlib >= 0.13
- When renaming a file that's loaded, rename also the buffer.
- You can filter the list of selected files via setting the
[wbg]:tselectfiles_filter_rx variable.
- Renamed g:tselectfiles_no_cache to g:tselectfiles_no_cache_rx
- [bg]:tselectfiles_use_cache and [bg]:tselectfiles_no_cache_rx can now
also be set per buffer.
- Renamed some variables from tselectfile_* to tselectfiles_*.
- Can be "suspended" (i.e. you can switch back to the orignal window)
  • Loading branch information...
1 parent c09c193 commit a3dae2c54935afe0009acee2c369de8344695ef4 @tomtom tomtom committed with Sep 11, 2007
Showing with 219 additions and 80 deletions.
  1. +98 −0 doc/tselectfiles.txt
  2. +121 −80 plugin/tselectfiles.vim
View
@@ -0,0 +1,98 @@
+*tselectfiles.txt* A simplicistic files selector/browser (sort of)
+ Author: Thomas Link, micathom at gmail com
+
+
+This plugin provides a simple file browser. It is not a full blown
+explorer but can be nevertheless be useful for quickly selecting a few
+files or renaming them.
+
+As the plugin does some caching in the background, the filelist is only
+generated once for each path or when called with [!]. In conjuncture
+with the use of the [wbg]:tselectfile_filter_rx variable, this provides
+for use as a simple ad-hoc project manager.
+
+EXAMPLE:
+When opening a file under "~/vimfiles", I set b:tselectfiles_dir
+to all the relevant directories under "~/vimfiles" and then set
+b:tselectfile_filter_rx = expand('%:t:r'). Thus, when I open
+"~/vimfiles/plugin/foo.vim", b:tselectfile_filter_rx is "foo", and
+:TSelectFiles shows all the files under "~/vimfiles" matching "foo".
+
+Features:
+ - list files, dynamically select files matching a pattern
+ - open files
+ - preview files
+ - rename/move files
+ - batch rename/move files (using a regular expression)
+ - copy files
+ - delete files
+ - show file info
+
+
+-----------------------------------------------------------------------
+Install~
+
+Edit the vba file and type: >
+
+ :so %
+
+See :help vimball for details. If you have difficulties, please make
+sure, you have the current version of vimball (vimscript #1502)
+installed.
+
+This script requires tlib (vimscript #1863) to be installed.
+
+Suggested maps (to be set in ~/.vimrc): >
+ noremap <m-f> :TSelectFiles<cr>
+
+
+------------------------------------------------------------------------
+Contents~
+
+ plugin/tselectfiles.vim
+ g:tselectfiles_use_cache ..... |g:tselectfiles_use_cache|
+ g:tselectfiles_no_cache_rx ... |g:tselectfiles_no_cache_rx|
+ g:tselectfiles_filter_rx ..... |g:tselectfiles_filter_rx|
+ TSelectFiles ................. |TSelectFiles()|
+ :TSelectFiles ................ |:TSelectFiles|
+ :TSelectFilesInSubdirs ....... |:TSelectFilesInSubdirs|
+
+
+------------------------------------------------------------------------
+plugin/tselectfiles.vim~
+
+ *g:tselectfiles_use_cache*
+g:tselectfiles_use_cache (default: 1)
+ Whether to cache directory listings (in memory). (per buffer, global)
+ If 0, disable the use of cached file listings all together.
+
+ *g:tselectfiles_no_cache_rx*
+g:tselectfiles_no_cache_rx (default: '')
+ Don't use the cache for directories matching this rx. (per buffer,
+ global)
+
+ *g:tselectfiles_filter_rx*
+g:tselectfiles_filter_rx (default: '')
+ Retain only files matching this rx. (per window, per buffer, global)
+
+ *TSelectFiles()*
+TSelectFiles(mode, filter)
+
+ *:TSelectFiles*
+:TSelectFiles[!] [DIR]
+ Open/delete/rename files in the current directory.
+ A [!] forces the commands to rescan the directory. Otherwise a cached
+ value will be used if available.
+ You can also type <c-r> to force rescanning a directory, which could
+ be necessary if the file system were changed (e.g. by creating a new
+ file or by some external command)
+
+ *:TSelectFilesInSubdirs*
+:TSelectFilesInSubdirs
+ Recursively show all files in the current directory and subdirectories
+ (don't show favourites and ".."); don't use this command when you're
+ at /.
+ A [!] forces the commands to rescan the directory. Otherwise a cached
+ value will be used if available.
+
+
Oops, something went wrong.

0 comments on commit a3dae2c

Please sign in to comment.