preservim / vimux

easily interact with tmux from vim
MIT License
2.2k stars 159 forks source link

Added VimuxRunCommandInDir + doc #116

Closed hpurmann closed 9 years ago

hpurmann commented 9 years ago

As I was working with vimux, I really wanted an option to execute a specified command in the folder of the currently opened file (current buffer).

That's what VimuxRunCommandInDir does. I added my two personal use cases to the documentation.

Please tell me what you think.

benmills commented 9 years ago

What I'm worried about is this will mean future commands will now run in the direction you changed to. If you added cd - it should solve the problem.

hpurmann commented 9 years ago

Good idea. I didn't like that cd - displays the folder path in this case. That's why I piped it into /dev/null

hpurmann commented 9 years ago

Is it ok now? Let me know what you think ;)

hpurmann commented 9 years ago

It would be very nice if you could act on this pull request. Please tell me what is missing or how the function could be improved to be merged into this nice repository.

benmills commented 9 years ago

Sorry about the slow response! This looks great thanks for incorporating my feedback!