alfred-tmux-workflow


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2014-02-02
使用用户:  1
Github星:  15
插件作者:  Ramiro Araujo

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'ramiroaraujo/alfred-tmux-workflow'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'ramiroaraujo/alfred-tmux-workflow'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'ramiroaraujo/alfred-tmux-workflow'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/ramiroaraujo/alfred-tmux-workflow

Ⅳ. 文档说明

# (CLOSED) Tmux Workflow for Alfred app

This project is no longer mantained. Since tmux is command line by nature, I don't find any advantage of managing sessions from within Alfred

Alfred workflow to manage tmux sessions, integrated with iTerm2. It can list current sessions, connect to them, kill them or create a new one. The connect or create action actually opens iTerm2 and connects to the session. Additionally, in all the open actions (new session or connect to session) it can cd to the current Finder's or Path Finder's directory.

Please note: the workflow only handles tmux sessions. It doesn't handle windows, panes, or any other tmux command.

Dependencies

  • iTerm2 installed
  • tmux installed in /usr/local/bin/tmux; easily installed with homebrew doing brew install tmux

Usage

Write the tmux keyword in Alfred to trigger the workflow.
tmux main menu

The initial menu options are:

  1. An initial not actionable menu item indicating to keep writing after the keyword to search/filter or create a new session.
  2. Option to connect to a default tmux session. It's a session named "default" that will always appear in the menu, and if it doesn't exists it will be automatically created.

You can start typing right away after the keyword for search or create a session, or optionally add a space after the keyword for readability; the space is ignored. You'll see the filtered results (bash/zsh included), and a last option to created a new tmux session with the entered name, if non existent.

tmux create session
tmux search sessions

If you want to kill a session, action it with ⌥ down. If failure, for example trying to kill the bash/zsh option, you'll hear a classic error sound.

If you want to open the current Finder's or Path Finder's folder, action the current or new session with ⌘ down. This command is very fast for new tmux sessions but adds a delay of 1 second for existent tmux sessions, since I cannot find a way to wait for tmux session to load, except by waiting long enough. Still, opening current Finder's path in already existing sessions shouldn't be that common.

Installation

For OS X 10.9 Mavericks, Download the alfred-tmux.alfredworkflow and import to Alfred 2.

For Previous OS X Versions, Download the alfred-tmux.alfredworkflow and import to Alfred 2.

Changelog

  • 2014-02-05 - Released

添加新评论