Giter VIP home page Giter VIP logo

emamux's People

Contributors

syohex avatar thierryvolpiatto avatar yuki-inoue 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emamux's Issues

accept semicolon in the command window.

if you are sending SQL commands through emamux:sendcommand you currently have to escape the semicolons. you should probably make sure to escape the command arguments that you pass to the shell command.

I think doing shell-quote-argument on command should do the trick.

Feature request: set tmux window title to 'frame-title' formatted string

Just found emamux and found it very useful. Thanks for sharing.

Tried looking for a function like 'set-window-title' or the like in emamux: namespace, but found nothing. Such a function would already be useful on its own, I guess.
Add the code/function which would hook where appropriate and a setting variable to enable the feature and I think it's good to go.

Is it possible to recognize 'tmux' when an emacsclient is inside a tmux session?

I can run commands and regions if I start a new Emacs instance within an already existing tmux session using emacs -nw. However, if I start an Emacs daemon outside of tmux and start a client inside emacs like so - emacsclient -t, I get the error that I'm not in 'tmux'. The weird part is the I can still split the tmux pane, create a new window and clone the current frame. Is it not possible to run commands when a client is open inside tmux?

Run last command?

Hi,

I really love the vimux in vim, happy to see you port it to emacs, thank you!

I am quite new to Emacs (elisp), (only few days after really use it), so sorry for my stupid question.

I really enjoy the VimuxRunLastCommand function in vimux, and found some similar code in Emamux, but still can't find any way to use it, could you let me know?

Thank you!

Is it possible to send code to an arbitrary pane?

As of now, we can

  • Send a command to a runner pane
  • Send some code to a runner pane
  • Send a command to any tmux pane

I can use the same functions (emamux:send-command) to send chunks of code that I yank from the kill ring. Is it possible to pick any tmux pane as a runner pane and send code to it?

Edit: Never mind. I figured it out with emamux:send-region. My bad for not looking properly.

Handle emamux:new-window on tramp cases

When on a remote file, e.g. /ssh:some-server:~/hoge.txt, first ssh some-server and then cd ~/hoge.txt.

I'm planning to implement such feature, (and send you a PR when finished).

Default Keymaps

I thought it would be nice if this package supported a default keymap, and binding it to the global keymap with a customisable prefix key.

Any opinon...?

How could we handle multiple sessions nicely?

I tried to start using tmux session feature for separating workspace for each projects I'm currently working on. I assume that emacs is designed so that only one emacs process is invoked for each user, and user uses emacsclient to connect to that emacs process for invoking emacs editor on each terminal.

I noticed that, if we are working on multiple sessions, the pane creating commands, such as e.g. emamux:split-window , creates new pane on the original session which contains the emacs process. This is trouble some if we wanted to manage sessions as workspace for separate projects.

I wonder if it is possible to enhance the feature of emamux so that each of these command creates pane on the session in which the pane creating command is issued.

Any idea/opinion..?

`emamux:send-command` with argument

I want to programmatically send commands to a tmux pane that is not necessarily invoked by emamux:run-command. Is there any way to do this? emamux:send-command doesn't accept arguments.

detach current session.

Does emamux support detaching current session? I tried emamux:run-command with detach. It has no effect.

how do I configure 'runner pane'

Hi, excuse me if this is a noob question.

I am trying to use emamux:run-command. After I type my command I get the error "You are not in 'tmux'". I am not sure how to configure this to work.

inspect-runner: erorr- no runner pane

I send command to tmux use this package successfully, then I want to check the content of the output, so I tried to run inspect-runner, but it complain no runner pane, so how to create a runner pane? I check all the command but there is no related command

Feature request: Run current line

Hi, emamux would be really useful for teaching if one could send shell commands from a .sh file line-by-line. Would it be possible to get a function/command to send the current line to tmux and then jump to the next line?

Emamux detects and interacts with any existing tmux session

  1. On a previous, existing tmux session running with no Emacs running inside...
  2. Open Emacs outside tmux (graphical, X11 version).
  3. Execute emamux:new-window from X11 Emacs.
  4. New window opens on tmux.

Additional test:
5. Open another tmux session.
6. Execute emamux:new-window from X11 Emacs.
7. New windows on latest open tmux.

I guess detection code is the culprit of this behaviour.
As for detecting if under tmux, the TMUX environment variable can be checked, which will be non-nil if under tmux session. Also, the TMUX env var contains info on current session different under each one.

I don't use more than one session, so the cross-tmux session manipulation is not that problematic. However, checking for non-nil on TMUX env var would at least avoid X11 Emacs interacting with tmux, although I'm unsure if it is always desirable, maybe it should be a configurable option.

Characters not sent across panes

Trying to send greek letters across panes results in the characters being blank (and the commands failing).
I am not sure this is a specific issue with emamux and the character encoding

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.