machakann
70022d9277
Implement g:sandwich#input_fallback option
2022-02-06 22:35:23 +09:00
machakann
b0a4a10f15
Define keymappings explicitly in tests
2022-01-29 22:17:43 +09:00
machakann
ac3affcb8f
Could not cancel action with Esc if input is not a character
2021-11-28 20:15:32 +09:00
machakann
02e3b6d1ff
Ignore arrow keys (and non-printable) inputs
...
Close #90
2020-02-14 00:19:21 +08:00
machakann
d037c6ed13
Fix tests
...
The results for the tests depends on the version of Vim. Just skip.
2019-03-02 21:02:08 +08:00
machakann
558b858706
Suppress autoformatting in a surrounding operation ( #71 )
2019-01-29 21:56:13 +08:00
machakann
5dd57dbf8a
s:get_assigned_region() doesn't work well with cp932 ( #66 )
2018-05-29 17:55:04 +08:00
machakann
80b15ded06
The calculation of indent level was wrong ( #53 )
2017-11-11 13:16:06 +08:00
machakann
5e3fc273a2
Fix test: Do not use runtime files. It may behave differently with versions. ( #52 )
2017-10-28 19:59:44 +08:00
machakann
15ff877b92
Autoindent breaks the operator-add ( #52 )
2017-10-28 16:01:17 +08:00
machakann
47e9432725
Fix a bug on linewise-add action.
...
For example, saiw<Enter> add empty lines incorrectly, because "\<Enter>" =~# '\n' is *not* true.
Pointed out in issue #20 .
2016-09-15 19:11:25 +09:00
machakann
82c06f0bd3
Revise notification and error messaging.
2016-04-10 18:55:17 +08:00
machakann
dbeaae3339
Add a new local option "listexpr". ( #16 )
2016-04-10 18:55:08 +08:00
machakann
f8b353b0ea
Add 'default' to a local option 'cursor' and set it as default.
...
It is almost same as 'inner_head' but move cursor to the first non-space character if the cursor is on the head of line.
2016-04-05 15:48:16 +08:00
machakann
1de59a01ca
Drop funcref support of buns.
...
It is nothing convenient. Make the source codes messing up.
2016-04-05 11:35:46 +08:00
machakann
2b5bb9c34d
Disable several test.
...
Problem: 'cindent' behaves differently in old vim?
2016-04-03 16:27:43 +08:00
machakann
9a5c5f1c8f
Test more strictly.
2016-04-02 20:30:20 +08:00
machakann
b861d0e689
Fix weird behaviors with autoindent. ( Close #7 )
...
Since these operators edit a text from tail to head to avoid shifting target region, autoindent features haven't worked well. This commit changes that let the operators edit from head to tail with computing shift, it makes more similar as user does and reasonable for autoindent functions.
At the same time, because the problem has been solved, default values of a local option 'autoindent' are set to -1 (as user is using).
2016-03-28 00:56:05 +08:00
machakann
81d07deef2
Change numbering for tests.
2016-03-15 22:43:05 +08:00
machakann
cdd6f29c36
Add test for multibyte characters.
2015-09-29 19:14:52 +08:00
machakann
a87b6dcf76
Fix a bug with a region including line-breaking.
...
This commit fixes a bug with a region including line-breaking at a edge of
the region. The ended line-breakings could have been ignored to skip.
2015-09-12 19:19:13 +08:00
machakann
6eafe830fa
Fix a bug on 'filetype' filter.
2015-08-22 23:59:07 +08:00
machakann
73b14ab73d
Change specs in case that 'expr' buns would be Funcref.
2015-08-22 12:54:03 +08:00
machakann
aa2d30a278
There should be a way to cancel an operation in a evaluation of 'expr' buns.
2015-08-09 11:33:37 +08:00
machakann
1a73bad519
Change the specification of 'command' option.
2015-07-19 15:47:47 +08:00
machakann
dc6ef947c4
Add tests for undo.
2015-07-19 14:49:40 +08:00
machakann
fa6e7412d5
Add 'autoindent' option and 'indentkeys' options.
2015-07-17 21:49:44 +08:00
machakann
e71289d0b2
Rename 'front', 'end' to 'head', 'tail' of the local option 'cursor'.
2015-07-12 14:19:53 +08:00
machakann
83cda7a59b
Obsolete the global option 'hide_cursor' and set it as default.
2015-07-10 23:10:12 +08:00
machakann
168bcb3fd7
Correct the last commit.
2015-07-10 22:26:43 +08:00
machakann
3ddc4ee2f7
Add a global option 'g:operator#sandwich#hide_cursor'.
2015-07-10 21:57:34 +08:00
machakann
25d21a2232
Fix a bug on resolving method of input.
2015-07-10 13:18:10 +08:00
machakann
eda1f6e953
Change the behavior for blockwise regions.
2015-07-04 16:02:23 +08:00
machakann
c50ef0cd88
Rename a filter: 'user_filter' to 'expr_filter'.
2015-07-03 13:32:15 +08:00
machakann
3145a7e32f
Raname a local option: 'eval' to 'expr'.
2015-07-03 13:27:14 +08:00
machakann
69018d0d66
Define the spec of key mapping functions.
2015-07-03 11:08:47 +08:00
machakann
ec05c169bb
Add 'user_filter'.
2015-06-19 15:41:40 +08:00
machakann
e78e54a38c
Add test for 'input' and 'filter's
2015-06-19 14:23:36 +08:00
machakann
63876a95b7
first commit
2015-05-23 16:43:17 +08:00