如何直接从Atom打开链接

问题描述:

我在构建简单原型时使用colorzilla很多,有没有办法通过直接在Atom中输入命令打开某个网站链接?喜欢的东西:如何直接从Atom打开链接

link:open-colorzilla 

,比一些片断文件说我有colorzilla设置为http://www.colorzilla.com/gradient-editor/

这是可能的,因为这将是辉煌的。

它可能不会像上面描述的那样工作,但browser-plus包可能适用于您的情况。

它会在您的Atom实例中打开一个浏览器,允许您直接从Atom内部浏览网页。有几个默认的键盘快捷方式打开常用的网站,如Stack Overflow,Google或DevDocs,它允许你定义自己喜欢的自定义URL(Ctrl + F4) - 你可以配置它打开Colorzilla。

同样,它不是你要找的100%,但它非常接近。

+0

真棒,会尝试它! –

我使用的是一个flex-tool-bar plugin(它需要安装tool-bar package),它会自定义按钮。您可以从免费的最大图书馆中选择不同的图标。例如,我正在使用按钮:在外部浏览器中打开优先级URL,git diff,js beautify,markdown,重新启动原子按钮和其他。 我的设置:

[ 
    { 
    type: "button" 
    icon: "document" 
    callback: "application:new-file" 
    tooltip: "New File" 
    iconset: "ion" 
    } 
    { 
    type: "button" 
    icon: "folder" 
    callback: "application:open-file" 
    tooltip: "Open..." 
    iconset: "ion" 
    } 
    { 
    type: "button" 
    icon: "save" 
    callback: "core:save" 
    tooltip: "Save" 
    iconset: "fa" 
    } 
    { 
    type: "spacer" 
    } 

    { 
    type: "button" 
    icon: "columns" 
    iconset: "fa" 
    callback: ["pane:split-right", "pane:split-right"] 
    } 

    { 
    type: "button" 
    icon: "fire" 
    callback: "atom-beautify:beautify-editor" 
    tooltip: "JS beautify" 
    iconset: "fa" 
    } 

    { 
    type: "button" 
    icon: "shuffle" 
    callback: "git-diff:toggle-diff-list" 
    iconset: "ion" 
    } 

    { 
    type: "spacer" 
    } 

    { 
     type: "button" 
     icon: "markdown" 
     callback: "markdown-preview:toggle" 
     disable: "!markdown" 
    } 

    { 
    type: "url" 
    icon: "bitbucket" 
    url: "https://bitbucket.org/dashboard/repositories" 
    tooltip: "My bitbucket repos" 
    iconset: "fa" 
    } 

    { 
    type: "url" 
    icon: "fighter-jet" 
    url: "https://***.atlassian.net/secure/***" 
    tooltip: "Jira My Board" 
    iconset: "fa" 
    } 

    { 
    type: "url" 
    icon: "wink" 
    url: "https://****.world" 
    tooltip: "My Production" 
    iconset: "icomoon" 
    } 

    { 
    type: "url" 
    icon: "glass2" 
    url: "https://***.world/explore/" 
    tooltip: "Explorer Prod" 
    iconset: "icomoon" 
    } 

    { 
    type: "spacer" 
    } 

    { 
    type: "button" 
    icon: "refresh" 
    callback: "window:reload" 
    tooltip: "Reload window" 
    iconset: "ion" 
    } 

    { 
    type: "button" 
    icon: "gear-a" 
    callback: "settings-view:open" 
    tooltip: "Open Settings View" 
    iconset: "ion" 
    } 

    { 
    type: "button" 
    icon: "plug" 
    callback: "user:restart" 
    tooltip: "Restart Atom" 
    } 

    { 
    type: "button" 
    icon: "terminal" 
    callback: "command-palette:toggle" 
    tooltip: "Command Palette" 
    } 

] 

但我发现这个问题,问搜索引擎时,如何直接打开与Atom编辑过的文本到外部浏览器的URL。

如果你也搜索了这个,我想告诉你关于小型open-path插件。它通过Mac cmd-o上的双键组合和Windows/Linux上的ctrl-o(默认情况下)在光标下打开文件或URL。此外,它复制图像的大小,如果你需要:)