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

[Feature] Automatically create jump to process buffer binding on defining services #90

Closed
FrancisMurillo opened this Issue Oct 9, 2016 · 7 comments

Comments

Projects
None yet
2 participants
@FrancisMurillo
Contributor

FrancisMurillo commented Oct 9, 2016

Hey dood,

When I open an Emacs projectile project I have an hook that activates a service automatically. It would be nice if prodigy creates an automatic key binding to open those buffers with ease.

What I attempted for now is advice prodigy-define-service and look for :bind and :bind-map properties in the service plist and do this (more or less):

(define-key 
  bind-map 
  bind 
  (lambda () 
    (prodigy-switch-to-process-buffer 
      service ;; Some service variable under closure
      )))

I also wrapped the opening function as an named command with the name from :bind-command-name so that it will look good for which-key.

@rejeep

This comment has been minimized.

Show comment
Hide comment
@rejeep

rejeep Oct 17, 2016

Owner

I don't see why prodigy should do anything like that? I can see that a projectile-prodigy.el package would be nice to easier handle services for the specific project, but not in prodigy.

Closing, but let me know if you hack up something like projectile-prodigy.el. 😄

Owner

rejeep commented Oct 17, 2016

I don't see why prodigy should do anything like that? I can see that a projectile-prodigy.el package would be nice to easier handle services for the specific project, but not in prodigy.

Closing, but let me know if you hack up something like projectile-prodigy.el. 😄

@rejeep rejeep closed this Oct 17, 2016

@FrancisMurillo

This comment has been minimized.

Show comment
Hide comment
@FrancisMurillo

FrancisMurillo Oct 17, 2016

Contributor

Cool, I didn't think it would be the prime directive of prodigy to make command bindings anyway. I was thinking in terms of use-package.

What I did so far is instead of a project, I set a default filter(tag primarily) for the prodigy buffer everytime I switch to a workgroup so that I can only see the services related to the workgroup.

Contributor

FrancisMurillo commented Oct 17, 2016

Cool, I didn't think it would be the prime directive of prodigy to make command bindings anyway. I was thinking in terms of use-package.

What I did so far is instead of a project, I set a default filter(tag primarily) for the prodigy buffer everytime I switch to a workgroup so that I can only see the services related to the workgroup.

@rejeep

This comment has been minimized.

Show comment
Hide comment
@rejeep

rejeep Oct 18, 2016

Owner

I see, but I guess a package like that would be quite useful. There are tons of stuff you could do to improve the "project" experience.

Owner

rejeep commented Oct 18, 2016

I see, but I guess a package like that would be quite useful. There are tons of stuff you could do to improve the "project" experience.

@FrancisMurillo

This comment has been minimized.

Show comment
Hide comment
@FrancisMurillo

FrancisMurillo Oct 18, 2016

Contributor

For posterity, would you mind to describe what projectile-prodigy does? I might consider it a good research topic to do. Like, does it autostart services related to a project when the project is loaded? Or how does one associate a service with a project (.dir-locals)?

Contributor

FrancisMurillo commented Oct 18, 2016

For posterity, would you mind to describe what projectile-prodigy does? I might consider it a good research topic to do. Like, does it autostart services related to a project when the project is loaded? Or how does one associate a service with a project (.dir-locals)?

@rejeep

This comment has been minimized.

Show comment
Hide comment
@rejeep

rejeep Oct 18, 2016

Owner

For posterity, would you mind to describe what projectile-prodigy does?

It doesn't exist! What I said was that it might be a good idea to create such a package.

Owner

rejeep commented Oct 18, 2016

For posterity, would you mind to describe what projectile-prodigy does?

It doesn't exist! What I said was that it might be a good idea to create such a package.

@FrancisMurillo

This comment has been minimized.

Show comment
Hide comment
@FrancisMurillo

FrancisMurillo Oct 18, 2016

Contributor

I just thought you might have some idea. Thanks.

Contributor

FrancisMurillo commented Oct 18, 2016

I just thought you might have some idea. Thanks.

@rejeep

This comment has been minimized.

Show comment
Hide comment
@rejeep

rejeep Oct 18, 2016

Owner

Nothing specific no, but things like starting/stopping all services for a project would be nice for example.

Owner

rejeep commented Oct 18, 2016

Nothing specific no, but things like starting/stopping all services for a project would be nice for example.

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