CreateMenuPath.vim : Create a menu that mirrors a directory tree
| script karma |
Rating 24/17,
Downloaded by 4550 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Christian J. Robinson |
| |
| script type |
| utility |
| |
| description |
This file provides a function to create a menu that mirrors a directory tree.
Usage:
CreateMenuPath({path} [, {configuration dictionary options}])
Examples:
:call CreateMenuPath('~') " Creates a menu of your home directory.
:call CreateMenuPath('~/public_html', {'menu': 'Files.Web Page', 'priority': '600.100', 'ignore_pats': ['\c.\(gif\|jpe\=g\|png\|ico\|bmp\|tiff\=\)$'], 'recurse_limit': 10) " "Files.Web Page" menu, priority 600.100, ignoring some image files, maximum depth of 10 subdirectories.
A default filename ignore pattern is provided which ignores a number of image, audio and archive files, but it's incomplete.
The global variable "CMP_Recurse_Limit" can be set to specify the maximum sub-directory depth to scan. Set it to 0 for infinite recursion (bad idea, likely to fail). Set it to 1 to scan only the specified directory.
|
| |
| install details |
| Either :source it or put it in your plugin directory. |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.136.142.2
|