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

govc.el should support fields commands #646

Closed
tzz opened this issue Dec 13, 2016 · 8 comments
Closed

govc.el should support fields commands #646

tzz opened this issue Dec 13, 2016 · 8 comments

Comments

@tzz
Copy link
Contributor

tzz commented Dec 13, 2016

In govc.el, currently fields.* commands seem unsupported. It would be useful to have:

  • a field editor
  • a keyboard shortcut to call the field editor from the VM list
  • a fields dump to JSON from the VM list
  • a way to search hosts by fields, if that's possible?
@tzz
Copy link
Contributor Author

tzz commented Dec 13, 2016

I can try to implement some of this, if you think it's useful. I didn't want to start in case the functionality was undesirable or needed to be done in a specific way.

@tzz
Copy link
Contributor Author

tzz commented Dec 13, 2016

@dougm let me know if this is useful and a possibility?

@dougm
Copy link
Member

dougm commented Dec 13, 2016

In general I've stuck with a subset of govc functionality in govc.el, just implementing the most commonly used by myself so far :) I also often use M-& (govc-shell-command) combined with M-w (govc-copy-selection) to run commands that aren't hooked into govc.el.

This does sound like a useful interface to the fields commands and would gladly accept the contribution.

@tzz
Copy link
Contributor Author

tzz commented Dec 13, 2016

Hmm, I'm not sure what a field editor would look like. Does Emacs or MELPA already have something like that? If not I guess I can use widget.el to implement it... surprisingly I can't recall such a beast :)

@dougm
Copy link
Member

dougm commented Dec 13, 2016

Could do similar to https://github.com/dgtized/list-environment.el - prompt for input, call fields.set, call tabulated-list-revert

@tzz
Copy link
Contributor Author

tzz commented Dec 14, 2016

ha ha @dougm see dgtized/list-environment.el#2 where I ask basically the same question -- seems like a specialized field editor would be useful. I'll check on emacs-devel in case this is a solved problem.

@dougm
Copy link
Member

dougm commented Dec 14, 2016

@tzz ha! ok cool, interested to see what you come up with.

@dougm
Copy link
Member

dougm commented Sep 3, 2018

Closing out old issues, would still happy to accept the contribution though.

@dougm dougm closed this as completed Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants