GithubHelp home page GithubHelp logo

tmuxcontrols's Introduction

tmuxcontrols

Neovim plugin for code debugging via tmux panes.

Setup and usage

Paste these on your .vimrc

let tmux_rename=1 				" tmux winows will be renamed the same as the open file.

let $tmuxInterpreter = 'python3' 		" primary interpreter, this is the program that will run your script.

let $tmuxInterpreter_alternative = 'python' 	" secondary interpreter, second option of interpreter.

let $tmuxcommand = 'pytest' 			" runs command without argument.

let $size_vertical = 23				" size of the new vertical pane

let $size_horizontal = 38			" size of the new horizontal pane

let $venv = "~PATH/bin/activate"		" Sets virtual environment when the new pane is created

mapping commands

nmap çç :call Runtmux_horizontal()<CR><CR> 	" Opens new pane horizontally and runs script.

nmap çÇ :call Runtmux_vertical()<CR><CR>  	" Opens new pane vertically and runs script.

nmap çc :call Runtmux_alternative()<CR><CR> 	" Opens new pane horizontally and runs script with alternative interpreter.

nmap çy :call Runtmux_copy()<CR><CR> 		" Copies output to the system clipboard with xclip.

nmap çe :call Runtmux_execute()<CR><CR>		" Executes script itself as shell command

nmap Ç :call Runtmux_command()<CR><CR>		" Opens new pane horizontally and runs command without argument.

nmap çl :call Runtmux_clean()<CR>		" Sends clear command to the debugging pane. 

nmap çs :call Stop_tmux()<CR><CR>		" Sends ^C command to the debugging pane.

nmap gf :call Runtmux_new_file()<CR><CR>	" gf opens file on new tmux window, instead of a new vim buffer.

TODO

Run script on a new window

tmuxcontrols's People

Contributors

athostha avatar

Stargazers

 avatar

Watchers

 avatar

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.