Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

viniarck/tmuxdir.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python application

tmuxidir is a tmux session workspace plugin for nvim.

tmuxdirlogo

Deprecation Notice

tmuxdir.nvim is no longer actively maintained, you should use telescope-tmuxdir instead.

It turns out that denite.nvim is no longer actively maintained (and developed), so I've replaced it with telescope, which has a strong and active ecosystem of plugins.

tmuxdir workflow

  • You can manage tmux sessions and projects from nvim.
  • A project directory is identified with a root marker (folder or file) in a set of base directories (e.g.,~/repos/).
  • Each project is mapped to a tmux session, so a tmux session acts as a workspace.
  • You can have additional tmux sessions mapped to the same project if you want.

Features

  • Denite source tmux_session for tmux sessions.
  • Denite source tmux_dir for tmux project directories.
  • Any folder can also be statically bookmarked as a project TmuxdirAdd(dir).
  • Automatically discover new projects once a root marker is found.

Screencast

  • :Denite tmux_session and :Denite tmux_dir

tmuxdir_final2_cropped.gif

Installation

Note: tmuxdir requires denite.nvim, pynvim, Neovim 0.3+ and Python3.6+

  • If you use dein:
call dein#add('viniarck/tmuxdir.nvim')
call dein#add('Shougo/denite.nvim')
  • If you use vim-plug:
Plug 'viniarck/tmuxdir.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/denite.nvim'

TLDR basic config

let g:tmuxdir_base_dirs = ['~/repos', '~/projects', '~/src'] " Set of base directories to look for your projects

let g:tmuxdir_root_markers = ['.git'] " root markers to identify projects

For more information, key bindings, and available functions, check doc/tmuxdir.txt out.

How to use

  • Tmux sessions:
:Denite tmux_session
  • Tmux project directories:
:Denite tmux_dir

Docs / Release Notes

tmuxdir.txt