Commit Graph

206 Commits

Author SHA1 Message Date
Marco Hinz
f53c180c61 cosmetic change in token regex 2013-04-02 16:05:52 +02:00
Marco Hinz
0682288d29 change placeholder sign text 2013-04-02 16:01:52 +02:00
Marco Hinz
c5683b1b3b prettify debug output 2013-04-02 15:35:52 +02:00
Marco Hinz
deb89247c6 change license 2013-04-02 09:36:42 +02:00
Marco Hinz
6c0ee3d04e remove check for help filetype 2013-04-01 18:20:36 +02:00
Marco Hinz
3c14f8b34b make signmode buffer-specific 2013-04-01 18:13:17 +02:00
Marco Hinz
a285f0f817 aggregate conditions 2013-04-01 18:11:27 +02:00
Marco Hinz
884faa1fef exists() instead of has() for checking shellslash
Closes #15.
2013-03-27 17:38:33 +01:00
Marco Hinz
0e3e9e9197 use 'filter' instead of 'if' 2013-03-27 11:30:36 +01:00
Marco Hinz
1de08cbd9b using proper shellslash 2013-03-27 01:25:29 +01:00
Marco Hinz
cd26e1c7b3 remove 'diff' dependency
Next step towards Windows support.

References #11.
2013-03-27 00:44:52 +01:00
Marco Hinz
ae2f0bffdc remove 'grep' dependency
First step towards proper Windows support.
2013-03-26 23:41:14 +01:00
Marco Hinz
866f3d945d remove level 2 folds 2013-03-26 23:25:56 +01:00
Marco Hinz
c6dfab4a9e fix 's:path undefined' errors
Closes #14.
2013-03-26 23:09:13 +01:00
Marco Hinz
5383932dca use shellescape() to escape arguments to system()
Closes #15.
2013-03-26 22:10:11 +01:00
Marco Hinz
2185073d1c fix mixed up mappings for jumping (]c and c[)
Closes #13.
2013-03-26 18:51:49 +01:00
Marco Hinz
3a031f661a new additional mappings for jumping: [c and ]c 2013-03-26 14:25:45 +01:00
Marco Hinz
9d18304fee proper escaping of filepaths 2013-03-26 13:58:58 +01:00
Marco Hinz
30c5a76ea9 adapt repo detect funcs to look like the vcs one 2013-03-26 13:57:57 +01:00
Marco Hinz
b7ffe16d0f merge pull request #10 from rtwo 2013-03-26 13:17:26 +01:00
Marco Hinz
d49b28d42f polish pull request #10
References 7d305d7.
2013-03-26 13:16:19 +01:00
Marco Hinz
7331e29696 silence mappings 2013-03-26 11:38:43 +01:00
Martin Hoch hoch@fidion.de
7d305d7e6d Solved absolute path Problem for cvs.
Always cd into the files directory and call cvs diff relatively.
2013-03-26 11:09:32 +01:00
Marco Hinz
a885a536bd change of exception list handling
"Exception" is quite an overloaded term, thus exception lists were
renamed to skip lists; even 'skip dicts', since their type changed, too.
2013-03-26 10:34:29 +01:00
Marco Hinz
8eb00a2d08 new option: configure which VCS to check for 2013-03-25 16:12:31 +01:00
Marco Hinz
0b151a747c set s:path in start() 2013-03-19 22:34:31 +01:00
Marco Hinz
89ab458cb8 save calls concerning filename resolving 2013-03-18 01:51:19 +01:00
Marco Hinz
96f8217904 exe -> execute 2013-03-18 01:40:03 +01:00
Marco Hinz
fb0a3b3401 handle spaces in filepaths
Thanks for reporting, Robin Munn.

Closes #8.
2013-03-18 01:37:14 +01:00
Marco Hinz
77dbf0e7eb Revert "handle spaces in filepaths"
I apologize for the previous hasty commit.

This reverts commit 06a2a201dd.

References #8.
2013-03-18 00:34:26 +01:00
Marco Hinz
06a2a201dd handle spaces in filepaths
Thanks for reporting, Robin Munn.

