Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2014-08-25 01:17:56 -04:00
|
|
|
TAGS_FILE="${HOME}/.vim/tags"
|
|
|
|
CTAGS_CMD="ctags --fields=+l --c-kinds=+p --c++-kinds=+p -R -f ${TAGS_FILE}"
|
|
|
|
|
|
|
|
function generate_tags(){
|
|
|
|
echo -e "\nRecursively generating tags for the following paths:"
|
|
|
|
for path in "$@"; do
|
|
|
|
echo " ${path}"
|
|
|
|
done
|
|
|
|
RESULT=$($CTAGS_CMD "$@" >/dev/null 2>&1) && echo -e "Done!\n" || echo -e "Failed! Look at ${TAGS_FILE}.log for details.\n"
|
|
|
|
if [[ -n "$RESULT" ]]; then
|
|
|
|
echo "$RESULT" >> "${TAGS_FILE}.log"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ $(type -P ctags) ]]; then
|
|
|
|
[[ -n "$1" ]] && generate_tags "$@" || generate_tags "$PWD"
|
|
|
|
else
|
|
|
|
echo 'Error: cannot find the ctags binary in $PATH'
|
|
|
|
exit 1
|
|
|
|
fi
|