Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files opened through :e don't appear in macOS recents views #1320

Open
5 of 7 tasks
adinklotz opened this issue Oct 19, 2022 · 1 comment
Open
5 of 7 tasks

Files opened through :e don't appear in macOS recents views #1320

adinklotz opened this issue Oct 19, 2022 · 1 comment
Labels
Feature Request New features request. Not an existing issue or bug.

Comments

@adinklotz
Copy link

adinklotz commented Oct 19, 2022

Steps to reproduce

  1. Make a new text file somewhere: touch ~/Desktop/test.txt
  2. Open a new empty macvim window
  3. Open that file from the Vim command line: :e ~/Desktop/test.txt
  4. Right click the macvim dock icon and note that the file is not in the list of recent files

Expected behaviour

macOS shows recently opened files in a number of places, e.g. in Apple menu > Recent Items, in the right-click menu on the dock icon, and at the bottom of the App Expose / "Show all windows" view.

Files opened in macvim through other means (I've tested opening from Finder, opening from ⌘O in macvim, and opening with vim -g $file on the command line) adds the files to this recents list. I would expect files opened the vimmy way with :e to also be included. It adds an extra cognitive step to know I had a file open in macvim recently, but to have to remember how I opened it to know the fastest way of getting back to it. (Not sure if this qualifies as a bug per se or just a non-feature, but either way I'd love it taken care of)

Version of Vim and architecture

Vim 9.0, compiled Sep 15 2022, macOS version arm64,

Environment

OS: macOS Monterey 12.6
terminal: iTerm
$TERM: xterm-256color
shell: zsh 5.8.1

How MacVim was installed

Homebrew

Logs and stack traces

No response

Vim configuration where issue is reproducable

Reproducible on clean config

Issue has been tested with given configuration

  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Other conditions

  • The both Homebrew packages "vim" and "macvim" are installed
@ychin
Copy link
Member

ychin commented Oct 20, 2022

(Not sure if this qualifies as a bug per se or just a feature oversight, but either way I'd love it taken care of)

It's not really a bug per se but more a lack of feature. But yes this has been on my mind to fix, but probably not in the next couple releases. I've been trying to understand what the desired behavior should be since there are a lot of ways to load files in to Vim and it doesn't always communicate the result back to MacVim (aka the GUI layer), so if we want to cover all use cases we need to install a lot of hooks within Vim to communicate back to MacVim, so I'll need to think a little more about how to properly do that or would we even want that.

@ychin ychin added the Feature Request New features request. Not an existing issue or bug. label Oct 20, 2022
@ychin ychin added this to the Release 177 milestone Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New features request. Not an existing issue or bug.
Projects
None yet
Development

No branches or pull requests

2 participants