ssh - 如何使用 Sublime Text 3 打开多个远程文件?

标签 ssh sublimetext3

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

rmate myFile1.txt

将打开一个本地选项卡。

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

rmate myFile*

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

最佳答案

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

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


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

例如,使用find来查找recursively 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

关于ssh - 如何使用 Sublime Text 3 打开多个远程文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60822646/

相关文章:

sublimetext3 - 崇高的片段不起作用

networking - 基于 SSH 隧道的远程调试器

git - 用于推送的 Git native 协议(protocol)或 SSH 协议(protocol)之间的区别

windows - 从 Git Gui (windows) 推送到远程 Git 存储库的问题

python - Sublime Text 3、Python 3 和 UTF-8 彼此不喜欢

sublimetext3 - Hard Wrap 表现得像 Sublime Text 中的 Soft Wrap

sublimetext - Sublime MarkdownEditing 插件配色方案和行号

python - 我对这种消极的前瞻做错了什么?过滤掉正则表达式中的某些数字

linux - 如何从脚本(csh/tcsh)调用 ssh?

Python 3.6 Tkinter 和多重处理