j-xella
9815a55dbc
Resolve syntax highlighting group in neovim/treesitter ( #160 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-04-13 12:21:42 +09:00
Junegunn Choi
1cd724dc23
Fix invalid detection of blockwise visual mode
...
Close #105
2017-06-03 22:10:13 +09:00
Hiroaki Yamazoe
4be4101ad5
add g:easy_align_nth to allow configuring default nth
2017-02-04 19:57:39 +09:00
Junegunn Choi
0cb6b98fc1
Use search pattern as delimiter if empty regex is given
...
Close #78
2016-03-06 13:47:17 +09:00
Junegunn Choi
dd98d0a895
Add " rule for vim comments
...
Related: #76
2016-02-05 11:06:00 +09:00
Junegunn Choi
d1b68f9dd0
Undo when LiveEasyAlign is cancelled via CTRL-C
2016-01-26 00:57:54 +09:00
Junegunn Choi
4fb4c1056c
Clear command-line or restore visual selection on interrupt
...
Close #74
2016-01-26 00:52:09 +09:00
Junegunn Choi
0db4ea6132
Use virtcol in blockwise visual mode
2015-10-01 19:32:36 +09:00
Junegunn Choi
504eab0f59
Change split logic to allow advanced patterns
...
- \v (Fix #67 )
- \zs (Fix #55 )
2015-10-01 19:26:46 +09:00
Junegunn Choi
98e0b493ac
Apply filter option to substrings in blockwise-visual mode
2015-09-16 03:08:08 +09:00
Junegunn Choi
1206c65dcb
Fix regular expression for = rule
...
Bug reported by @cvlmtg
2015-07-20 00:39:09 +09:00
Junegunn Choi
a1118be7d9
Extend default = rule to include ?=
...
Close #65
2015-07-15 21:57:33 +09:00
Jacob Niehus
ac9aa14ae4
Fix repeat of visual LiveEasyAlign
2014-12-09 19:41:39 -07:00
Junegunn Choi
cafe55dd65
Fix #50 - Updated shorthand notation (m -> a)
2014-12-09 15:25:44 +09:00
Junegunn Choi
246139c57c
Remove dead code ( Fix #47 )
...
Thanks to @itchyny
2014-12-01 19:26:28 +09:00
Junegunn Choi
2782c1d0db
Fix <CTRL-P> to toggle liveness when delimiter is not entered ( #44 )
2014-11-30 11:34:32 +09:00
Junegunn Choi
52814ccd96
Update License
2014-11-30 02:03:13 +09:00
Junegunn Choi
aa1ba68ea0
Retain cursor position after <Plug>(EasyAlign) in visual mode
2014-11-30 02:01:52 +09:00
Junegunn Choi
b8abc366a6
Fix code indentation
2014-11-30 01:46:11 +09:00
Junegunn Choi
f6586bad39
<CTRL-P> to switch to live interactive mode ( #44 )
2014-11-30 01:45:27 +09:00
Junegunn Choi
2595ebf933
Oops, remove duplicate line from the previous commit ( #40 )
2014-10-03 11:29:03 +09:00
Junegunn Choi
6bc221c285
Fix #40 : Spurious undo in live interactive mode
...
Problem identified and patch provided by @wilywampa
2014-10-03 11:25:51 +09:00
Junegunn Choi
21697776b4
Allow recursive alignment (*, **) in blockwise-visual mode
...
Recursive alignment in blockwise-visual mode will align around all the
delimiters found after the start of the block. This behavior is
inconsistent with non-recursive alignment where the delimiters after the
end of the block are ignored. Making it respect the end of the block is
non-trivial and may not be intuitive as each alignment will change the
position of the delimiters inside the block and some of them will end up
beyond the scope of the block.
2014-09-13 19:54:49 +09:00
Junegunn Choi
eee4735770
Update shorthand notation for stick_to_left: > to unset
...
- `<` == `stl1`
- `>` == `stl0`
2014-08-14 12:38:44 +09:00
Junegunn Choi
2fa6a040f6
Change option name and shorthand notations
...
- `mode_sequence` (`ms`) -> `align` (`a`)
- `stick_to_left` (`<` / `s01`)
This commit does not break backward compatibility.
`mode_sequence` is still allowed.
2014-07-23 22:15:01 +09:00
Junegunn Choi
fc9555cd65
Allow negation operator in ignore_groups option
...
e.g. ig['!String']
2014-06-24 00:09:51 +09:00
Junegunn Choi
a98c1ccc99
Add '#'-rule ( #30 )
...
For Ruby/Python comments. This new '#' rule will only match
'#' characters that are highlighted as comments.
2014-06-20 10:36:37 +09:00
Junegunn Choi
ba54df53ca
Better handling of tab characters using strdisplaywidth
2014-04-11 10:39:39 +09:00
Junegunn Choi
4929841a7a
Remove +float dependency
2014-01-20 01:30:31 +09:00
Junegunn Choi
dc4786841e
Workaround for Vim bug: using Float as a String in gvim ( #27 )
2013-12-19 10:20:04 +09:00
Junegunn Choi
46abd8fb92
Add set cpo&vim for compatible mode
2013-12-19 10:04:03 +09:00
Junegunn Choi
d3eec7fa8b
Remove an unnecessary function call
2013-12-05 20:50:46 +09:00
Junegunn Choi
da284f908e
<Plug>(EasyAlign) / <Plug>(LiveEasyAlign) for vim-repeat integration
2013-12-01 22:58:13 +09:00
Junegunn Choi
3921d0bab3
Fix #20 - Alignment with tabs inserting spaces
2013-11-20 07:27:39 +09:00
Junegunn Choi
2daae46a43
Fix indentation option to work with hard tabs ( #19 )
2013-10-31 12:32:07 +09:00
Junegunn Choi
2b119f9bb6
Fix issue #19 (hard tab indentation)
2013-10-31 11:08:02 +09:00
Junegunn Choi
2832a76cea
Implement filter option ( #16 , #17 )
...
This commit implements filter option which can be used to filter lines within
the range based on the given pattern. The value of filter option should be
either `g/pattern/` or `v/pattern/`. The former aligns lines that match the
pattern, the latter aligns lines that do not match the pattern.
2013-10-27 03:10:04 +09:00
Junegunn Choi
1a232ac19b
Revert "Make user confirm regular expression on live interactive mode"
...
This reverts commit a76cfdb8ae .
2013-10-25 02:17:52 +09:00
Junegunn Choi
a76cfdb8ae
Make user confirm regular expression on live interactive mode
2013-10-25 02:11:43 +09:00
Junegunn Choi
3cc564bd68
Do not attach margin_left string before phantom token
2013-10-19 19:49:11 +09:00
Junegunn Choi
6e2264672a
Implement live interactive mode ( #15 )
...
This commit adds LiveEasyAlign command. (The name was chosen not to introduce
ambiguity when typing in only the prefix of the command: e.g. `:EasyA*|`)
In live interactive mode, the selected text is aligned on-the-fly as the user
type in. In order to finalize the alignment, the user has to type in the
same delimiter key again. (Or CTRL-X on regular expressions)
2013-10-19 19:21:23 +09:00
Junegunn Choi
831cecdaf2
Implement g:easy_align_bypass_fold switch ( #14 ) with a small fix
2013-10-15 23:00:43 +09:00
Junegunn Choi
37fa908d04
Remove s:max function
...
Sadly function calls are rather slow in Vimscript.
Test shows that this commit reduces the response time by 10%.
2013-10-13 12:16:58 +09:00
Junegunn Choi
256e5b83ab
Remove recursion not to fail in case of many delimiters (> maxfuncdepth)
2013-10-13 03:31:05 +09:00
Junegunn Choi
cb7306341c
Use function() instead of a forwarding function
2013-10-13 02:10:33 +09:00
Junegunn Choi
7b82a1e496
Fix: right margin sometimes not attached in partial alignment
2013-10-13 02:09:06 +09:00
Junegunn Choi
ad2df21039
Add alignment rule for LaTeX tables ( #13 )
2013-10-10 22:15:23 +09:00
Junegunn Choi
133588b181
Testing with Vader.vim
2013-10-09 20:16:58 +09:00
Junegunn Choi
2bf1b2164d
Allow shorthand option notation when using delimiter key
...
e.g. :EasyAlign=l2r2dlmlr**
2013-10-07 21:09:37 +09:00
Junegunn Choi
fa26fd7b42
Remove option value after every cycle
2013-10-05 15:27:50 +09:00