All Projects → shivamashtikar → tmuxjump.vim

shivamashtikar / tmuxjump.vim

Licence: MIT license
A plugin to open file from file paths printed in sibling tmux pane

Programming Languages

Vim Script
2826 projects
shell
77523 projects

Projects that are alternatives of or similar to tmuxjump.vim

dotfiles
i3, Vim, Bash, Ruby, Typescript & React, Elixir, Golang & more!
Stars: ✭ 22 (-56%)
Mutual labels:  tmux, fzf, nvim
dotstow
dotfiles managed with stow
Stars: ✭ 60 (+20%)
Mutual labels:  tmux, fzf
dotfiles
💾 personal configuration files
Stars: ✭ 42 (-16%)
Mutual labels:  tmux, nvim
dotfiles
mac OS, Arch Linux, and Debian/Ubuntu
Stars: ✭ 286 (+472%)
Mutual labels:  tmux, fzf
dotfiles
No description or website provided.
Stars: ✭ 20 (-60%)
Mutual labels:  tmux, fzf
dotfiles
Poom's Neovim, Tmux, Fish and other configurations for macOS & Linux. Literally my entire world.
Stars: ✭ 36 (-28%)
Mutual labels:  tmux, nvim
tmuxinator-fzf-start
Uses fzf to provide a selection list for starting tmuxinator projects
Stars: ✭ 31 (-38%)
Mutual labels:  tmux, fzf
yaml.nvim
🍒 YAML toolkit for Neovim users
Stars: ✭ 81 (+62%)
Mutual labels:  nvim, telescope
dotfiles
shell, git, vim, tmux .etc dotfiles, managed via gnu stow
Stars: ✭ 20 (-60%)
Mutual labels:  tmux, fzf
dotfiles
A place to store config files so I can revert when my entire system crashes from entering the wrong character
Stars: ✭ 25 (-50%)
Mutual labels:  tmux, nvim
nvim
Structure, documented, super fast neovim configuration. 可能是翻斗花园最好用的 neovim 配置[^1]。
Stars: ✭ 223 (+346%)
Mutual labels:  nvim, telescope
kali-config
Linux colorful dotfiles.
Stars: ✭ 40 (-20%)
Mutual labels:  tmux, nvim
Dotfiles
using vim
Stars: ✭ 245 (+390%)
Mutual labels:  tmux, nvim
nvim configration
Neovim diy develop enviroment.This project integrates neovim tmux zsh and some very useful plugs of them including YouCompleteMe FZF auto pairs nerdtree ncm2 and so on.
Stars: ✭ 22 (-56%)
Mutual labels:  tmux, fzf
Tmux Fzf Url
🚀 Quickly open urls on your terminal screen!
Stars: ✭ 227 (+354%)
Mutual labels:  tmux, fzf
Black Void Zsh
🔮 Awesome, Customable Zsh Starter Kit 🌠🌠
Stars: ✭ 206 (+312%)
Mutual labels:  tmux, fzf
Tmux 1password
🔑 Access your 1Password login items within tmux!
Stars: ✭ 167 (+234%)
Mutual labels:  tmux, fzf
.dotfiles
🎆 Arch Linux with i3 / nvim / tmux / urxvt / zsh / ...
Stars: ✭ 167 (+234%)
Mutual labels:  tmux, nvim
dots
Code Smell Dotfiles
Stars: ✭ 163 (+226%)
Mutual labels:  tmux, nvim
neovimfiles
My Neovim configuration written in Lua
Stars: ✭ 52 (+4%)
Mutual labels:  nvim, telescope

tmuxjump.vim

A plugin to open file from file paths printed in sibling tmux pane.

Usecase

In my code flow, I open nvim in one tmux pand and in another I run compiler on watch. And as I code, it outputs any error/warning in the pane which contains exact location of error ex. src/Main.purs:29:1. Unlike Vscode I can't directly click on the path and open it in vim. So I created this plugin, which basically greps all the file path printed on sibling panes and populates them in fzf window. And then I can decide and jump to that location easily without moving out of nvim.

With Fzf.vim

TmuxJump

With Telescope.nvim

TmuxJump

Demo video

Install

Dependencies

This plugin is dependent on following

Installation

Use your favorite plugin manager.

Using vim-plug:

Plug 'shivamashtikar/tmuxjump.vim'

Using vundle:

Plugin 'shivamashtikar/tmuxjump.vim'

Using neobundle:

NeoBundle 'shivamashtikar/tmuxjump.vim'

With pathogen.vim, just clone this repository inside ~/.vim/bundle:

Configuration

Plugin exposes two commands TmuxJumpFile & TmuxJumpFirst

  • TmuxJumpFile will list files paths in fzf window
  • TmuxJumpFirst will jump to the first instance of the file (from bottom)
  • These command also take string as a param, which will be used to filter only the required files and then populate/jump location

Map a keybinding to trigger plugin

nnoremap <leader>ft :TmuxJumpFile<CR>
nnoremap <leader>; :TmuxJumpFirst<CR>

for Specific FileType, you can update keybinding using below command. So, when you're in purescript buffer, it'll only look for paths which contain purs string

autocmd FileType purescript nnoremap <leader>ft :TmuxJumpFile purs<CR>
autocmd FileType purescript nnoremap <leader>; :TmuxJumpFirst purs<CR>

Plugin by default uses fzf for listing files in window. However it supports Telescope.nvim too, which can be enabled by setting below variable in vimrc

let g:tmuxjump_telescope = v:true

Plugin by default capture sibling panes with capture.sh. However it supports custom script too, which can configured by setting below variable in vimrc

let g:tmuxjump_custom_capture = "/path/my_custom_script"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].