anyframe icon indicating copy to clipboard operation
anyframe copied to clipboard

added vagrant widgets

Open sumik5 opened this issue 10 years ago • 0 comments

summary

Added vagrant widgets.

There are some vagrant tools like this widgets.

But these plugins are too slow, because they use vagrant global-status to show host lists.

To show vagrant hosts, I pick vagrant-global-status command. (faster than vagrant global-status command which is included in vagrant installer. see https://github.com/monochromegane/vagrant-global-status) If vagrant-global-status is not installed, this plugin call vagrant global-status.

anyframe-widget-vagrant

Plugin to execute vagrant {command} {hostname | id}.

2015-08-24 13 56 55

2015-08-24 13 57 09

At first, I made anyframe-widget-vagrant-hoge_command files to execute a vagrant command, and added bindkey settings in .zshrc like below.

bindkey '^v^u' anyframe-widget-vagrant-up
bindkey '^v^h' anyframe-widget-vagrant-halt
bindkey '^v^s' anyframe-widget-vagrant-suspend
bindkey '^v^j' anyframe-widget-vagrant-cdr

But selecting a command from "anyframe" is more convenient than above ways.

anyframe-widget-vagrant-box

Plugin to execute vagrant box {command} {boxname}. As well as anyframe-widget-vagrant, you choose a command at first, and select a name to exec the command.

2015-08-24 14 48 05

anyframe-widget-vagrant-cdr

Plugin to execute cd {vagrant directory}.

_2015-08-24_14_49_09

etc

You can also see vagrantの各種コマンドを、anything風に操作できるようにする.(zsh+peco+anyframe)

sumik5 avatar Aug 24 '15 06:08 sumik5