Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

misc

  • Loading branch information...
commit 9c1272672da51f268b1c7ce2f76dea64e89f22f2 1 parent 0f81d9a
@tomtom authored
View
3  .gitignore
@@ -3,4 +3,7 @@ Makefile
TODO.TXT
*.vba
*.vmb
+*.zip
.last_*
+test
+test_*
View
6 autoload/quickfixsigns.vim
@@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2010-03-19.
-" @Last Change: 2012-02-10.
-" @Revision: 0.0.72
+" @Last Change: 2012-08-20.
+" @Revision: 0.0.73
if !exists('g:quickfixsigns#use_relativenumber')
@@ -69,7 +69,7 @@ function! quickfixsigns#AssertUniqueSigns(bufnr, bufsigns) "{{{3
for bsign in a:bufsigns
let bsign1 = substitute(bsign, '\<id=\d\+\s', '', '')
if empty(bsign1)
- echom "DBG AssertUniqueSigns: Empty bsign1" bsign
+ " echom "DBG AssertUniqueSigns: Empty bsign1" bsign
elseif has_key(dict, bsign1)
echom ("QuickFixSigns AssertUniqueSigns: duplicate bufnr=". a:bufnr .":") bsign
else
View
101 doc/quickfixsigns.txt
@@ -53,6 +53,7 @@ Contents~
:QuickfixsignsSet ........................ |:QuickfixsignsSet|
:QuickfixsignsDisable .................... |:QuickfixsignsDisable|
:QuickfixsignsEnable ..................... |:QuickfixsignsEnable|
+ :QuickfixsignsToggle ..................... |:QuickfixsignsToggle|
:QuickfixsignsSelect ..................... |:QuickfixsignsSelect|
g:quickfixsigns_classes .................. |g:quickfixsigns_classes|
g:quickfixsigns_events ................... |g:quickfixsigns_events|
@@ -69,12 +70,19 @@ Contents~
QuickfixsignsSet ......................... |QuickfixsignsSet()|
QuickfixsignsUnique ...................... |QuickfixsignsUnique()|
QuickfixsignsBalloon ..................... |QuickfixsignsBalloon()|
+ QuickfixsignsToggle ...................... |QuickfixsignsToggle()|
QuickfixsignsClear ....................... |QuickfixsignsClear()|
g:quickfixsigns#use_relativenumber ....... |g:quickfixsigns#use_relativenumber|
quickfixsigns#CompleteSelect ............. |quickfixsigns#CompleteSelect()|
quickfixsigns#RelNumbersOnce ............. |quickfixsigns#RelNumbersOnce()|
quickfixsigns#AssertUniqueSigns .......... |quickfixsigns#AssertUniqueSigns()|
quickfixsigns#AssertNoObsoleteBuffers .... |quickfixsigns#AssertNoObsoleteBuffers()|
+ g:quickfixsigns_class_marks .............. |g:quickfixsigns_class_marks|
+ g:quickfixsigns#marks#buffer ............. |g:quickfixsigns#marks#buffer|
+ g:quickfixsigns#marks#global ............. |g:quickfixsigns#marks#global|
+ g:quickfixsigns#marks#texthl ............. |g:quickfixsigns#marks#texthl|
+ quickfixsigns#marks#GetList .............. |quickfixsigns#marks#GetList()|
+ quickfixsigns#marks#GetSign .............. |quickfixsigns#marks#GetSign()|
g:quickfixsigns#vcsdiff#vcs .............. |g:quickfixsigns#vcsdiff#vcs|
g:quickfixsigns_class_vcsdiff ............ |g:quickfixsigns_class_vcsdiff|
g:quickfixsigns#vcsdiff#cd ............... |g:quickfixsigns#vcsdiff#cd|
@@ -83,12 +91,6 @@ Contents~
g:quickfixsigns#vcsdiff#highlight ........ |g:quickfixsigns#vcsdiff#highlight|
quickfixsigns#vcsdiff#GuessType .......... |quickfixsigns#vcsdiff#GuessType()|
quickfixsigns#vcsdiff#GetList ............ |quickfixsigns#vcsdiff#GetList()|
- g:quickfixsigns_class_marks .............. |g:quickfixsigns_class_marks|
- g:quickfixsigns#marks#buffer ............. |g:quickfixsigns#marks#buffer|
- g:quickfixsigns#marks#global ............. |g:quickfixsigns#marks#global|
- g:quickfixsigns#marks#texthl ............. |g:quickfixsigns#marks#texthl|
- quickfixsigns#marks#GetList .............. |quickfixsigns#marks#GetList()|
- quickfixsigns#marks#GetSign .............. |quickfixsigns#marks#GetSign()|
g:quickfixsigns#breakpoints#filetypes .... |g:quickfixsigns#breakpoints#filetypes|
g:quickfixsigns_class_breakpoints ........ |g:quickfixsigns_class_breakpoints|
quickfixsigns#breakpoints#GetList ........ |quickfixsigns#breakpoints#GetList()|
@@ -110,6 +112,10 @@ plugin/quickfixsigns.vim~
:QuickfixsignsEnable
Enable quickfixsign.
+ *:QuickfixsignsToggle*
+:QuickfixsignsToggle
+ Toggle quickfixsign.
+
*:QuickfixsignsSelect*
:QuickfixsignsSelect
Select the sign classes that should be displayed and reset the signs
@@ -119,18 +125,18 @@ plugin/quickfixsigns.vim~
g:quickfixsigns_classes (default: ['qfl', 'loc', 'marks', 'vcsdiff', 'breakpoints'])
A list of sign classes that should be displayed.
Can be one of:
-
+
rel ... relative line numbers
cursor ... current line
qfl ... |quickfix| list
loc ... |location| list
vcsdiff ... mark changed lines (see |quickfixsigns#vcsdiff#GetList()|)
marks ... marks |'a|-zA-Z (see also " |g:quickfixsigns_marks|)
-
+
The sign classes are defined in g:quickfixsigns_class_{NAME}.
-
+
A sign class definition is a |Dictionary| with the following fields:
-
+
sign: The name of the sign, which has to be defined. If the
value begins with "*", the value is interpreted as
function name that is called with a qfl item as its
@@ -159,7 +165,7 @@ g:quickfixsigns_class_qfl (default: {'sign': 'QFS_QFL', 'get': 's:GetQFList
Signs for |quickfix| lists.
*g:quickfixsigns_class_loc*
-g:quickfixsigns_class_loc (default: {'sign': 'QFS_LOC', 'get': 's:GetLocList(%s)', 'event': ['BufEnter', 'CursorHold', 'CursorHoldI'], 'level': 8})
+g:quickfixsigns_class_loc (default: {'sign': 'QFS_LOC', 'get': 's:GetLocList(%s)', 'event': ['BufEnter', 'CursorHold', 'CursorHoldI', 'QuickFixCmdPost'], 'level': 8})
Signs for |location| lists.
*g:quickfixsigns_class_cursor*
@@ -179,7 +185,7 @@ g:quickfixsigns_max (default: 500)
Don't display signs if the list is longer than n items.
*g:quickfixsigns_blacklist_buffer*
-g:quickfixsigns_blacklist_buffer (default: '^__.*__$')
+g:quickfixsigns_blacklist_buffer (default: '^\(__.*__\|NERD_tree_.*\|-MiniBufExplorer-\)$')
Don't show signs in buffers matching this |regexp|.
*g:quickfixsigns_icons*
@@ -198,7 +204,7 @@ QuickfixsignsUpdate(?class="")
QuickfixsignsSet(event, ?classes=[])
(Re-)Set the signs that should be updated at a certain event. If event
is empty, update all signs.
-
+
Normally, the end-user doesn't need to call this function.
*QuickfixsignsUnique()*
@@ -207,6 +213,9 @@ QuickfixsignsUnique(list)
*QuickfixsignsBalloon()*
QuickfixsignsBalloon()
+ *QuickfixsignsToggle()*
+QuickfixsignsToggle()
+
*QuickfixsignsClear()*
QuickfixsignsClear(class)
Clear all signs with name SIGN.
@@ -238,16 +247,44 @@ quickfixsigns#AssertNoObsoleteBuffers(register)
========================================================================
+autoload/quickfixsigns/marks.vim~
+
+ *g:quickfixsigns_class_marks*
+g:quickfixsigns_class_marks (default: {...})
+ The definition of signs for marks.
+
+ *g:quickfixsigns#marks#buffer*
+g:quickfixsigns#marks#buffer (default: split('abcdefghijklmnopqrstuvwxyz''.', '\zs'))
+ A list of buffer-local marks that should be displayed as signs. If
+ empty, disable the display of marks.
+
+ *g:quickfixsigns#marks#global*
+g:quickfixsigns#marks#global (default: split('ABCDEFGHIJKLMNOPQRSTUVWXYZ<>^', '\zs'))
+ A list of global marks that should be displayed as signs. If
+ empty, disable the display of marks.
+
+ *g:quickfixsigns#marks#texthl*
+g:quickfixsigns#marks#texthl (default: 'Identifier')
+ Highlight group for mark signs.
+
+ *quickfixsigns#marks#GetList()*
+quickfixsigns#marks#GetList(filename)
+
+ *quickfixsigns#marks#GetSign()*
+quickfixsigns#marks#GetSign(item)
+
+
+========================================================================
autoload/quickfixsigns/vcsdiff.vim~
*g:quickfixsigns#vcsdiff#vcs*
g:quickfixsigns#vcsdiff#vcs (default: {...})
Show signs for new (+), changed (=), or deleted (-) lines.
-
+
The signs for deleted lines are shown on the line before the
deleted one. I.e. if line 20 was deleted, the "-" sign will be put
on line 19.
-
+
A dictionary of supported VCS names. Its values are dictionaries
with the following keys:
cmd ... command templates that generate a unified diff file.
@@ -277,7 +314,7 @@ g:quickfixsigns#vcsdiff#highlight (default: {'DEL': 'DiffDelete', 'ADD': 'DiffAd
The highlighting of deleted lines can sometimes be confusing. In
order to disable the display of signs for DEL changes, save the
following line as after/autoload/quickfixsigns/vcsdiff.vim: >
-
+
call remove(g:quickfixsigns#vcsdiff#highlight, 'DEL')
<
@@ -285,11 +322,11 @@ g:quickfixsigns#vcsdiff#highlight (default: {'DEL': 'DiffDelete', 'ADD': 'DiffAd
quickfixsigns#vcsdiff#GuessType()
Return the name of a VCS system based on the values of the following
variables:
-
+
- b:git_dir
- b:vcs_type
- b:VCSCommandVCSType
-
+
If none of these variables is defined, try to guess the vcs type.
*quickfixsigns#vcsdiff#GetList()*
@@ -299,34 +336,6 @@ quickfixsigns#vcsdiff#GetList(filename)
========================================================================
-autoload/quickfixsigns/marks.vim~
-
- *g:quickfixsigns_class_marks*
-g:quickfixsigns_class_marks (default: {...})
- The definition of signs for marks.
-
- *g:quickfixsigns#marks#buffer*
-g:quickfixsigns#marks#buffer (default: split('abcdefghijklmnopqrstuvwxyz''.', '\zs'))
- A list of buffer-local marks that should be displayed as signs. If
- empty, disable the display of marks.
-
- *g:quickfixsigns#marks#global*
-g:quickfixsigns#marks#global (default: split('ABCDEFGHIJKLMNOPQRSTUVWXYZ<>^', '\zs'))
- A list of global marks that should be displayed as signs. If
- empty, disable the display of marks.
-
- *g:quickfixsigns#marks#texthl*
-g:quickfixsigns#marks#texthl (default: 'Identifier')
- Highlight group for mark signs.
-
- *quickfixsigns#marks#GetList()*
-quickfixsigns#marks#GetList(filename)
-
- *quickfixsigns#marks#GetSign()*
-quickfixsigns#marks#GetSign(item)
-
-
-========================================================================
autoload/quickfixsigns/breakpoints.vim~
*g:quickfixsigns#breakpoints#filetypes*
View
8 plugin/quickfixsigns.vim
@@ -4,8 +4,8 @@
" @GIT: http://github.com/tomtom/quickfixsigns_vim/
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2009-03-14.
-" @Last Change: 2012-08-15.
-" @Revision: 1130
+" @Last Change: 2012-09-15.
+" @Revision: 1133
" GetLatestVimScripts: 2584 1 :AutoInstall: quickfixsigns.vim
if &cp || exists("loaded_quickfixsigns") || !has('signs')
@@ -490,8 +490,8 @@ endf
function! s:CompareClasses(a, b) "{{{3
- let i1 = get(a:a[1], 'level', 5)
- let i2 = get(a:b[1], 'level', 5)
+ let i1 = str2nr(get(a:a[1], 'level', 5))
+ let i2 = str2nr(get(a:b[1], 'level', 5))
return i1 == i2 ? 0 : i1 < i2 ? 1 : -1
endf
Please sign in to comment.
Something went wrong with that request. Please try again.