Closes #8.
2013-03-17 23:42:45 +01:00
Marco Hinz
670ac81cbf fix typo 2013-03-17 01:05:02 +01:00
Marco Hinz
a47cb357b4 add option for inheritating colors from LineNr 2013-03-17 00:42:11 +01:00
Marco Hinz
96d8bc1777 change autocmds 2013-03-16 18:12:33 +01:00
Marco Hinz
c7769de396 strip color from grep output 2013-03-16 17:29:25 +01:00
Marco Hinz
4d969afd4e fix sign overwriting 2013-03-16 02:19:38 +01:00
Marco Hinz
99833f8b4a add RCS support 2013-03-15 13:08:56 +01:00
Marco Hinz
34122c27f1 prevent sign flickering #2 2013-03-15 12:34:19 +01:00
Marco Hinz
fd5e0b25ec don't lose sign colors at split 2013-03-15 01:27:05 +01:00
Marco Hinz
2b05c454de small cosmetic changes 2013-03-13 19:23:47 +01:00
Nick Andryshak
2ec767f14c Added missing quote (lol) 2013-03-13 14:08:28 -04:00
Nick Andryshak
987ff184d1 Fixed FocusGained bug in Windows Gvim 2013-03-13 14:06:52 -04:00
Marco Hinz
2d5c102754 handle non-English locales 2013-03-13 16:38:37 +01:00
Marco Hinz
c57a6a2e5b make jump commands take a count 2013-03-13 16:34:55 +01:00
Marco Hinz
335d5c92dd prevent column flickering during sign updating 2013-03-13 14:30:42 +01:00
Marco Hinz
f7745efc84 fix sign overwriting bug 2013-03-13 13:44:37 +01:00
Marco Hinz
af30da93f2 remember repo type after first detection 2013-03-13 01:37:46 +01:00
Marco Hinz
a0780696b9 only process files that actually exist on disk
Closed #4.
2013-03-12 19:06:17 +01:00
Marco Hinz
2297ea4250 Revert "don't process fugitive files"
This reverts commit 746e21f750.
2013-03-12 19:03:51 +01:00
Marco Hinz
746e21f750 don't process fugitive files
Closes #4.
2013-03-12 17:32:00 +01:00
Marco Hinz
9e09c80fef update signs on CursorHold or CursorHoldI
I added 2 new options that are disabled by default. Sign updating can
now be triggered after 'updatetime' miliseconds without keypresses in
either normal or insert mode:

For enabling:

let g:signify_cursorhold_normal = 1
let g:signify_cursorhold_insert = 1
2013-03-12 12:25:22 +01:00
Marco Hinz
b82b007c9c new sign for changed && deleted lines 2013-03-12 01:09:46 +01:00
Marco Hinz
0e702006c8 handle special case of deleted first line 2013-03-12 00:44:51 +01:00
Marco Hinz
2a6e28368d fix jumping bug
If there was an entry in s:sy and these changes were removed again, then
the sign IDs were deleted, but not the jump ID.

Obviously you can't sign jump to a non-existing sign.

Fixed.
2013-03-11 23:46:34 +01:00
Marco Hinz
438c778d3b sw=2 -> sw=4 2013-03-11 23:14:58 +01:00
Marco Hinz
7795027156 add -- for seperating options from filenames 2013-03-11 18:59:29 +01:00
Marco Hinz
aefd88057e simplify git detection 2013-03-11 18:58:57 +01:00
Marco Hinz
8cf6c61795 add support for darcs repos 2013-03-11 18:49:17 +01:00
Marco Hinz
f434cc7f4e remove SignifyDebugID() 2013-03-11 02:04:48 +01:00
Marco Hinz
fa4c921557 do not set colors once again at every buffer switch
Now colors only get set at plugin loading and when :colo is used.
2013-03-11 02:01:00 +01:00
Marco Hinz
83644eb3dc disable CVS detection by default
If you're working in a non-CVS repo and there are no changes, the repo
detection tries all supported repos in a certain order with CVS being
the last. If $CVSROOT is set that can take quite some time although
we're not even working in a CVS repo, so it's disabled by default now.

A new option for enabling CVS was added:

let g:signify_enable_cvs = 1
2013-03-11 00:47:05 +01:00
Marco Hinz
d42f629672 correct error checking of shell output 2013-03-11 00:00:12 +01:00
Marco Hinz
87d66e1231 remove a sad and lonely endif 2013-03-10 19:17:46 +01:00
Marco Hinz
e567aad11e make error messages less distracting 2013-03-10 18:22:18 +01:00
Marco Hinz
20f072390d handling of jumping if no changes are available 2013-03-10 17:41:46 +01:00
Marco Hinz
afa18331ed inherit bg color from SignColumn instead LineNr 2013-03-10 10:57:51 +01:00
Marco Hinz
49c8a8fc2a add sign color hl group linking 2013-03-10 10:17:53 +01:00
Marco Hinz
ecf4bed2f5 remove useless line 2013-03-10 09:47:21 +01:00
Marco Hinz
01bfe2865b fix git repo detecting 2013-03-10 00:07:55 +01:00
Marco Hinz
f38e8613f2 get git repo root directory 2013-03-09 11:43:31 +01:00
Marco Hinz
37c745c3ef add symbolic link handling 2013-03-09 11:00:30 +01:00
Marco Hinz
17667befff renaming some identifiers 2013-03-08 17:19:34 +01:00
Marco Hinz
80afa7ba78 proper plugin toggling 2013-03-08 16:22:58 +01:00
Marco Hinz
2b93eadd25 only toggle plugin if it makes sense 2013-03-08 13:33:46 +01:00
Marco Hinz
90dd8ff381 fix sign overwriting bug 2013-03-08 11:41:05 +01:00
Marco Hinz
51f5139ff5 better handling of calls to s:remove_signs()
Improving by removing!

