- File commands are auto-declared instead of by hand. - File command completion is now a single multi-purpose func. - Adds the T & R command modifiers (open file as :tab or :r) - Adds :Cless, :Csass, some stub commands. - More comments and cleaner folds. - Misc utility funcs.
They weren't getting recognized as part of the app before.
No guarantees that they work yet...
Fixes a bug when handling files that have more than one underscore. I didn't originally consider that models and controller names can be composed of multiple words joined by underscores. Ex. time_period_histories_controller.php These weren't getting evaluated correctly, leading to the plugin trying to open time.php as the model for the above controller.
A few too many changes for one commit: -- indicator and startup() command -- lazy associate() function -- :Cgrep -- :Clayout -- better app detection -- checks for Cake-specific files
:CLdoc is the same as :Cdoc but uses Lynx. Not thoroughly tested, but seems to work so far (provided of course, that Lynx is installed). The README includes a few more examples and is updated to reflect new features and commands.
Moves common functionality in the tab comp functions to a helper function. Fixes the :Cview tab completion, so that completions are show for [controller]/[view] syntax--though not until the '/' character is used. Gets rid of camelCase for all functions names and replaces them with under_scores--which I think looks cleaner in vim-script.
This is probably one of a few commits that will address this. Currently, entering filenames that include extensions, or entering xyz_controller is not allowed. This is likely to change. The tab completion is still a bit shaky, but should work fine in most cases.
The :Cview command now accepts extended syntax and is a little smarter than before. It now will open the current function's view when working in a controller--by default. Should improve Windows support, although it's still sketchy. I'm going to address that in the next commit. Also makes some minor structural changes.
-Adds :Ccss, :Cjs, and :Cdoc functions -Checks OS to set a directory separator constant. -Updates documentation.
This commit adds most of the functionality for the initial release: --plugin automatically identifies cake app environment. --pluralize & singularize functions with corresponding isPlural and isSingular methods. --associate function generates a dictionary of associated MVC objects. --new README.md with installation and getting started. --lots more...