Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pocari/vim-denite-gists
denite.nvim plugin for show and browse Gist
https://github.com/pocari/vim-denite-gists
denite python3 vim
Last synced: about 2 months ago
JSON representation
denite.nvim plugin for show and browse Gist
- Host: GitHub
- URL: https://github.com/pocari/vim-denite-gists
- Owner: pocari
- License: mit
- Created: 2017-02-22T06:27:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T13:25:51.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T14:12:33.029Z (5 months ago)
- Topics: denite, python3, vim
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred-test - pocari/vim-denite-gists - denite.nvim plugin for show and browse Gist (Python)
README
# vim-denite-gists
[![wercker status](https://app.wercker.com/status/7a58aecc6f45b93472161196c3cc9464/s/master "wercker status")](https://app.wercker.com/project/byKey/7a58aecc6f45b93472161196c3cc9464)`vim-denite-gists` is a source for [denite.nvim](https://github.com/Shougo/denite.nvim).
This plugin can open gist page with Denite interface.
![vim-denite-gists-screenshot](https://cloud.githubusercontent.com/assets/1496543/23336842/1fbe0a0a-fc1f-11e6-9d32-10ad6c4797c6.gif)
## depends
This plugin depends on:
* [denite.nvim](https://github.com/Shougo/denite.nvim)
* [vim-denite-kind-open-browser](https://github.com/pocari/vim-denite-kind-open-browser)
* [open-browser.vim](https://github.com/tyru/open-browser)## install
For [dein.vim](https://github.com/Shougo/dein.vim)
```vim
call dein#add('Shougo/denite.nvim')
call dein#add('tyru/open-browser.vim')
call dein#add('pocari/vim-denite-kind-open-browser')
call dein#add('pocari/vim-denite-gists')
```## usage
`:Denite gists`
or
`:Denite gists:[github user name]`Default Action is `open` with `open-browser.vim`.
You can choose multiple candidates, and you can open them by multiple browser tab.
## github user detection
1. argument on startup
Denite gists:pocari
2. from your .gitconfig
if following section exists in your gitconfig, it is used.
e.g) ~/.gitconfig
```
[github]
user = pocari
```3. no argument and no github section in gitconfig
A prompt for entering the user name is displayed at startup.## Tips
### resume
`:Denite gists` is slow because it uses web API call.
So, if you know that `gist` contents are not changed, you can run like this.```
Denite gists -buffer-name=gists -resume
```And, when you want to refresh,
```
Denite gists -buffer-name=gists -resume -refresh
```