Giter Site home page Giter Site logo

edit-slack.vim's Introduction

edit-slack.vim

Open slack, like a file

demogif

Installation

1. download vim script

  • vim-plug
  • Plug 'yaasita/edit-slack.vim'
  • NeoBundle
  • NeoBundle 'yaasita/edit-slack.vim'
  • Vundle
  • Plugin 'yaasita/edit-slack.vim'
  • Vim packages (since Vim 7.4.1528)
  • git clone https://github.com/yaasita/edit-slack.vim ~/.vim/pack/plugins/start/edit-slack.vim

2. download edit-slack binary

Save binary under edit-slack.vim directory.
Rename the file name to edit-slack (windows user is edit-slack.exe)

example. Linux(64bit) User

cd /path/to/install/directory/edit-slack.vim
curl -L -O https://github.com/yaasita/edit-slack/releases/download/v0.8.2/linux-amd64-edit-slack
mv linux-amd64-edit-slack edit-slack # windows user is edit-slack.exe
chmod +x edit-slack

Settings

Get token from slack API page.

Add the token to vimrc.

let g:yaasita_slack_token = "xoxp-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxx"

When displaying Unicode characters

set fileencodings+=utf-8
set encoding=utf-8

Usage

uri

# open channels/private group/users list
vim slack://ch
vim slack://pg
vim slack://dm
# gf command opens a chat under the cursor

# open general channel
vim slack://ch/general

# in the vim
:e slack://ch
:tabe slack://dm/hogeuser

# reload
:e

# post
# write it under the "=== Message ===" mark
:w

# search word
vim slack://sw/hoge
vim slack://sw/from:@yamasita_on:today # replace space with _

Mechanism

mechanizm

(c) gopher stickers

edit-slack.vim's People

Contributors

yaasita avatar

Watchers

James Cloos avatar Sunny Pun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.