Commit Graph

232 Commits

Author SHA1 Message Date
deris0126
6df6dd1eb7 Fix jumping if no count is specified for commands
References #40.

Closes #43.
2013-07-21 17:55:19 +02:00
deris0126
f550254e33 Fix wrong jump if no count is specified
If jump next hunk with no count, it move last hunk of below hunks.

v:count step is 0, 2, 3, 4..., so if no count is specified, next hunk is
-1(this is last hunk of below hunks).  Because of above reason, I change
to use v:count1 instead of v:count.  v:count1 step is 1, 2, 3, 4... .

Closes #40.
2013-07-21 14:23:29 +02:00
Marco Hinz
7d56e9aac1 Minor corrections 2013-07-17 12:44:21 +02:00
Marco Hinz
ea331d6065 Populate autoload/ 2013-07-17 12:30:58 +02:00
Marco Hinz
0718c1a2a9 Add sy#repo.vim 2013-07-17 10:14:43 +02:00
Marco Hinz
7d4759866a New sy#utils.vim 2013-07-17 09:54:03 +02:00
Marco Hinz
b28fbe2625 New: s:repo_get_stat_git() 2013-07-17 09:23:29 +02:00
James McCoy
e9747e791a Add support for accurev 2013-07-10 16:08:11 -04:00
Marco Hinz
d6086e769a Docs: minor corrections 2013-07-09 07:28:03 +02:00
Marco Hinz
673d17a2da Indicate deleted lines for ChangeDelete signs 2013-07-08 11:56:23 +02:00
Marco Hinz
4c8fa59309 Setup hl groups on VimEnter 2013-07-08 11:25:12 +02:00
Marco Hinz
16359f44f2 Put hl group linking into a function 2013-07-08 11:17:11 +02:00
Marco Hinz
abdd63063c Fix wipeout error
Closes #38.
2013-07-08 02:13:39 +02:00
Marco Hinz
5dd80d421b Echomsg won't interpret unprintable characters 2013-07-05 11:36:23 +02:00
Marco Hinz
9a42020f53 Bump to 1.9 2013-07-04 13:06:08 +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
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
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
9e4de23259 Fix SignifyDeleteChanged sign setting
Closes #33.
2013-07-02 11:05:42 +02:00
Marco Hinz
32f70cac6d Merge branch 'ext-signs' 2013-06-24 11:27:53 +02:00
Marco Hinz
ae799c152f Fix BufDelete racing problem
In certain cases the code that gets triggered by BufDelete would use
the wrong s:path due to a racing problem.

Thanks to @techlivezheng for the feedback.

Closes #30.
2013-06-22 11:47:50 +02:00
Marco Hinz
6d00d4707d Correct g:signify_difftool check 2013-06-07 17:57:51 +02:00
Marco Hinz
476f22ac48 Merge branch 'ext-signs' 2013-06-07 09:02:06 +02:00
Marco Hinz
1ec3e34109 Bump to 1.8 2013-06-07 08:45:17 +02:00
Marco Hinz
7895cb92eb Show number of deleted lines 2013-06-07 08:38:41 +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
f1a82a8654 Readd BufEnter for setting s:path 2013-06-06 13:08:15 +02:00
Marco Hinz
24840c28f3 Disable 'update_on_bufenter' per default 2013-06-06 12:39:24 +02:00
Marco Hinz
c2d062ab12 Avoid unnecessary sign redrawing
References #28.
2013-06-06 12:35:49 +02:00
Marco Hinz
539951e105 Use synIDtrans() for retrieving colors 2013-05-21 22:57:04 +02:00
Dario Sneidermanis
80f0b0d4f5 check if s:path actually exists on BufDelete
This fixes a bug where starting Vim from a directory would produce the
following error:

Error detected while processing BufDelete Auto commands for "*":
E121: Undefined variable: s:path E116: Invalid arguments for function
<SNR>62_stop
2013-05-02 18:09:41 +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
efe747fda6 change version number -> 1.7 2013-04-16 11:39:21 +02:00
Marco Hinz
eaf722e5bf add support for fossil 2013-04-16 11:37:57 +02:00
Marco Hinz
95add7a181 improve setting of placeholder sign 2013-04-14 16:25:02 +02:00
Marco Hinz
7c687e7a3c Revert "improve setting of placeholder sign"
This reverts commit 9bbbf83458.
2013-04-14 15:34:22 +02:00
Marco Hinz
9bbbf83458 improve setting of placeholder sign 2013-04-14 13:34:33 +02:00
Marco Hinz
668bdebad2 use nested autocmds 2013-04-14 12:26:35 +02:00
Marco Hinz
1ba2062e73 fix BufDelete hook 2013-04-14 12:09:02 +02:00
Marco Hinz
b095359b99 remove filewritable() check 2013-04-14 11:27:47 +02:00
Marco Hinz
9ad6328f26 only update if it makes sense #2 2013-04-14 11:18:43 +02:00
Marco Hinz
6ac9bde94f only update if it makes sense 2013-04-14 09:58:59 +02:00
Marco Hinz
8b4ba9e763 remove useless buftype check 2013-04-14 09:47:06 +02:00
Marco Hinz
661eb7cedd only write buffer to disk if sensible
Only write the buffer to disk on CursorMoved / CursorMovedI, if the file
is already handled by Sy.
2013-04-13 15:36:20 +02:00
Marco Hinz
61539459c1 remove b:signmode 2013-04-12 01:54:19 +02:00
Marco Hinz
d4c6681577 check if path is actually in list at BufDelete
Fixes a bug that was introduced by the previous commit: 610c36c
2013-04-12 01:30:57 +02:00
Marco Hinz
610c36cf04 remove buffers from list at BufDelete 2013-04-12 01:26:20 +02:00
Marco Hinz
21378728cc change function order 2013-04-12 01:11:31 +02:00
Marco Hinz
6041363822 swap statements
Prevents setting a placeholder sign on non-file buffers.

Closes #23.
2013-04-12 00:58:27 +02:00
Marco Hinz
9659a4297d remove ]c and [c when toggling off
There is no reliable way to detect a change to diff mode. Since Sy's ]c and
[c overwrite diff mode mappings they now get removed, when the plugin is
toggled off.

Closes #22.
2013-04-12 00:30:30 +02:00
Otto Modinos
ff078a5069 fix s:sign_change_delete 2013-04-07 17:24:09 +02:00
Marco Hinz
a2ee5cf67c change version number -> 1.6 2013-04-07 15:25:46 +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
a9ce03c16c use vim-style modeline 2013-04-07 14:58:39 +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
4f98661bf2 fix handling of bzr return values 2013-04-06 20:14:11 +02:00
Marco Hinz
48f0ec6f9e minor syntax improvement 2013-04-06 18:50:34 +02:00
Marco Hinz
e0c619058b change version number 2013-04-04 11:29:13 +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
45dae2e900 replace ternary operators by get() 2013-04-03 17:15:24 +02:00
Marco Hinz
af3cd9e6a9 remove useless condition 2013-04-03 15:56:17 +02:00
Marco Hinz
4c4eb4fbf4 merge pull request #18 from zhaocai
Closes pull request #18.
2013-04-03 15:50:03 +02:00
Marco Hinz
da9f829f76 do not save when not feasible 2013-04-03 15:47:12 +02:00
Marco Hinz
09912c889a simplify condition 2013-04-03 13:47:34 +02:00
Zhao Cai
542c5d03ee Fix E382:
Error detected while processing CursorHold Auto commands for "*":
E382: Cannot write, 'buftype' option is set
2013-04-03 07:03:49 -04:00
Marco Hinz
c09b1d4e32 polish autocmd section 2013-04-03 10:31:37 +02:00
Zhao Cai
1721ed7624 Add g:signify_bufenter option 2013-04-03 01:32:51 -04:00
Marco Hinz
6d23d1568f update version number 2013-04-03 01:07:18 +02:00
Marco Hinz
ebd7ad7b57 check if the color inherit option is set 2013-04-03 00:56:25 +02:00
Marco Hinz
f6f6f90542 change filter regex for diff output
Diff output of files containing conflict markers start with '@@@'
opposed to 'normal' diff output with only '@@'.

I'm not sure if files with conflict markers should be handled by Sy, so
these lines get just ignored for now.

I'll add it to my TODO nevertheless.

Closes #16.
2013-04-02 20:09:05 +02:00
Marco Hinz
91a277dd92 add s:jump_to_next_hunk() once again 2013-04-02 16:32:10 +02:00
Marco Hinz
be6666bb84 reorganize folding text 2013-04-02 16:23:47 +02:00
Marco Hinz
38c65ee15e use full keywords 2013-04-02 16:07:23 +02:00
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