macvim-dev / macvim-dev/macvim

too man macvim applet in docky while using gvimdiff as svn diff tool

未关闭
#607 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

i am using gvimdiff tool for svn diff:
svn_diff

#!/bin/bash

svn diff --diff-cmd diffwrap.sh "$@" 2>/dev/null

diffwrap.sh

#!/bin/bash

gvimdiff $6 $7

svn status:

M       trunk/main/main.cpp
M       trunk/principle/dllmain.cpp

while i type svn_diff in terminal, the terminal show:

Index: trunk/main/main.cpp
===================================================================
Index: trunk/principle/dllmain.cpp
===================================================================
2 files to edit
2 files to edit 

two diff files open(two macvim window show, and a new macvim applet shows in docky).
how to get one diff file and one macvim window per times ? that is, while i type svn_diff in terminal,
the terminal show:

Index: trunk/main/main.cpp
===================================================================

and i quit the macvim, next time, it show

Index: trunk/principle/dllmain.cpp
===================================================================

and one new macvim show simultaneously.
in the end, while finished svn_diff(:qa in gvim_diff per diff), two macvim applet in docky, on is default i put, another is a new one. every time i execute svn_diff, always a new macvim is stick to the docky if i do not quit it.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用多个已修改文件运行提到的 svn_diff 和 diffwrap.sh 脚本来重现问题,然后检查 gvimdiff 如何启动 MacVim 窗口和 dock 小程序。完成的标准是连续的 diff 使用同一个 MacVim 窗口,并且会话结束后不会留下额外的 dock 小程序。

由索引模型根据 Issue 内容生成。

评估

技术栈
bash, macos, vim
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。