写代码测试的过程中一直有一个操作让我很难受,就是windows的目录斜杠和linux的是不一样的。就想写个插件能在我粘贴的时候自动把斜杠改过来
本来想自己写的,但是发现了一个不错的工具就和大家分享一下
https://github.com/hluk/CopyQ
是开源的,可以直接下载编译好的文件进行安装。
为了实现我们的自动修改反斜杠的功能还需要一个配置文件
配置文件的内容如下:
[Command] Name=CopyPath Command=" copyq: copy(str(input()).replace(//////g,'///'))" Input=text/plain Automatic=true InMenu=true HideWindow=true
复制后保存为CopyPath.ini文件
安装好后打开主界面如下所示:
按F6添加命令:
加载命令选择先前保存好的CopyPath.ini文件,apply ok就可以实现我们需要的功能了,其他功能大家自己开发吧。