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
Junegunn Choi
a4a1e27395
Apply ignore_unmatched option on R/C mode if explicitly set
...
By default, unmatched trailing token from each line is also aligned in
right and center alignment modes unlike in left alignment mode. If
ignore_unmatched option is explicitly set to 1 by user, they will be ignored
even in right/center modes.
2013-10-05 12:23:44 +09:00
Junegunn Choi
98bd9fe6f0
Shorthand notation for ignore_groups/ignore_unmatched
...
e.g. ig['String']iu0
2013-10-04 02:29:24 +09:00
Junegunn Choi
f944f5bf29
Set g:easy_align_last_command
2013-10-04 02:07:35 +09:00
Junegunn Choi
9d3afa6206
Merge option values in dictionary and shortcut expression
2013-10-04 01:36:55 +09:00
Junegunn Choi
4c6a8c174d
Implement shortcut expression for options
2013-10-03 21:59:51 +09:00
Junegunn Choi
3304f4e95a
Make <Down> set both left and right margin to zero
...
(Undocumented) <Up> will clear *UP* left_margin, right_margin, and stick_to_left
2013-10-03 16:06:23 +09:00
Junegunn Choi
2d575bcc25
Underscore between parens
2013-09-22 22:56:27 +09:00
Junegunn Choi
5230a2402f
Disallow 0 as the first character of N-th
2013-09-22 21:58:31 +09:00
Junegunn Choi
94a750e03e
Remove unnecessary prev output wipe
2013-09-22 21:48:14 +09:00
Junegunn Choi
afc95b5ed7
Forgiving interactive mode: Do not terminate on invalid input
2013-09-22 21:17:02 +09:00
Junegunn Choi
1d2c58c06a
Field index -> N-th parameter
2013-09-22 03:52:36 +09:00
Junegunn Choi
2797baca6c
Disallow non-printable character input
2013-09-21 12:04:56 +09:00
Junegunn Choi
663264ed39
Fix center-alignment
...
= = eee = eee = f
= = gg &&= gg
= = fff
= = eee = eee = f
= = gg &&= gg
= = f f
2013-09-21 03:31:34 +09:00
Junegunn Choi
df75520f72
Colored, replayable output
2013-09-21 03:11:20 +09:00
Junegunn Choi
a2d52611ee
Fix invalid type conversion
2013-09-20 23:19:32 +09:00
Junegunn Choi
fce0a103ff
Use try-finally for reverting the setup
2013-09-19 17:27:26 +09:00
Junegunn Choi
1752bf567b
Improve message output
...
- Error message highlighting
- Wipe previous message if needed
- No line wrap on narrow terminal
2013-09-19 17:10:00 +09:00
Junegunn Choi
9cf4fde00c
Use number as margins (same effect, but easier to read)
2013-09-17 03:12:30 +09:00
Junegunn Choi
d3803b927d
Heuristically determine if the user was in visual mode
2013-09-14 23:15:03 +09:00
Junegunn Choi
40a06e3d36
Left arrow key will also set left_margin to zero
...
- Right arrow key will set left_margin to one
- Up and Down arrow will clear the values of stick_to_left and left_margin
2013-09-14 17:30:51 +09:00
Junegunn Choi
9f9d18ca71
Fix #8 , #9 , and #10 .
...
- <Left> and <Right> key to toggle stick_to_left option
- <CTRL-X> in addition to <CTRL-/> to take regular expression
- Retain visual selection display on <CTRL-O/L/R/X>
2013-09-14 12:31:01 +09:00
Junegunn Choi
301bdbcfc7
Regular expression in interactive mode ( #8 )
2013-09-14 00:40:16 +09:00
Junegunn Choi
56e498a57d
Implement mode_sequence expansion ( #7 )
2013-09-14 00:05:08 +09:00
Junegunn Choi
6cac16dc3d
Include =~# and =~? in = rule (Vimscript)
2013-08-25 23:03:30 +09:00
Junegunn Choi
25fec2e955
Implement stick_to_left in center-alignment mode
2013-08-23 17:47:03 +09:00
Junegunn Choi
01337b9c4e
Include .= operator in = rule
2013-08-23 17:40:13 +09:00
Junegunn Choi
2ad49b24f0
Add CTRL-O special key for mode_sequence option
2013-08-23 00:09:21 +09:00
Junegunn Choi
5058de6f4c
Retain lm and rm values on CTRL-L and CTRL-R
2013-08-22 23:47:25 +09:00
Junegunn Choi
4c5d6d9e82
Improve center-alignment: ignore leading whitespaces
2013-08-22 23:41:21 +09:00
Junegunn Choi
12c319a8ac
Implement special keys to switch option values in interactive mode
...
With this commit, we can now change option values in interactive mode with the
folowing special keys
- CTRL-L left_margin
- CTRL-R right_margin
- CTRL-D delimiter_align
- CTRL-I indentation
- CTRL-U ignore_unmatched
- CTRL-G ignore_groups
('ignores' option has been renamed to 'ignore_groups', but backward-compatible)
2013-08-20 01:38:20 +09:00
Junegunn Choi
5222db47cf
Rename align_mode to mode_sequence
2013-08-19 02:37:46 +09:00
Junegunn Choi
74003c0297
Allow interactive mode with options
2013-08-19 02:25:38 +09:00
Junegunn Choi
999e1ff68e
Implement center-align mode and align_modes option
2013-08-19 02:09:34 +09:00
Junegunn Choi
11a74c4176
Fix right-justification for lines with different indentation
2013-08-16 23:47:01 +09:00
Junegunn Choi
5c6558bd1b
Improve right-justification mode
...
With this commit you can right-align the last token with * or ** field number.
For example, the following lines
a = 1
bb = 22
ccc = 333
are aligned as follows on `:EasyAlign**=`
a = 1
bb = 22
ccc = 333
And even if we don't have the second =, we can do `:EasyAlign!2=` to get
a = 1
bb = 22
ccc = 333
2013-08-16 13:58:28 +09:00
Junegunn Choi
b6625f6d2b
Fix: Unmatched token incorrectly ignored in right-justification mode
2013-08-16 09:37:04 +09:00
Junegunn Choi
1e2af43a64
Ignore unmatched line on right-justification mode
...
Unmatched line is NOT ignored on right-justification mode. However this
commit makes such a line ignored when the end of the line is highlighted
as one of the ignored syntax groups (e.g. Comments or Strings)
2013-08-16 02:23:00 +09:00
Junegunn Choi
0fb997d5ab
Add g:easy_align_indentation. Add n indentation option.
2013-08-16 01:38:50 +09:00
Junegunn Choi
90a5487974
Add indentation option
2013-08-16 00:15:57 +09:00
Junegunn Choi
aad5012615
Allow whitespaces between delimiter key and options
2013-08-13 20:38:23 +09:00
Junegunn Choi
0166077e16
Case-insensitive match of delimiter_align
2013-08-13 00:19:56 +09:00
Junegunn Choi
5e6e60d620
Add delimiter_align option
2013-08-12 20:33:04 +09:00
Junegunn Choi
712bab8c72
Allow zero-width matches
2013-08-12 11:58:52 +09:00
Junegunn Choi
7d031956ab
Fix regression: lines with indentation
2013-08-12 01:47:05 +09:00
Junegunn Choi
c4dbfece32
Disallow recursive alignment in blockwise-visual mode
2013-08-12 01:34:14 +09:00
Junegunn Choi
a2811dc253
Add a proper support for \@=
2013-08-12 00:54:34 +09:00
Junegunn Choi
b3281fb19a
Allow matching preceding atom with zero-width (\@=)
2013-08-11 02:33:22 +09:00