Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yohasebe/vim-command-workflow
An Alfred workflow to search Vim command cheat sheet + type commands
https://github.com/yohasebe/vim-command-workflow
alfred alfred-workflow cheatsheet neovim vim
Last synced: 10 days ago
JSON representation
An Alfred workflow to search Vim command cheat sheet + type commands
- Host: GitHub
- URL: https://github.com/yohasebe/vim-command-workflow
- Owner: yohasebe
- License: mit
- Created: 2022-07-02T13:19:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-10T23:12:37.000Z (about 2 years ago)
- Last Synced: 2023-03-10T19:25:05.022Z (over 1 year ago)
- Topics: alfred, alfred-workflow, cheatsheet, neovim, vim
- Language: Ruby
- Homepage:
- Size: 12.1 MB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# Vim Command Alfred Workflow
**An Alfred workflow to search Vim command cheat sheet +** ***type commands***
This is an Alfred workflow that searches a Vim command cheat sheet and sends vim commands directly to the front-most application running Vim, Neovim, etc.
It uses the data from the awesome multi-lingual Vim cheat sheet project [https://github.com/rtorr/vim-cheat-sheet](https://github.com/rtorr/vim-cheat-sheet).
## Requirements
- [Alfred](https://www.alfredapp.com/) (4 or 5)
- [Alfred Powerpack](https://www.alfredapp.com/shop/)## Installation
1. Download [vim-command.alfredworkflow](https://github.com/yohasebe/vim-command-workflow/raw/main/vim-command.alfredworkflow).
2. Double-click the workflow file
3. Set up a hotkey trigger (`^⇧⌘v` for instance)## Usage
### Search and type Vim commands
Type `vimc` in Alfred or use the hotkey if you have set up one. You can narrow down commands returned by typing-in one or more search keys.
- Type `vimc` into Alfred or use a hotkey if set
- Enter one or more search keys to narrow down the commands returned
- Select a command and the Vim command will automatically be typed into the front-most app### Quick look cheatsheet
Type `vimc-web` to open Vim Cheatsheet at [https://vim.rtorr.com](https://vim.rtorr.com) in the specified locale.
## Locale
Vim command descriptions are displayed in one of the following languages, depending on the setting of the variable `locale` (default value: `en_us`).
To set locale, type `set locale` in Alfred and choosing from the list. Alternatively, press [x] button on the upper right corner of the Alfred's workflow and go to the "Environment Variables" section.
**N.B.** Currently, searches are always performed against the cheat sheet in `en_us`, regardless of `locale` setting.
| Locale | Code |
| --------- | ------ |
| [العربية](https://vim.rtorr.com/lang/ar) | `ar` |
| [বাংলা](https://vim.rtorr.com/lang/bn) | `bn` |
| [Català](https://vim.rtorr.com/lang/ca) | `ca` |
| [Deutsch](https://vim.rtorr.com/lang/de_de) | `de_de` |
| [English](https://vim.rtorr.com/lang/en_us) | `en_us` |
| [Español](https://vim.rtorr.com/lang/es_es) | `es_es` |
| [Persian](https://vim.rtorr.com/lang/fa_ir) | `fa_ir` |
| [Français](https://vim.rtorr.com/lang/fr_fr) | `fr_fr` |
| [עברית](https://vim.rtorr.com/lang/he) | `he` |
| [Hrvatski](https://vim.rtorr.com/lang/hr) | `hr` |
| [Bahasa Indonesia](https://vim.rtorr.com/lang/id) | `id` |
| [Italiano](https://vim.rtorr.com/lang/it) | `it` |
| [日本語](https://vim.rtorr.com/lang/ja) | `ja` |
| [한국어](https://vim.rtorr.com/lang/ko) | `ko` |
| [မြန်မာ](https://vim.rtorr.com/lang/mm) | `mm` |
| [Nederlands](https://vim.rtorr.com/lang/nl_nl) | `nl_nl` |
| [Norsk](https://vim.rtorr.com/lang/no_nb) | `no_nb` |
| [Polski](https://vim.rtorr.com/lang/pl_pl) | `pl_pl` |
| [Português - Brasil](https://vim.rtorr.com/lang/pt_br) | `pt_br` |
| [Português - Portugal](https://vim.rtorr.com/lang/pt_pt) | `pt_pt` |
| [Romana](https://vim.rtorr.com/lang/ro) | `ro` |
| [Русский](https://vim.rtorr.com/lang/ru) | `ru` |
| [සිංහල](https://vim.rtorr.com/lang/si_lk) | `si_lk` |
| [Slovenčina](https://vim.rtorr.com/lang/sk) | `sk` |
| [Svenska](https://vim.rtorr.com/lang/sv) | `sv` |
| [ภาษาไทย](https://vim.rtorr.com/lang/th) | `th` |
| [Türkçe](https://vim.rtorr.com/lang/tr) | `tr` |
| [Українська](https://vim.rtorr.com/lang/uk) | `uk` |
| [Tiếng Việt](https://vim.rtorr.com/lang/vi_vn) | `vi_vn` |
| [简体中文](https://vim.rtorr.com/lang/zh_cn) | `zh_cn` |
| [中文 (台灣)](https://vim.rtorr.com/lang/zh_tw) | `zh_tw` |## Author
Yoichiro Hasebe ()