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
|
|
|
|
|
2019-04-09 13:53:26 -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() {
|
|
|
|
printf '%s\n' 'Recursively generating tags for the following paths:'
|
2014-08-25 01:17:56 -04:00
|
|
|
|
|
|
|
for path in "$@"; do
|
2019-04-09 13:53:26 -04:00
|
|
|
printf '%s\n' " $path"
|
2014-08-25 01:17:56 -04:00
|
|
|
done
|
2019-04-09 13:53:26 -04:00
|
|
|
|
|
|
|
if $ctags_cmd "$@" >/dev/null 2>&1; then
|
|
|
|
printf '%s\n' 'Done!'
|
|
|
|
else
|
|
|
|
printf '%s\n' 'Failed!'
|
|
|
|
exit 1
|
2014-08-25 01:17:56 -04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-04-09 13:53:26 -04:00
|
|
|
if command -v ctags >/dev/null; then
|
2014-08-25 01:17:56 -04:00
|
|
|
[[ -n "$1" ]] && generate_tags "$@" || generate_tags "$PWD"
|
|
|
|
else
|
2019-04-09 13:53:26 -04:00
|
|
|
printf '%s\n' 'Error: cannot find the ctags binary in $PATH'
|
2014-08-25 01:17:56 -04:00
|
|
|
exit 1
|
|
|
|
fi
|