Files
neovim/runtime/doc
Christian Clason f2894bffb0 lua: Add highlight.on_yank (#12279)
* add lua function to highlight yanked region

* extract namespace, better naming, default values

* add default for event argument

* free timer

* factor out mark to position calculation

* d'oh

* make sure timer stops before callback (cf. luv example)

* factor out timer, more documentation

* fixup

* validate function argument for schedule

* fix block selection past eol

* correct handling of multibyte characters

* move arguments around, some cleanup

* move utility functions to vim.lua

* use anonymous namespaces, avoid local api

* rename function

* add test for schedule_fn

* fix indent

* turn hl-yank into proper (hightlight) module

* factor out position-to-region function

mark extraction now part of highlight.on_yank

* rename schedule_fn to defer_fn

* add test for vim.region

* todo: handle double-width characters

* remove debug printout

* do not shadow arguments

* defer also callable table

* whitespace change

* move highlight to vim/highlight.lua

* add documentation

* add @return documentation

* test: add check before vim.defer fires

* doc: fixup
2020-05-18 09:49:50 -04:00
..
2018-10-29 09:55:07 +01:00
2019-11-25 01:08:02 -08:00
2020-01-12 23:41:55 -08:00
2019-08-02 16:20:23 +02:00
2019-08-02 16:20:22 +02:00
2020-03-02 12:59:35 +01:00
2018-10-29 09:32:29 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2020-01-12 23:41:55 -08:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2019-11-17 19:06:59 -08:00
2019-08-02 16:20:23 +02:00
2019-08-02 16:20:23 +02:00
2019-09-06 18:30:35 -07:00
2020-01-12 23:41:55 -08:00
2019-12-31 02:25:10 -08:00
doc
2019-09-09 09:53:19 -07:00
2020-05-18 09:49:50 -04:00
2018-08-25 15:25:49 +02:00
2018-08-25 15:25:49 +02:00
2019-12-31 02:25:10 -08:00
2019-12-31 02:25:10 -08:00
2019-11-17 19:06:59 -08:00
2019-03-26 19:55:33 +01:00
2018-10-29 09:55:07 +01:00
doc
2018-11-05 22:45:48 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2015-08-15 15:25:30 -03:00
2018-10-29 09:55:07 +01:00
2020-01-20 19:43:59 -05:00
2018-10-30 00:02:22 +01:00
2019-03-26 19:55:33 +01:00
2019-09-14 18:57:35 -07:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2020-01-12 23:41:55 -08:00
2018-10-29 09:55:07 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-07-29 20:50:07 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-09-12 17:04:05 -07:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-03-26 19:55:33 +01:00
2018-10-29 10:01:44 +01:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2019-08-01 23:27:26 +02:00
2019-11-25 01:08:02 -08:00