【问题标题】:How do I open multiple remote files with sublime text 3?如何使用 sublime text 3 打开多个远程文件?
【发布时间】:2020-03-23 22:52:43
【问题描述】:

我目前正在使用 rsub (rmate for sublime text 3) 在本地打开远程文件。

rmate myFile1.txt

将打开一个本地选项卡。

但是当我尝试打开多个远程文件时:

rmate myFile*

仍然只有一个本地选项卡打开一个远程文件。 如何使用 * 一次打开多个文件?

【问题讨论】:

    标签: ssh sublimetext3


    【解决方案1】:

    rmate 不支持目录,如错误所示:

    $ rmate ~/Folder
    /home/me/Folder is a directory and rmate is unable to handle directories.
    


    您可以使用find“找到”您的文件并将它们传递给rmate

    例如,使用findrecursively find all files in current directory and subfolders 并使用-exec 打开每个使用rmate 找到的项目

    find . -name "*.txt" -exec rmate {} \;
    

    使用不带-exec rmate {} \; 部分的find 命令仅显示结果;

    $ find .
    ./file1.txt
    ./file2.txt
    ./folder/file1.txt
    ./folder/file2.txt
    

    【讨论】:

    • 谢谢 - 这行得通,但你能解释一下你的解决方案吗?
    • 请看我的编辑,希望清楚,请点击链接
    猜你喜欢
    • 2016-09-24
    • 1970-01-01
    • 2023-03-07
    • 1970-01-01
    • 2015-06-15
    • 2014-12-11
    • 2016-08-11
    • 2014-05-26
    相关资源
    最近更新 更多