laishulu / emacs-tmux-pane Goto Github PK
View Code? Open in Web Editor NEWFuse emacs windows with tmux panes.
License: GNU General Public License v3.0
Fuse emacs windows with tmux panes.
License: GNU General Public License v3.0
With this plugin enabled via tpm, it causes tmux server to exit:
server exited unexpectedly
From here: https://github.com/laishulu/emacs-tmux-pane/blob/master/tmux-pane.el#L108
It looks as if line 119 (copied below)
:autoload
(defun tmux-pane-toggle-horizontal()
"Toggle horizontal pane."
(interactive)
;; have more than one pane
(if (< 1 (length
(split-string
(string-trim
(tmux-pane--ensure-dir
(shell-command-to-string "tmux list-panes")) "\n"))))
(tmux-pane-close)))
(tmux-pane-open-horizontal)
is unconditionally opening a horizontal split whenever this file is sourced. For my config, this results in many panes getting opened, at least one new pane every time some other package I'm running spawns some async function call with batch emacs running in the background!
In the previous version (before commit 93f9fcc) the code (https://github.com/laishulu/emacs-tmux-pane/blob/dd34555f2f91b73c3cc7546914a1f53f59608995/tmux-pane.el) seems to have kept the toggle contained in the toggle-horizontal function rather than having the open-horizontal function free-standing:
:autoload
(defun toggle-horizontal()
"Toggle horizontal pane."
(interactive)
;; have more than one pane
(if (< 1 (length
(split-string
(string-trim
(-ensure-dir
(shell-command-to-string "tmux list-panes")) "\n"))))
(close)
(open-horizontal)))
is change this intentional?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.