Files
macvim-mirror/runtime/autoload
Yee Cheng Chin d8a4dcbe89 Add Vim script support and a popup menu for data lookup
Add a new Vim script function `showdefinition()` that allows Vim script
to call back to macOS's data lookup feature and show the definition /
URL preview / etc for any text, at a designated row/col position. If the
row/col are not provided this function will just show it at the cursor.

Also, add a new autoload/macvim.vim for utility functions to call
showdefinition() for selected texts and the word under cursor. Make a
new right-click popup menu "Look Up" call that when there are selected
texts in visual mode to make the lookup functionality easier to access
for users without a trackpad (since Ctrl-Cmd-D is a little obscure and
unwieldy to use). For the utility functions, it was a little hard to
determine how to get the text under visual selection without yanking (we
don't want to pollute the register here), and just implemented a
function to take care of all the edge cases including visual/block/line
modes and selection=exclusive. It could be useful in other situations.

As a side refactor, change the message handler in MacVim from if/else to
switch case. In optimized builds, they both essentially optimize to the
same thing, but for debug builds, the if/else statements have to step
through one by one, and switch case just makes more sense for a giant
message ID lookup like this.

Part of Epic #1311
2022-10-14 19:32:50 -07:00
..
2022-10-03 18:04:35 +01:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2022-07-25 15:42:07 +01:00
2022-01-31 15:40:56 +00:00
2022-03-30 10:51:39 +01:00
2022-09-27 17:30:34 +01:00
2021-09-21 20:09:51 +02:00
2021-09-09 21:55:11 +02:00
2022-07-01 18:45:04 +01:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2020-08-07 19:54:59 +02:00
2019-11-10 22:09:11 +01:00
2021-10-04 21:32:54 +01:00
2020-09-19 18:50:13 +02:00
2021-08-29 21:55:35 +02:00
2021-09-09 21:55:11 +02:00
2022-03-30 10:51:39 +01:00
2022-08-24 18:30:14 +01:00
2021-09-09 21:55:11 +02:00
2021-06-27 15:18:56 +02:00
2020-07-10 22:00:53 +02:00
2021-09-09 21:55:11 +02:00
2021-05-02 17:19:11 +02:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2022-08-15 18:51:32 +01:00
2021-09-09 21:55:11 +02:00
2020-03-01 19:06:45 +01:00
2021-11-16 19:18:26 +00:00

The autoload directory is for standard Vim autoload scripts.

These are functions used by plugins and for general use.  They will be loaded
automatically when the function is invoked.  See ":help autoload".

gzip.vim	for editing compressed files
netrw*.vim	browsing (remote) directories and editing remote files
tar.vim		browsing tar files
zip.vim		browsing zip files
paste.vim	common code for mswin.vim, menu.vim and macmap.vim
spellfile.vim	downloading of a missing spell file

Omni completion files:
ccomplete.vim		C
csscomplete.vim		HTML / CSS
htmlcomplete.vim	HTML
javascriptcomplete.vim  Javascript
phpcomplete.vim		PHP
pythoncomplete.vim	Python
rubycomplete.vim	Ruby
syntaxcomplete.vim	from syntax highlighting
xmlcomplete.vim		XML (uses files in the xml directory)