2015-07-28 151 views

回答

2

它可能不會像上面描述的那樣工作,但browser-plus包可能適用於您的情況。

它會在您的Atom實例中打開一個瀏覽器,允許您直接從Atom內部瀏覽網頁。有幾個默認的鍵盤快捷方式打開常用的網站,如Stack Overflow,Google或DevDocs,它允許你定義自己喜歡的自定義URL(Ctrl + F4) - 你可以配置它打開Colorzilla。

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

+0

真棒,會嘗試它! –

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" 
    } 

] 
1

但我發現這個問題,問搜索引擎時,如何直接打開與Atom編輯過的文本到外部瀏覽器的URL。

如果你也搜索了這個,我想告訴你關於小型open-path插件。它通過Mac cmd-o上的雙鍵組合和Windows/Linux上的ctrl-o(默認情況下)在光標下打開文件或URL。此外,它複製圖像的大小,如果你需要:)