From 949c9fc6e6bdbb1486953019e4a6595c95d2ee91 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 21 Sep 2015 16:47:08 +0200 Subject: [PATCH] Add simple notifications system --- extension/lib/vim.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extension/lib/vim.coffee b/extension/lib/vim.coffee index d461eeb..d42cc24 100644 --- a/extension/lib/vim.coffee +++ b/extension/lib/vim.coffee @@ -69,4 +69,10 @@ class Vim args = Object.assign({vim: this, storage: @storage[@mode] ?= {}}, data) currentMode?[method].call(currentMode, args, extraArgs...) + notify: (title, options = {}) -> + new @rootWindow.Notification(title, Object.assign({ + icon: 'chrome://vimfx/skin/icon128.png' + tag: 'VimFx-notification' + }, options)) + module.exports = Vim -- 2.39.3