macvim-dev / macvim-dev/macvim

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

Aperta
#1,320 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Feature Request
Lingua principale
Vim Script
Stelle
7.9k
Fork
691
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia tracciando il modo in cui MacVim gestisce i file aperti tramite il comando :e quando viene eseguito dalla GUI, quindi confronta questo percorso con quello dei file aperti tramite Finder, ⌘O o vim -g $file. Usa la riproduzione con una configurazione pulita e verifica che, dopo la modifica, il file appaia in Apple menu Recent Items, nel menu del Dock e in App Expose.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
macos, vim
Ambito
desktop, operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.