

GitHub - Colmbus72/slim: Interact with slack using vim!
source link: https://github.com/colmbus72/slim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

______ __ __ __ __
/\ ___\ /\ \ /\ \ /\ "-./ \ Slack \ Vim
\ \___ \ \ \ \____ \ \ \ \ \ \-./\ \ Slack \ Vim
\/\_____\ \ \_____\ \ \_\ \ \_\ \ \_\ Slack \ Vim
\/_____/ \/_____/ \/_/ \/_/ \/_/ Slack \ Vim
Disclaimer
- This is my first vim plugin and I know I am probably doing some things wrong, I would love to know how to make this better.
- This project is a work in progress
- The goal is to write as much as possible of the app in vimscript and to use the outside world as little as possible
Slack Workspace App
Create a new workspace app on your Slack App Dashboard
Go to Add Features and Functionality
> Permissions
Under User Token Scopes
add these scopes
chat:write
team:read
users:read
channels:read
channels:history
groups:read
groups:history
im:read
im:history
mpim:history
mpim:read
Vim Requirements
+ conceal
System Requirements
curl
Installation
Using Pathogen
# if you have not used pathogen before add this to your ~/.vimrc
execute pathogen#infect()
# clone slim into your bundle dir
cd ~/.vim/bundle
git clone https://github.com/Colmbus72/slim.git
Usage
Getting started
# Add this line to your ~/.vimrc to alias the command :Slack
command! Slack :call slim#StartSlack()
Open vim and run :Slack
Enter your workspace token generated earlier xoxp-xxx...
Test that the tokens have the correct permissions by running tw<CR>
Run :W
to generate all your workspace and channel files and overwrite anything in the .data/workspaces dir
Commands
Mapping | Function |
---|---|
:Slack |
Start slack |
<leader>l |
refresh the current channel page |
<leader>c |
change to channel list and start search |
<leader>b |
change to write buffer and insert at the end |
<leader>w |
send entire write buffer to slack as a message |
<leader>q |
close slack |
Recommend
-
100
vimux - vim plugin to interact with tmux
-
67
README.rst Modin
-
65
README.md
-
32
I recently had an opportunity to work on a fantastic research and development project at Netguru. The goal of project (codename: “Wordguru”) was to create a card game that anyone can play with their friends. You can see t...
-
207
README.md PHP JIRA Rest Client
-
15
How to Interact with Business Processes Using Camel RoutesThe JBPM KIE server has a rich set of REST APIs that allows control...
-
6
-
9
Interact with Bluetooth devices using Google Chrome October 24, 2020 Blu...
-
4
Using Python to interact with and manage Azure AD apps and Azure Service Principals 4 minute read | By Anthony Salemo
-
5
ZygoteAIRevolutionize the way you interact with AI using ZygoteAIFree OptionsIntroducing ZygoteAI, a game-changing software that lets you customiz...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK