Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with emacsclient and teamocil (too fast?) #103

Open
paxperscientiam opened this issue Dec 20, 2015 · 1 comment
Open

Issue with emacsclient and teamocil (too fast?) #103

paxperscientiam opened this issue Dec 20, 2015 · 1 comment

Comments

@paxperscientiam
Copy link

Not sure what is happening, but I noticed that if I set several windows to create new file buffers with emacsclient, after (about) the 8th connection request, subsequent requests are refused.

The workaround for me is to "sleep" before making a new connection request.

Any thought about this? I'm thinking the core issue is that the emacs server is receiving requests too quickly, so maybe it's just a limitation of emacs.

EDIT: Feature request
Would you consider adding a "window" argument to teamocil? That is, allowing the user to feed in their yaml array of windows file -- as usual -- while allowing for specification of certain windows.

Something like this. Say the end-user's yaml file describes config for four windows.

teamocil example --window "Name1" "Name4"

The idea behind the above command is that the arguments would tell teamocil to only parse config data for window "Name1" and window "Name4." That's it in a nutshell.

@remi
Copy link
Owner

remi commented Aug 27, 2016

The idea behind the above command is that the arguments would tell teamocil to only parse config data for window "Name1" and window "Name4." That's it in a nutshell.

I get the idea, but I don’t think this will ever be implemented in Teamocil. Layouts are meant to be defined as a set of windows. What you could do to reproduce that behavior is create a single layout for each of your window.

# sample-1.yml
windows:
  - root: /Users/foo
    name: sample-1
    layout: even-horizontal
    panes:
      - echo "Hello"

# sample-2.yml
windows:
  - root: /Users/foo
    name: sample-2
    layout: even-horizontal
    panes:
      - echo "Hello"

# sample-3.yml
windows:
  - root: /Users/foo
    name: sample-2
    layout: even-horizontal
    panes:
      - echo "Hello"

And then you’ll be able to do this:

$ teamocil sample-1; teamocil sample-3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants