3 Star 0 Fork 0

g8up / sublimetext3-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
go_to_file.py 504 Bytes
一键复制 编辑 原始数据 按行查看 历史
g8up 提交于 2017-06-05 16:16 . init repo
# SublimeText3 增强:自动填充已选文本到`Ctrl + P`面板
# Repo: https://gist.github.com/g8up/405c9372512be540cd6bfe13a49ce6e1
import sublime_plugin
class ShowGotoOverlayWithSelectionCommand(sublime_plugin.WindowCommand):
def run(self):
window = self.window
view = window.active_view()
text = view.substr(view.sel()[0])
window.run_command("show_overlay", {
"overlay": "goto",
"show_files": True,
"text": text
})
Python
1
https://gitee.com/g8up/sublimetext3-plugin.git
git@gitee.com:g8up/sublimetext3-plugin.git
g8up
sublimetext3-plugin
sublimetext3-plugin
master

搜索帮助