Commit Graph

109 Commits

Author SHA1 Message Date
Marco Hinz
2e1fd54601 Make :SignifyDebugDiff more robust and add it to help 2015-05-24 10:52:28 +02:00
Marco Hinz
4ed7b37205 Merge branch 'cmd-options'
This merge removes g:signify_diffoptions and replaces it by the much more
general g:signify_vcs_commands. Users can customize the entire command to be
run now.
2015-05-24 09:42:03 +02:00
Marco Hinz
092e7a0e4f Doc: remove diffoptions, add vcs_cmds 2015-05-20 14:23:29 +02:00
Marco Hinz
bd0956eee6 Remove all default mappings except for ]c / [c
References #142.
2014-11-05 14:16:44 +01:00
Alex Rodionov
de297820bc Expose sy#util#refresh_windows()
References #141.
2014-11-05 13:07:59 +01:00
Alex Rodionov
4c3c10d1cb Update signs both on FocusGained and FocusLost 2014-11-02 19:47:49 +06:00
killphi
e4a428c0d7 Make hunk text object mappable
References #138.
2014-11-02 09:11:28 +01:00
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