Closes #2.
2013-03-08 09:54:52 +01:00
Marco Hinz
24d8a37b58 proper defaults value for new active buffers 2013-03-08 09:23:28 +01:00
Marco Hinz
eddd0cab80 design change of main data structure
s:active_buffers was renamed to s:sy. It holds all active buffers
(buffers that are associated with signify) and their metadata like jump
IDs.

It's a big change but it probably makes future improvements much easier.

Closes issue #2.
2013-03-08 09:11:18 +01:00
Marco Hinz
5cd00ffd33 check for signs feature 2013-03-08 07:16:33 +01:00
Marco Hinz
f8731dc7d3 change structure of s:active_buffers 2013-03-07 16:54:20 +01:00
Marco Hinz
a9d7fa8755 use 3-clause BSD license 2013-03-07 13:12:01 +01:00
Marco Hinz
a283312be6 add sign preserving option 2013-03-07 12:56:25 +01:00
Marco Hinz
219b5ac052 add hunk case: lines added && changed 2013-03-07 07:59:06 +01:00
Marco Hinz
0eb42b7bb5 add hunk case: lines were changed && deleted 2013-03-07 07:50:14 +01:00
Marco Hinz
9a7656c78c change the default signs
If you liked the old signs more, reset them using:

    let g:signify_sign_add    = '>>'
    let g:signify_sign_delete = '<<'
    let g:signify_sign_change = '!!'
2013-03-07 06:42:23 +01:00
Marco Hinz
6c7fb79750 update signify when gvim regains focus 2013-03-07 03:58:34 +01:00
Marco Hinz
58148c2fb7 make line-highlight colors configurable 2013-03-07 03:41:18 +01:00
Marco Hinz
e6be2c7d3b add support for cvs 2013-03-07 03:28:21 +01:00
Marco Hinz
9ef693960f add support for subversion 2013-03-07 02:47:42 +01:00
Marco Hinz
9cea1eecf6 add configurable exception lists 2013-03-07 02:35:03 +01:00
Marco Hinz
8b3dfd0937 add support for bazaar 2013-03-07 01:56:31 +01:00
Marco Hinz
506c2e2cbe add support for mercurial 2013-03-07 01:40:30 +01:00
Marco Hinz
18e771dab4 avoid getting the buffer name several times 2013-03-07 01:10:51 +01:00
Marco Hinz
e7338cd155 add s:remove_from_buffer_list()
This functions checks if a given key actually exists in our
s:active_buffers dictionary, because there might be buffers that weren't
added to it in the first place.

At the moment this is the case for Vim's help pages and buffers that
aren't associated with any filename.

Thanks for reporting, Jeremy Mack.

Closes #1.
2013-03-07 01:02:23 +01:00
Marco Hinz
9187b70098 add little debug function 2013-03-07 00:15:58 +01:00
Marco Hinz
d9e900e45d sy should be unobtrusive; do not print messages 2013-03-06 23:38:19 +01:00
Marco Hinz
38d442be3e much more configurable colors 2013-03-06 13:15:54 +01:00
Marco Hinz
c2b11e4711 rename 'change' to 'hunk' in the appropriate places 2013-03-06 12:32:02 +01:00
Marco Hinz
2f615f3067 add proper jump handling 2013-03-06 12:19:38 +01:00
Marco Hinz
a7d9b85ae2 check that synIDattr() doesn't return -1 2013-03-06 11:46:33 +01:00
Marco Hinz
70cf833f49 add empty line 2013-03-06 01:22:51 +01:00
Marco Hinz
bb16476811 fix "removed lines" bug
The signs for removed lines were set in the wrong manner, because I used
the wrong part from the diff file. It's working correct now.
2013-03-06 00:57:49 +01:00
Marco Hinz
942600a2ce fix color bug
Fixes a bug that happened, when an active buffer was closed and
reopened. Calls s:set_colors() in this case.
2013-03-05 23:42:56 +01:00
Marco Hinz
fbde8b57d9 add sanity check for empty buffers 2013-03-05 23:21:13 +01:00
Marco Hinz
6280b89978 unify variable naming 2013-03-05 23:09:08 +01:00
Marco Hinz
6686912e8c rename gitify.vim to signify.vim 2013-03-05 20:08:41 +01:00