macvim-dev / macvim-dev/macvim

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

Abierto
#1,320 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Feature Request
Lenguaje dominante
Vim Script
Estrellas
7.9k
Forks
691
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza rastreando cómo MacVim gestiona los archivos abiertos mediante el comando :e cuando se ejecuta desde la GUI y, después, compara ese flujo con los archivos abiertos mediante Finder, ⌘O o vim -g $file. Usa la reproducción con una configuración limpia y verifica que, después del cambio, el archivo aparezca en Apple menu Recent Items, en el menú del Dock y en App Expose.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
macos, vim
Área
desktop, operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.