Commit Graph

88 Commits

Author SHA1 Message Date
Andy K. Massimino
9d8a01059d Fix linewise i% e.g., html 2018-01-15 20:36:41 -05:00
Andy K. Massimino
74183427cb Tweak i% text object
Related #16
2017-12-23 17:45:46 -05:00
Andy K. Massimino
efa1f814d6 Fix bug in pos#next 2017-12-23 17:18:07 -05:00
Andy K. Massimino
d2c649e5cf Fix bug in g@ detection 2017-12-23 00:11:11 -05:00
Andy K. Massimino
c2a7cf1891 Handle ci%, etc with empty region 2017-12-22 13:51:29 -05:00
Andy K. Massimino
279ba50399 Improve text_obj_linewise_operators spec, cf #15 2017-12-20 13:11:27 -05:00
Andy K. Massimino
7b8495a247 Improve performance by removing cpo-=c
Using \& instead.  Hopefully this doesn't cause any issues.
2017-12-19 10:54:53 -05:00
Andy K. Massimino
6e55e1db3e Properly set invert_skip in get_surrounding 2017-12-18 13:56:44 -05:00
Andy K. Massimino
36e347e8aa Try not to show off-screen matches while "scrolling" 2017-12-18 13:56:05 -05:00
Andy K. Massimino
7c80951463 Add smartskip check in delim#get_surrounding 2017-12-17 11:36:22 -05:00
Andy K. Massimino
8621b63a3c Add flag to not include matchpairs 2017-12-17 11:19:13 -05:00
Andy K. Massimino
cdaded0dd9 Don't show offscreen for skipped 2017-12-13 01:02:20 -05:00
Andy K. Massimino
0cc31b6ee4 Fix end pos computation in get_matching_delims 2017-12-13 00:59:46 -05:00
Andy K. Massimino
573ae8f3f0 Change cursor end when double clicking close 2017-12-13 00:41:10 -05:00
Andy K. Massimino
5d74fcf134 Improve double click selection 2017-12-03 09:29:37 -05:00
Andy K. Massimino
78a17f8ae3 Repair defect in jump_target 2017-12-02 13:23:48 -05:00
Andy K. Massimino
a4936b8aad Allow double click to select to match 2017-12-02 11:13:03 -05:00
Andy K. Massimino
77d3de55f3 Fix wrong capture groups with mixed \( \%( 2017-12-01 14:33:02 -05:00
Andy K. Massimino
db56abe5fe Remove small bit of dead code 2017-11-30 14:23:28 -05:00
Andy K. Massimino
c93dbac19c Update motions and objects for &selection 2017-11-30 14:19:06 -05:00
Andy K. Massimino
c921d387b2 Tweak text_obj for unicode and sel=exclusive 2017-11-30 00:45:21 -05:00
Andy K. Massimino
ea7e17bc0f Make motion omaps prettier 2017-11-30 00:43:31 -05:00
Andy K. Massimino
ebf5a90429 Fix offset in get_surrounding 2017-11-29 14:06:39 -05:00
Andy K. Massimino
bf02c349d0 Fix pos#prev/next, improve motion for unicode 2017-11-29 12:00:26 -05:00
Andy K. Massimino
ba7ae53f80 Fix for %: don't move or operate if no match 2017-11-28 11:01:28 -05:00
Andy K. Massimino
31a830727f Fix bug in d%/dg% 2017-11-27 20:44:22 -05:00
Andy K. Massimino
ccccf48d6e Allow forcing for % and g% 2017-11-27 20:10:54 -05:00
Andy K. Massimino
3c4e293cb8 Regularize \[:] escaping: no need to escape ] 2017-11-27 12:40:54 -05:00
Andy K. Massimino
7d63074d4a Fix incorrect handling of match_skip r: 2017-11-27 12:24:06 -05:00
Andy K. Massimino
906f8eb8fa Implement smart skipping for strings and comments
- cf. #10
- allows expected highlighting in strings and comments
- smart skip will only match delimiters with same skip status
- motions to skipped delimiters work while cursor is in skip
2017-11-27 11:16:09 -05:00
Andy K. Massimino
54ec433a7b Implement highlight surrounding feature 2017-11-21 22:48:28 -05:00
Andy K. Massimino
a08094849f Make minor statusline highlighting group fix 2017-11-21 20:35:53 -05:00
Andy K. Massimino
e11bb19966 Add compatibility for 'N' sort flag, cf. #4
(added in patch-7.4.951)
2017-11-19 13:48:20 -05:00
Andy K. Massimino
324a562bcd Make minor formatting fixes 2017-11-19 13:27:35 -05:00
Andy K. Massimino
4532a87143 Fix jump target for unicode 2017-11-19 12:42:33 -05:00
Andy K. Massimino
0311947235 Allow patterns containing \zs and \ze 2017-11-19 12:13:39 -05:00
Andy K. Massimino
f2e8a2834a Implement deferred matchparen highlighting
Fixes #6
2017-11-17 10:54:38 -05:00
Andy K. Massimino
44362650e7 Remove z flag from searchpairpos because it's useless 2017-11-16 15:51:47 -05:00
Andy K. Massimino
aa1bf46b91 Fix variable type mismatch 2017-11-16 15:25:40 -05:00
Andy K. Massimino
a6c13974ac Fix variable type mismatch 2017-11-16 15:23:23 -05:00
Andy K. Massimino
9b21c0d96f Add compatibility for reltimefloat 2017-11-16 15:23:05 -05:00
Andy K. Massimino
74403a2426 Improve performance for skip 2017-11-15 20:59:09 -05:00
Andy K. Massimino
fbaed30dbc Add b:match_words patching util function
For demo #3, #7
2017-11-15 12:06:16 -05:00
Andy K. Massimino
64d17294f9 Add {Do,No}MatchParen override to toggle highlight
Fixes #5
2017-11-15 10:59:32 -05:00
Andy K. Massimino
89bb70cfb5 Add in_comment_or_string for better performance
(used in default skip).  Also, fix cursor position for in_syntax.
2017-11-14 21:16:28 -05:00
Andy K. Massimino
a189eabbe7 Avoid funcref 2017-11-14 12:57:13 -05:00
Andy K. Massimino
8dea5e0844 Avoid using :filter 2017-11-14 12:54:12 -05:00
Andy K. Massimino
1f7998096d Add s:matchstrpos as compatibility attempt re #4 2017-11-14 10:04:23 -05:00
Andy K. Massimino
19cfb72510 Add check for .links in % to fix crash 2017-11-13 11:53:00 -05:00
Andy K. Massimino
dcbbcdbf88 Fix for ignorecase 2017-11-12 11:12:16 -05:00