Commit Graph

152 Commits

Author SHA1 Message Date
Marco Hinz
94d6050010 Doc: add g:signify_sign_show_count
References #125.
2014-10-07 23:04:13 +02:00
Benjamin Thomas
bdc0c5eb15 Add finer grained control over signs and highlights
I wanted to be able to customize signify in a way that wasn't possible
with the current set of options.  This commit adds 2 new options and 2
new highlight groups.

Specifically, we can now

1.  differentiate between changes, deletes AND signs that have both
    with the `signify_sign_changedelete` option.
2.  disable showing the number of deleted lines in the sign column with
    the `signify_sign_delete_use_count` option.
3.  highlight lines with changes and deletes specifically with the
    `SignifySignChangeDelete` highlight group.
4.  highlight the first line differently with the
    `SignifySignDeleteFirstLine` highlight group.

All of these default to existing settings/highlight groups, so
everything should continue working the way it does now.

--------------------------------------------------------------------------------

For those that are curious, I wanted to configure signify to show no
symbols in the sign column, and to just use the highlight groups to give
me all the information I needed.  I am able to achieve that now with the
following settings and the Solarized colorscheme:

let g:signify_sign_add = "\<Char-0xa0>\<Char-0xa0>"
let g:signify_sign_change = "\<Char-0xa0>\<Char-0xa0>"
let g:signify_sign_changedelete = "__"
let g:signify_sign_delete = "__"
let g:signify_sign_delete_first_line = "‾‾"
let g:signify_sign_delete_use_count = 0

hi SignifySignDelete term=bold,underline cterm=bold,underline ctermfg=1 ctermbg=12
hi SignifySignDeleteFirstLine ctermfg=1 ctermbg=12
hi SignifySignChangeDelete term=bold,underline cterm=bold,underline ctermfg=1 ctermbg=3

You can see it in action here:

