Giter VIP home page Giter VIP logo

multi-vterm's People

Contributors

caribpa avatar d1egoaz avatar drfiresign avatar galeo avatar gexplorer avatar juhp avatar purcell avatar suonlight 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  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  avatar

multi-vterm's Issues

Enabling vterm-mode should happen after the buffer is displayed

The way that multi-vterm-project works is that it creates a hidden buffer, enables vterm-mode and then displays it. There appears to be a race condition wherein vterm will set a terminal width to something that is wider than the window it is about to be displayed in. It has no way to know where it is about to be displayed. When the buffer is eventually displayed in a window, it is resized and it looks wrong. To make matters worse, vterm won't detect the size again immediately, it requires some other window or frame event to get it to recalculate.

Bad

CleanShot 2022-12-27 at 13 51 11@2x

Good

CleanShot 2022-12-27 at 13 51 39@2x

This is likely why vterm itself forces you to provide the pop to/display buffer function in the internal function that causes the buffer to have vterm-mode enabled:

https://github.com/akermu/emacs-libvterm/blob/f14d113ee4618f052879509ec378feb9766b871b/vterm.el#L1327-L1342

`multi-libvterm` function no longer accepts buffer name argument

Since the last update was merged, I am no longer able to provide a buffer name to the multi-libvterm function. Looks like the argument was removed?

EDIT: Not really sure how this actually works, but just adding the optional argument back in and nothing else results in the previous behaviour.. I'm sure it's something I just don't understand about elisp (is the optional arg being passed through implicitly somhow??)

Sending a PR that reverts the behavior for review

The error occurs on a small frame

The error occurs when the multi-vterm-current-window-height is equal to the multi-vterm-selected-window-height.

 (defun multi-vterm-dedicated-get-window ()
   (setq multi-vterm-dedicated-window
         (split-window
          (selected-window)
          (- (multi-vterm-current-window-height) multi-vterm-dedicated-window-height))))

which is defined

(defcustom multi-vterm-dedicated-window-height 30 ... )

which is what causes the error

(error "Window #<window 3 on *scratch*> too small for spli...")

To solve the problem, I wrote:

(use-package multi-vterm
  :ensure t
  :config
  (progn
    ...
    (setq multi-vterm-dedicated-window-height (/ (frame-height) 2))))

P.S. I hope you find a more elegant solution

Attemp to display deleted buffer.

Howdy,
When I am using multi-vterm with several vterminal buffers and trying to switch to next / priv one I get error message Attemp to disply deleted buffer even I have three *vterminal*<_> buffer.
E.g.:

ELISP> (seq-filter (apply-partially #'string-match-p "vterminal") (mapcar #'buffer-name (buffer-list)))
("*vterminal<3>*" "*vterminal<1>*" "*vterminal<2>*")
ELISP> (mapcar #'buffer-name multi-vterm-buffer-list)
(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil "*vterminal<2>*" nil "*vterminal<3>*")

as you can see, there is no vterminal<1> in multi-vterm-buffer-list. And I can't use multi-vterm-next when working at vterminal<2> even though there is third vterminal.

BR,
Chengjun

Avoid `switch-to-buffer` when launching multi-vterm

The usage of switch-to-buffer in the multi-vterm command makes the initial display of vterm ignore the user's display-buffer-alist customization.

To reproduce this, you can set:

(setq display-buffer-alist
'(("^\\*vterminal.*$" display-buffer-at-bottom)))

and run M-x multi-vterm.

Consider replacing it with pop-to-buffer-same-window, or let-binding switch-to-buffer-obey-display-actions around the switch-to-buffer call instead?

having several term buffers on dedicated window

thanks for working on this package. I have this itch with multi-vterm-dedicated-toggle, I would like to open additional terms on the same dedicated window akin to opening term tabs in Gnome's terminal so I can always have the same amount of screen space while different terms are used for different things or are in different "cwd".

symbols function definition is void: position

Whenever I try to use the multi-libvterm-prev/next commnads, I get the following error: symbols function definition is void: position

multi-term also uses the same function position, but its not having any issues? Any idea how I can fix this?

EDIT: figured out how to fix this issue, replace position with cl-position from cl-lib

Publish on MELPA? ๐Ÿ™

Is it possible to make this package available on MELPA? It would help a lot new users installing and updating! Thank you very much for creating this package ๐Ÿ™Œ ๐Ÿ‘

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.