NAME
App::Codit::Plugins::FileBrowser - plugin for App::Codit
DESCRIPTION
Integrate Git into Codit.
DETAILS
This plugin will only load if the git executable is installed.
It adds a document list to the navigation panel with the git icon.
When a file is opened it will check if it belongs to a git repository. If it does it will add the repository to the top menu list. If you select a repository from that list all documents in that repository are loaded in the file list. Selecting a document in the list will open it if it is not yet opened and select it.
When a file is closed it will check if there are any remaining documents in it's repository are opened. If none are open it will unselect the repository and remove it from the top menu list.
It has a context menu that pops with the right mouse button. You can quickly open all files in the repository, or remove the current selected file from the repository. And you can collapse and expand the list.
COMMANDS
Thi Git plugin adds the following commands to Codit.
- git_collapse
-
Collapses the git document tree and only opens the current selected document, if it is in the current selected repository.
- git_command $project, $commandstring
-
Executes the git command in $commandstring for repository $project.
- git_expand
-
Epxands the git document tree.
- git_open_all
-
Opens all files in the current selected repository.
- git_remove ?$name?
-
If $name is not specified, $name is the selected document.
Closes $name, Removes it from the current selected repository and deletes the file from disk. Use with care.
- git_remove_dialog
-
Same as git_remove but first asks nicely if you really want to do this.
LICENSE
Same as Perl.
AUTHOR
Hans Jeuken (hanje at cpan dot org)
BUGS AND CAVEATS
If you find any bugs, please contact the author.