https://twitter.com/_bentomas/status/486266117204090880
2014-10-07 23:02:17 +02:00
Marco Hinz
9186a58ca7 Doc: add remark about ]c and [c 2014-10-06 01:32:10 +02:00
Marco Hinz
ecd0bb0dbc Introduce hunk text object 2014-10-06 01:17:57 +02:00
Marco Hinz
fe3bafce11 Introduce smarter sign management 2014-10-04 15:56:10 +02:00
Marco Hinz
732de1f8f2 Doc: change tags to common conventions 2014-09-11 16:49:16 +02:00
Marco Hinz
706512025c Doc: add possible values for g:signify_vcs_list
References #132.
2014-09-11 16:35:35 +02:00
James McCoy
96ed0cca85 doc/signify.txt: Add perforce to supported VCS 2014-06-03 11:40:21 -04:00
Marco Hinz
1789155bf3 Doc: "update on focusgained" doesn't write to disk
References #113.
2014-01-20 14:50:09 +01:00
James McCoy
159b171e4a Use _> for more than 99 deletes lines (again)
Closes #110.
2014-01-04 09:40:10 +01:00
Marco Hinz
3ac59ab594 Doc: correct delete signs explanation 2014-01-01 23:40:57 +01:00
Marco Hinz
39d5614596 Doc: typo 2013-12-19 12:05:32 +01:00
haya14busa
25d338a5a3 Doc: fix typo
Closes #100.
2013-12-03 17:29:43 +01:00
Marco Hinz
56eab9811c Doc: add note about diff tool to vcs_list option
References #83.
2013-11-03 16:08:21 +01:00
Marco Hinz
ec4d88eb1c Change default value for sign overwriting
References #81.
2013-10-30 12:16:07 +01:00
Marco Hinz
9b32ba5a97 Doc: better description of sign overwriting
References #81.
2013-10-30 12:13:47 +01:00
Marco Hinz
ce6d03d805 Doc: add some highlights 2013-10-02 14:08:34 +02:00
Marco Hinz
acfc0cbe69 Doc: refactoring 2013-10-02 13:57:31 +02:00
Marco Hinz
9eedb00a04 Doc: only check installed VCS 2013-09-12 00:31:09 +02:00
Marco Hinz
3a8fa3fba8 Doc: perf penalty with sign overwriting 2013-09-06 15:51:57 +02:00
Marco Hinz
b53043de80 New option: signify_update_on_focusgained 2013-08-13 08:09:02 +02:00
Marco Hinz
78a96c4b49 Minor syntactic style changes 2013-08-07 15:46:37 +02:00
killphi
43ca708c99 Add variable option to pass to VCS diff command 2013-08-07 12:59:26 +02:00
Marco Hinz
9ffa0d3690 Doc: changed line concerning Twitter 2013-08-04 19:05:16 +02:00
Marco Hinz
276fdbcc69 Use MIT license
Tom Preston-Werner's keynote at OSCON 2013 convinced me that the MIT
license is the proper license for this plugin.
2013-08-02 12:43:22 +02:00
Marco Hinz
4683703ad8 Docs: add perforce 2013-07-30 01:27:05 +02:00
Marco Hinz
2d0653d61b Docs: add Twitter handle 2013-07-22 20:39:35 +02:00
Marco Hinz
9733f6cfac Improve jumping once again
References #4.
2013-07-22 00:21:34 +02:00
James McCoy
e9747e791a Add support for accurev 2013-07-10 16:08:11 -04:00
Marco Hinz
3c5d45036c Docs: use full sentences 2013-07-09 07:04:25 +02:00
Marco Hinz
d5f7bd5f02 Docs: "amount" -> "number" 2013-07-09 06:48:26 +02:00
Marco Hinz
d6c1fd78ab Doc: update 'local additions' header 2013-07-08 20:54:42 +02:00
Marco Hinz
60105c6779 Docs: simplify sign explanation 2013-07-08 12:06:54 +02:00
Marco Hinz
282262cba6 New option: g:signify_disable_by_default
You can choose to disable Sy by default now. You can enable it anytime
via :SignifyToggle (or the default mapping: <leader>gt).

Closes #34.
2013-07-04 12:28:18 +02:00
Marco Hinz
3d2d7afcf6 Docs: update hunk jumping 2013-07-04 11:52:28 +02:00
James McCoy
93006d94a3 Make "jump to hunk" behave like the builtin ]c/[c
Instead of using the sign id as the primary piece of data, store
information on a per-hunk granularity.  A hunk has a start/end line as
well as a set of sign ids that have been placed within those lines.

This makes moving to the start of the next/previous hunk, as per the
behavior of the standard `]c`/`[c` bindings, pretty straight forward --
a simple filter to find relevant hunks, and then grab the first sign id.
2013-07-04 01:49:08 -04:00
Marco Hinz
a268d48655 Add showcolors.bash 2013-07-03 17:23:38 +02:00
Marco Hinz
039f361ff7 Heavily reduce compexity by removing color options
This will be the first backwards incompatible commit for Sy for the sake
of simplicity.

For more information see:  :help signify-colors
2013-07-03 17:01:51 +02:00
Marco Hinz
32f70cac6d Merge branch 'ext-signs' 2013-06-24 11:27:53 +02:00
Marco Hinz
7b42403429 Doc: indicate default values 2013-06-22 15:11:25 +02:00
Marco Hinz
30a66c9de3 Doc: typo 2013-06-22 13:57:34 +02:00
Marco Hinz
413dd15e4b Docs: explain new delete signs 2013-06-07 11:37:21 +02:00
Marco Hinz
e1cbc2082e New option: g:signify_difftool
Some VCS rely on an external diff tool, because they don't support the
-U0 flag natively. Most of the time that's the standard 'diff' utility.

But fritzophrenic was reporting that even a GNU diff won't always be
installed as 'diff', but e.g. as 'gnudiff' instead.

You can set the external diff tool now.

Closes #29.
2013-06-07 01:03:34 +02:00
Marco Hinz
068c0e894d Write buffer when 'update_on_bufenter' is enabled
References #28.
2013-06-06 18:03:02 +02:00
Marco Hinz
24840c28f3 Disable 'update_on_bufenter' per default 2013-06-06 12:39:24 +02:00
Marco Hinz
22b1cf491f make HL class for changed_delete configurable
Closes #25.
2013-04-25 14:37:47 +02:00
Marco Hinz
5086e240db use NONE instead of none 2013-04-18 14:01:38 +02:00
Marco Hinz
c4955656ad make font weight configurable
People using themes for their terminal emulators that do a lot of
voodoo, could experience sign color problems because of the font being
bold by default.

Thus a new variable was introduced: g:signify_sign_weight.

Fixes #24.
2013-04-18 06:59:26 +02:00
Marco Hinz
eaf722e5bf add support for fossil 2013-04-16 11:37:57 +02:00
Marco Hinz
72393c1ee6 doc: clarify on the importance of the vcs_list 2013-04-16 09:30:10 +02:00
Marco Hinz
eb7bcb8c48 docs: add special case of first line deletion 2013-04-12 11:56:23 +02:00
Marco Hinz
7ac051b258 doc: update name of contributor 2013-04-09 06:38:47 +02:00
Marco Hinz
98e324a281 fix sign overwriting regex
Signs (from Syntastic in this case) were overwritten, although
g:signify_sign_overwrite was set to 0, because the used regex was buggy.

Add Ryan Kois as contributor.

Closes #20.
2013-04-07 14:59:33 +02:00
Marco Hinz
b5f7107a35 fix handling of sign text options
These options weren't used properly, because the s:line_* functions were
overwriting the sign texts. Now we initialize them only once at plugin
start.

Added Otto Modinos as contributor. Thanks for reporting.

Closes pull request #19.
2013-04-07 12:09:23 +02:00
Marco Hinz
0b5d262271 doc: improve readability 2013-04-04 11:27:28 +02:00
Marco Hinz
6f0cb97db2 docs: remove old g:signify_enable_cvs option 2013-04-04 11:16:58 +02:00
Marco Hinz
d41bb86243 new option: g:signify_line_highlight
You can enable line highlighting per default now.
2013-04-04 11:14:07 +02:00
Marco Hinz
88edc81bb4 docs: document update_on_bufenter option 2013-04-03 10:38:32 +02:00
Marco Hinz
6b28933dfe add Zhao Cai as contributor 2013-04-02 20:19:58 +02:00
Marco Hinz
7ef9ef97d9 doc: proper alignment of tags 2013-04-02 09:45:26 +02:00
Marco Hinz
deb89247c6 change license 2013-04-02 09:36:42 +02:00
Marco Hinz
0c6d4bfb3a skip list for files takes absolute paths 2013-03-29 13:31:23 +01:00
Marco Hinz
9613f30260 add Morgan Fouesneau as contributor 2013-03-26 23:16:15 +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
11270fe702 docs: correct default mappings for jumping
Closes #12.
2013-03-26 18:46:30 +01:00
Marco Hinz
3a031f661a new additional mappings for jumping: [c and ]c 2013-03-26 14:25:45 +01:00
Marco Hinz
2fe0355d39 add Martin Hoch as contributor 2013-03-26 13:16:25 +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
43e0f677cd doc: update 2013-03-21 13:33:25 +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
d497212647 add notes about getting feedback 2013-03-15 13:52:57 +01:00
Marco Hinz
99833f8b4a add RCS support 2013-03-15 13:08:56 +01:00
Marco Hinz
09287499a1 docs: add sign explanation 2013-03-14 11:22:36 +01:00
Marco Hinz
2e9cba3e2e update README and docs 2013-03-13 17:08:41 +01:00
Marco Hinz
d95bc7c63b update docs 2013-03-12 12:43:23 +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
8d1397787a update README 2013-03-12 01:14:48 +01:00
Marco Hinz
8cf6c61795 add support for darcs repos 2013-03-11 18:49:17 +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
49c8a8fc2a add sign color hl group linking 2013-03-10 10:17:53 +01:00
Jeremy Mack
ca22ef861f Fixes typo in my username
❤️
2013-03-09 09:13:42 -05:00
Marco Hinz
ff80b442b4 add Chong Li as contributor 2013-03-08 16:31:59 +01:00
Marco Hinz
1c5aa4f9da add Jeremy Mack as a contributor (issue #1) 2013-03-07 14:18:57 +01:00
Marco Hinz
e3836c0423 fix 2 small typos 2013-03-07 13:58:05 +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
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
51c80fe68c use "sy" as short name for signify 2013-03-06 23:40:57 +01:00
Marco Hinz
5fb7c3b535 doc: refactor options and functions 2013-03-06 13:22:58 +01:00
Marco Hinz
c2b11e4711 rename 'change' to 'hunk' in the appropriate places 2013-03-06 12:32:02 +01:00