Commit Graph

142 Commits

Author SHA1 Message Date
Marco Hinz
9dcdb8fda9
Cleanup 2017-03-13 15:50:04 +01:00
Marco Hinz
f528cc8ec2
Doc: improve g:signify_realtime 2017-03-04 02:17:08 +01:00
Marco Hinz
b4c516cd63
Ignore :SignifyRefresh in cmdline-window
Closes #231.
2017-03-02 16:46:55 +01:00
Marco Hinz
ce7779198b
Restore g:signify_cursorhold_{normal,insert}
References #230.
2017-02-25 22:18:44 +01:00
Marco Hinz
01ec338fdb
Add User event "SignifySetup" 2017-02-20 16:42:05 +01:00
Marco Hinz
8fa3524a13
Remove g:signify_cursorhold_normal and g:signify_cursorhold_insert
If you want that behaviour, set 'autowrite' instead.

References #226.
2017-02-20 16:16:07 +01:00
Marco Hinz
e8252ba44d
Doc: update g:signify_realtime 2017-02-18 20:26:40 +01:00
Marco Hinz
5940039dcf
REAMDE: cosmetic changes 2017-02-18 20:17:17 +01:00
Marco Hinz
05f6ff91f4
New option: g:signify_realtime
By default Sy only updates signs when opening or writing a buffer that is backed
by a file on disk.

If that's too conservative to you, enable this option. It makes Sy update signs
on almost every occasion.
2017-02-18 18:06:44 +01:00
Marco Hinz
255b2a636a
Doc: add modus operandi and debug section 2017-02-17 16:21:04 +01:00
Marco Hinz
6364e8f7f2 Vim: use close_cb to trigger exit_cb
Before Vim 8.0.50, an exited job was only detected with a potentially huge
delay.

Thus, for versions smaller than 8.0.50, we add a close_cb callback that runs
job_status() which in return runs the exit_cb callback immeditely if the job was
found to be dead.

Vim patch:

    01688ad545

References: #216.
2017-02-16 15:29:41 +01:00
Marco Hinz
45a28549bd
FAQ: Line highlighting without showing signs?
References #220.
2017-02-15 21:54:55 +01:00
Marco Hinz
3f9f292d0f
FAQ: The plugin is slow!
References #190.
2016-10-05 17:59:53 +02:00
Marco Hinz
faf7a03071
New option: g:signify_sign_show_text
This makes all Signify signs use a non-breaking space as text. This is
convenient if only the background colors of the signs are important.

References #188.
2016-09-28 17:05:40 +02:00
Marco Hinz
472668fbd2 Doc: add remark about nested autocmds 2016-07-21 19:46:03 +02:00
Marco Hinz
0639b7f094 Doc: remove outdated note about <nomodeline> 2016-07-21 19:44:39 +02:00
Marco Hinz
76bde232d1 Avoid errors from older Vims that don't support <nomodeline>
The <nomodeline> flag for :doautocmd was implemented in 7.3.438. Certain
LTS distros, e.g. Ubuntu 12.04, come with even older Vim versions,
though.

Silently ignore the flag in such cases.

Closes https://github.com/mhinz/vim-signify/issues/185
2016-06-19 14:12:47 +02:00
James McCoy
3f0df1498c Trigger the User autocommand when Sy detects differences
This provides the hook needed for the request in mhinz/vim-signify#181
to disable signs but still get the stats about the detected changes.

Closes mhinz/vim-signify#181
2016-06-01 21:13:15 -04:00
Marco Hinz
a02c8793bf New option: g:signify_skip_filename_pattern
Closes #179.
2016-03-03 14:53:17 +01:00
Marco Hinz
051dc1a853 Add support for Team Foundation Server
The actual patch is courtesy of @Grueslayer. Thanks!

Closes #177.
2016-02-25 01:21:12 +01:00
Marco Hinz
a96f1a7dc7 Register non-versioned files as inactive 2016-01-15 02:04:59 +01:00
Marco Hinz
2a3dafd045 Add ]C and [C mappings 2016-01-14 03:40:52 +01:00
William Clemens
e134c152e0 Add :SignifyEnable and :SignifyDisable 2016-01-07 02:54:44 +01:00
Marco Hinz
ecb796139e Doc: remove obsolete reference to :SignifyToggleFold 2015-12-09 00:46:56 +01:00
Marco Hinz
8ecfde45ec Doc: add :SignifyFold! 2015-12-09 00:40:21 +01:00
albfan
64a6dbd5d8 Add bang option to SignifyToggleFold
Without bang open folds on a new tab, with it on current buffer
2015-12-08 13:48:07 +01:00
Marco Hinz
71ea7a6e83 Doc: remark about sy#util#shell_redirect() 2015-07-29 01:49:11 +02:00
Marco Hinz
4fdcfa033c Doc: typo 2015-07-07 01:07:41 +02:00
Marco Hinz
b592e2df9e Doc: proper quoting in vcs_cmds
References #164.
2015-07-06 22:36:34 +02:00
Marco Hinz
0c5688cccf Doc: add FAQ section + vim-flagship support 2015-06-15 18:15:29 +02:00
Marco Hinz
8c5ad74a7b Add :SignifyFold
References #118.
2015-06-02 15:12:57 +02:00
Marco Hinz
a05b780c33 Add :SignifyDebugUnknown 2015-05-26 10:59:29 +02:00
Marco Hinz
a1cfbc8b70 Perforce: use difftool modifier 2015-05-25 09:25:23 +02:00
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