Giter VIP home page Giter VIP logo

emacs-tmux-pane's People

Contributors

jaidetree avatar joaofnds avatar laishulu avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emacs-tmux-pane's Issues

tmux-pane seems to be opening a new pane every time the file is required

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?

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.