Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t9md/atom-open-this
Open file under cursor like `gf`(Vim), `C-x C-f`(Emacs)
https://github.com/t9md/atom-open-this
atom vim-mode vim-mode-plus
Last synced: about 2 months ago
JSON representation
Open file under cursor like `gf`(Vim), `C-x C-f`(Emacs)
- Host: GitHub
- URL: https://github.com/t9md/atom-open-this
- Owner: t9md
- License: mit
- Created: 2015-05-22T04:32:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T08:32:13.000Z (about 7 years ago)
- Last Synced: 2024-05-01T20:01:02.705Z (8 months ago)
- Topics: atom, vim-mode, vim-mode-plus
- Language: CoffeeScript
- Homepage: https://atom.io/packages/open-this
- Size: 36.1 KB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# open-this [![Build Status](https://travis-ci.org/t9md/atom-open-this.svg)](https://travis-ci.org/t9md/atom-open-this)
Open file under cursor.
Like `gf` on Vim, `C-x C-f` on Emacs.![gif](https://raw.githubusercontent.com/t9md/t9md/27a8b5d0b7dc4e080e615467e0daf3727c991835/img/atom-open-this.gif)
# How to use.
1. Place cursor on filename in text like on `./styles-element` in following code.
2. Invoke `open-this:here` via command palette or keymap.
3. file `./styles-element` opened in current pane.```coffeescript
StylesElement = require './styles-element'
StorageFolder = require './storage-folder'
```# Keymap
No default keymap, copy and paste to your `keymap.cson` from following example.
* Normal user
```coffeescript
'atom-workspace atom-text-editor:not([mini])':
'cmd-k f f': 'open-this:here'
'cmd-k f d': 'open-this:split-down'
'cmd-k f r': 'open-this:split-right'
```* [vim-mode](https://atom.io/packages/vim-mode) user.
```coffeescript
'atom-text-editor.vim-mode.normal-mode':
'g f': 'open-this:here'
'ctrl-w f': 'open-this:split-down'
'ctrl-w F': 'open-this:split-right'
```* [vim-mode-plus](https://atom.io/packages/vim-mode-plus) user.
```coffeescript
'atom-text-editor.vim-mode-plus.normal-mode':
'g f': 'open-this:here'
'ctrl-w f': 'open-this:split-down'
'ctrl-w F': 'open-this:split-right'
```