Code Monkey home page Code Monkey logo

alfred-tmux-workflow's People

Contributors

ramiroaraujo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alfred-tmux-workflow's Issues

Add support for scripts like tmx (i.e. autocomplete)

Very nice workflow :)

Perhaps one nice addition would be to add support for wrapper scripts like tmx (here's my version: https://github.com/WoLpH/dotfiles/blob/master/bin/tmx) which automatically launches a new tmux session and activates your environment.

Currently I'm just using it from the shell with this little zsh completion script to save me some typing:

#compdef tmx

local active_sessions all_sessions

_active_sessions() {
    if [ -n "$(tmux ls 2>/dev/null)" ]; then
        active_sessions=($(tmux ls | awk -F ':' '{print $1}' | tr '\n' ' '))
    fi
}

_all_sessions() {
    [ -d ~/workspace ] && all_sessions=($(ls -1 ~/workspace | sed -e 's/\.sparseimage.*//' | grep -v '\.' | grep -iE '[a-z0-9]*'))
}

_active_sessions
_wanted active_sessions expl 'Active sessions' compadd -a active_sessions

_all_sessions
_wanted all_sessions expl 'All sessions' compadd -a all_sessions

Error with nightly iTerm2

I receive the following when using this workflow after switching to iTerm2 nightly builds as these include a feature to open new terminals in windows instead of tabs.

[ERROR: alfred.workflow.action.script] Code 0: open_tmux_session.scpt:410:418: script error: Expected class name but found identifier. (-2741)

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.