macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.47k stars 680 forks source link

Epic: Support dictionary/data lookup in MacVim #1311

Open ychin opened 1 year ago

ychin commented 1 year ago

It is useful to support the ability to look up a piece of selected / highlighted text in MacVim and show a OS popup that gives you more information. #1191 was the original issue, but this work has ballooned as this becomes more ambitious and need to span multiple commits. Using this epic to track the work and elicit ideas / brainstorm.

eirnym commented 1 year ago

I wonder if there will be an option to disable this feature. It would be even better if I can control what to disable. e.g. if I'd like to disable macOS dictionary lookups leaving URL recognition.

ychin commented 1 year ago

Why would you need to disable it? This only triggers per user interaction. If you don’t like the built in dictionary you can just not trigger the lookup which is quite hard to accidentally do.

eirnym commented 1 year ago

Yep, I don't want to trigger is dictionary lookup. Dictionary for Polish, primary language I use beside English during writing a code is so poor and I there's no way to install a custom one, so I don't use this feature in macOS at all as it's completely useless.

Additionally, I like MacVim to be a editor with lightweight OS integration when I don't need it. Also I like Vim itself for an ability to customise it.

As a possible solution I propose make operations noop. I agree, that custom integration is a good thing, but not the macOS dictionary.

ychin commented 1 year ago

I still don’t understand under what circumstance would this be an issue for you? Can you be more specific? I’m not asking why you don’t like the built in dictionary (note that this allows looking up other data like general knowledge articles, not just definitions of words). I'm asking why we would need an option to turn this off.

Only known ways I know to trigger this:

I just don’t understand why you would care if you never use this feature. Most macOS applications support this so this is a pretty basic OS integration. I think options make sense when there is a reason for them but not when the feature is completely opt in to begin with.