]> git.wincent.com - pinnacle.git/log
pinnacle.git
5 years agoUse `empty` instead of `==`
Greg Hurrell [Thu, 8 Jun 2017 01:44:24 +0000 (18:44 -0700)] 
Use `empty` instead of `==`

Arguably more transparent, and avoids questions about list equality in
VimL compared with other languages (eg. JavaScript, which isn't
referentially transparent, so `[] != []`).

5 years agoFix regex capture groups
Greg Hurrell [Wed, 7 Jun 2017 21:26:52 +0000 (14:26 -0700)] 
Fix regex capture groups

This is hard to read, but given something like:

  (a)*(b)(c)*

And input like:

  aaaaaabccccc

Vim is going to capture only the last "a" matched by "(a)*".

To make it capture the whole thing we need to turn:

  (a)*

into:

  (%(a)*)

ie. make the inner "(a)" non-capturing.

With Vim's unfortunate escaping, these examples get a bit uglier:

   \(\%(a\)*\)

instead of:

  (%(a)*)

and so on...

This fixes the issue we had where a group like `Underlined`:

  term=underline cterm=underline ctermfg=1 gui=underline guifg=#cc6666

was being emboldened incorrectly as:

  cterm=bold ctermfg=1 gui=bold,underline guifg=#cc6666

Because the following sequence would occur:

1. Search for "gui=...", identifying "ctermfg=..." as the prefix and
   "guifg=..." as the suffix.
2. Throw away "cterm=bold" while reconstructing the new highlight,
   because it was not correctly captured.
3. etc... all bets are off here because we've already thrown away data.

5 years agodoc: Fix a date in the history section
Greg Hurrell [Wed, 7 Jun 2017 03:47:41 +0000 (20:47 -0700)] 
doc: Fix a date in the history section

5 years agoPrepare for 0.3 release 0.3
Greg Hurrell [Wed, 7 Jun 2017 03:43:38 +0000 (20:43 -0700)] 
Prepare for 0.3 release

5 years agoFix regex for decorating existing patterns
Greg Hurrell [Wed, 7 Jun 2017 02:29:10 +0000 (19:29 -0700)] 
Fix regex for decorating existing patterns

Was only working with one prefix and one suffix:

  a=b c=d e=f

(finding c=d).

Would fail given:

  a=b c=d e=f g=h

Which means that it would end up creating a dupe rule for "c=d",
potentially, which Vim would then collapse.

5 years agoPrefer underline over undercurl
Greg Hurrell [Wed, 7 Jun 2017 02:28:02 +0000 (19:28 -0700)] 
Prefer underline over undercurl

Should be equivalent, but the former is more likely to be supported than
the latter according to some docs that I read that I can no longer find.

5 years agoAdd utility functions for constructing highlights piecemeal
Greg Hurrell [Fri, 21 Apr 2017 01:49:53 +0000 (18:49 -0700)] 
Add utility functions for constructing highlights piecemeal

Example usage:

```
execute 'highlight User1 ' .
      \ pinnacle#highlight({
      \   'bg': pinnacle#extract_bg('Error'),
      \   'fg': pinnacle#extract_fg('Normal'),
      \   'term': 'bold'
      \ })
```

5 years agodoc: remove two copy-pasta'd references to docvim
Greg Hurrell [Mon, 9 Jan 2017 02:41:44 +0000 (13:11 +1030)] 
doc: remove two copy-pasta'd references to docvim

5 years agoPrepare for 0.2 release 0.2
Greg Hurrell [Mon, 9 Jan 2017 02:34:47 +0000 (13:04 +1030)] 
Prepare for 0.2 release

5 years agoMerge branch 'pull/2'
Greg Hurrell [Fri, 6 Jan 2017 13:52:50 +0000 (00:22 +1030)] 
Merge branch 'pull/2'

Closes: https://github.com/wincent/pinnacle/pull/2
* pull/2:
  doc: Update AUTHORS section
  add pinnacle#underline()

5 years agodoc: Update AUTHORS section
Greg Hurrell [Fri, 6 Jan 2017 13:52:35 +0000 (00:22 +1030)] 
doc: Update AUTHORS section

5 years agoadd pinnacle#underline()
kylpo [Fri, 30 Dec 2016 06:25:12 +0000 (22:25 -0800)] 
add pinnacle#underline()

5 years agoAdd empty .watchmanconfig
Greg Hurrell [Wed, 12 Oct 2016 01:06:36 +0000 (18:06 -0700)] 
Add empty .watchmanconfig

Allows a Watchman instance configured with `enforce_root_files` to watch
this directory even if `root_files` does not contain any of the files in
the directory. (Necessary to get around undesired corporate
`/etc/watchman.json` config.)

6 years agoAdd docvim-generated documentation
Greg Hurrell [Sun, 12 Jun 2016 22:11:09 +0000 (15:11 -0700)] 
Add docvim-generated documentation

6 years agoFix the other URL
Greg Hurrell [Sun, 12 Jun 2016 22:09:57 +0000 (15:09 -0700)] 
Fix the other URL

6 years agoProvide correct URL to vim.org scripts page
Greg Hurrell [Sun, 12 Jun 2016 22:08:36 +0000 (15:08 -0700)] 
Provide correct URL to vim.org scripts page

6 years agoDon't let verbose info mess with operation
Greg Hurrell [Wed, 4 May 2016 01:44:39 +0000 (18:44 -0700)] 
Don't let verbose info mess with operation

`'verbose'` > 0 will lead us to capture output like:

  Comment xxx term=bold,italic cterm=italic ctermfg=8 gui=italic guifg=#65737e
  Last set from ~/code/wincent/roles/dotfiles/files/.vim/after/plugin/color.vim

which will lead to `E416: missing equal sign` errors when we try to use the
captured output.

So, force `'verbose'` to 0 for the duration of the capture.

6 years agoIgnore release archives
Greg Hurrell [Wed, 30 Mar 2016 15:20:26 +0000 (08:20 -0700)] 
Ignore release archives

6 years agodoc: Fix straggling references 0.1
Greg Hurrell [Wed, 30 Mar 2016 14:59:38 +0000 (07:59 -0700)] 
doc: Fix straggling references

To Docvim, and the script number placeholder.

6 years agoMake best guess at final script number
Greg Hurrell [Wed, 30 Mar 2016 14:59:38 +0000 (07:59 -0700)] 
Make best guess at final script number

6 years agoInitial import
Greg Hurrell [Wed, 30 Mar 2016 14:59:38 +0000 (07:59 -0700)] 
Initial import

From my dotfiles repo (https://github.com/wincent/wincent), commit
cad99e82bf78497ac4c2b9aee1bc8.