• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

open-in-app

Open your file within any of your external application instantly
  • #open
  • #file
  • #application
  • #browser
  • #html
aviatesk
1.0.1 1,784
2
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Atom Open-in-App

This very simple :atom: package allows you open any of your file instantly from Atom editor within any application you want.

overview

Features

  • Files can be opened both from text editor and tree view.
  • You can open files easily from context menu, instantly with key bindings.
    • Keyboard shortcut support is provided on .tree-view panel as well.
  • The bindings between file extension and application are configurable: i.e. You can set a default application in which files gonna be opened, and also create additional file-extension to application mappings.

Usage

You can open any of your file from context menu:

  • Right-click text-editor or tree-view ⟶ Select Open File in App menu

Or you can use keyboard shortcuts:

  • (with focusing text editor or tree-view) Just type Ctrl-Shift-B

Configuration

Default application

defaultApplication:

  • sets a default application in which files without any binding is going to be opened. If you leave this field blank, then files without application-binding will be opened in a "default" application, which is detected by your OS
  • should be a String of a path to the default application (default "")
  • e.g.: "code" would open every non-bound file in VS Code. (But you know, we, :atom: lovers, should NOT do this at any cost 😜 !)

File extension to application bindings:

applicationBindings:

  • binds file extensions to any of your application
  • should be Object that maps String of a file extension to String of a path to an application (default {})
  • e.g.: { ".html": "C:/\"Program Files (x86)\"/Google/Chrome/Application/chrome.exe", ".txt": "notepad.exe" } will open every .html files in chrome and .txt files in notepad, in Windows OS

Configuration example

~/.atom/config.cson

"*":
  ...
  "open-in-app":
    applicationBindings: { ".py": "code" } # edit Python in VSCode 
    defaultApplication: "chrome" # open files in Chrome by default 
  ...

License

This package is under MIT License.

Acknowledgements

While development, I cited considerable amount of code from Open in Browser Atom.io Package created by @magbicaleman.

Author

  • Shuhei Kadowaki - Undergraduate@Kyoto Univ. - aviatesk

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by