macvim-dev / macvim-dev/macvim
Allow bringing window to top instead of opening a new editor on a file that is already being edited
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Vim Script
- Star
- 7.9k
- Fork
- 691
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
My primary pain point with MacVim is that I often want to edit a file I am already editing, somewhere in the deep stack of windows. It would be a time-saver if it were easier to just bring that window to the top with keyboard focus, in the case where I am editing that file, but instead create a new editing window in the case where I am not currently editing it. Currently it always opens an editing window but then warns me that the file is already being edited, which is better than not warning, but also not as efficient as it could be.
Ideally there would be an option to gvim that tells it just to wake up the existing editor window if the file is already being edited.
The main alternative is to write a script to detect whether a file is being edited, using AppleScript to bring the appropriate window to the foreground. I've actually written such a script but it seems unnecessarily painful.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xem xét cách gvim xử lý một tệp đang được chỉnh sửa và cách MacVim cung cấp quyền truy cập vào tiêu điểm cửa sổ, với giải pháp thay thế AppleScript hiện có làm bối cảnh. Được xem là hoàn thành khi một tùy chọn đưa cửa sổ trình chỉnh sửa hiện có lên tiêu điểm đối với tệp đã mở, đồng thời vẫn mở một cửa sổ chỉnh sửa mới khi tệp chưa được mở.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- macos, vim
- Lĩnh vực
- desktop
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100