https://github.com/gianarb/notify.vim
System notify for vim
https://github.com/gianarb/notify.vim
Last synced: about 1 year ago
JSON representation
System notify for vim
- Host: GitHub
- URL: https://github.com/gianarb/notify.vim
- Owner: gianarb
- Created: 2014-03-28T02:48:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-01-03T12:01:28.000Z (over 11 years ago)
- Last Synced: 2025-03-27T18:53:31.493Z (over 1 year ago)
- Language: VimL
- Size: 159 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notify.vim
![Vim Desktop notifications][screencast]
## Rationale
This plugin is intended to be used by with other plugins that do background jobs and wants to notify the user about the success of a specific job.
See the [#Examples](#examples) section for use cases.
## Implemented notification emitters
- osascript (Mac OSX)
- notify-send (Ubuntu)
## Installation
### Using Vundle
Add to your plugins
```
Plugin 'gianarb/notify.vim'
```
## Usage
Send a notification
### Using the emitNotification function
```vim
call notify#emitNotification('Title', 'Body')
```
### Using the command
```vim
:Notify title content
```
### From command line
```bash
vim +Notify\ title\ body +qall
```
## Examples
### Automatic ctags with notification when completed
**Dependencies**
- tpope/[vim-dispatch](https://github.com/tpope/vim-dispatch) (execute commands asynchronously)
**Add to your vimrc**
```vim
function! GenerateCtags()
Dispatch! ctags -R && vim +Notify\ "Horray"\ "Ctags\ updated" +qall
endfunction
au BufWritePost *.c,*.cpp,*.h,*.php call GenerateCtags()
```
[screencast]: http://i.imgur.com/7iyrMrx.gif