macvim-dev / macvim

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

Invisible proxy icon (AKA window title icon) #1503

Closed ilyagr closed 3 weeks ago

ilyagr commented 1 month ago

Steps to reproduce

Start without MacVim running.

  1. open -a MacVim file.md. mvim file.md also works the same (I have a symlink to mvim in my PATH).
  2. Observe the lack of the proxy icon.
image

Actually, the proxy icon still works if you know where to start dragging, but it is invisible.

Workaround (further adventure)

  1. Go to appearance settings
image
  1. Check "Hidden title bar" and uncheck it again
  2. The proxy icon is visible now.
image

Expected behaviour

The proxy icon should be visible regardless.

Version of Vim and architecture

MacVim r180, Vim 9.1.727, ARM, on

Environment

Sonoma 14.7

I'm using the dark theme for it. Somewhere in Apple's Settings, I also selected the option to make it show the proxy icons without having to click on the title first. Update: I mean the "Apple Settings -> Display -> Show window title icons" option.

How MacVim was installed

From GitHub

Logs and stack traces

No response

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

Issue has been tested with no configuration

Other conditions

ychin commented 1 month ago

This was actually done intentionally when I implemented #1038. It isn't really a bug as I just thought this looks cleaner, but in retrospect providing an option to show file name or not might have been the easier / cleaner solution.

Was the motivation for this issue post entirely for the ripdrag linked issue? I was curious what you use the icon for.

ilyagr commented 1 month ago

I would currently mainly use it for that, yes. I may or may not open the file only to drag it.

It feels like a bug that toggling the "hide window bar" option changes the look.

By default, Mac OS Sonoma hides the icon until you click on the window title. I'm not sure how easy that is, but ideally you'd follow that behavior and respect the "show window icons" system option for people who want to avoid that click.

ychin commented 1 month ago

Yeah I think having a separate option properly makes more sense. Sometimes trying to be too smart is detrimental to having a consistent setting. I'll put this to backlog.

By default, Mac OS Sonoma hides the icon until you click on the window title. I'm not sure how easy that is, but ideally you'd follow that behavior and respect the "show window icons" system option for people who want to avoid that click.

I think this only applies to the combined toolbar mode. For example, Finder and Preview does that, but TextEdit doesn't.

In fact, MacVim also does that if you use the toolbar as well (:set go+=T). Either way it wouldn't affect our decision here.