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

Feature request: please support frame and many windows #236

Open
kgfly opened this issue Feb 14, 2019 · 7 comments
Open

Feature request: please support frame and many windows #236

kgfly opened this issue Feb 14, 2019 · 7 comments

Comments

@kgfly
Copy link

kgfly commented Feb 14, 2019

Comparing to Emacs default gud gdb, 2 features are missing for realgud gdb debug:

  1. Frame. In Emacs default gud gdb, it is: menu -> Gud -> GDB Frame. This is a very useful feature when you have 2+ monitors. You can view stuffs in different Windows, side by side, in 2+ monitors. Eg

image

Frame is a clear win for Emacs over Vim/Vscode, since they are never ever able to support frame, which are across multiple monitors.

  1. Many windows. There already 2 other active issues for it.
    Multiple windows with context information #219
    How hard would it be for us to get an equivalent of gdb-many-windows? #99

  2. Similar feature request for future LLDB :)

@rocky
Copy link
Collaborator

rocky commented Feb 14, 2019

What to try your had at porting this? There are a lot of people who I am sure would want something like this. It is not something I am personally going to do, but this is an open source project so anyone is free to contribute.

@kgfly
Copy link
Author

kgfly commented Feb 14, 2019

I am new to Emacs :) I will start to think about it once I am familiar with lisp enough.

@rocky
Copy link
Collaborator

rocky commented Feb 14, 2019

No problem - this can wait until you get up to speed. And it is an excellent way to learn Emacs Lisp at the time - you are welcome!

@rocky rocky added the Feature label Mar 17, 2020
@rocky rocky changed the title Feature request for gdb: please support frame and many windows Feature request: please support frame and many windows Mar 17, 2020
@rocky rocky added the gdb label Mar 17, 2020
@813gan
Copy link
Collaborator

813gan commented Aug 31, 2020

I think that managing window layouts should be handled by buffer manager like perspective-el rather rg itself.

@rocky
Copy link
Collaborator

rocky commented Sep 1, 2020

Ok. Is there a way to decouple this with realgud as an addon?

Also the other day I saw 0blayout. Are there others?

@813gan
Copy link
Collaborator

813gan commented Sep 1, 2020

Are there others?

eyebrowse and probably many others, like with everything in emacs.

Is there a way to decouple this with realgud as an addon?

I'm not sure if i understand.
I didnt do any research but IMO implementation would look like it:

  • Adding defcustom realgud-create-layout-function, defcustom realgud-switch-to-realgud-frame-layout-function, defcustom realgud-rollback-layout-function
  • Creating some default values for more suitable/popular managers
  • Creating smart function that detects which manager is available and sets default values for customs form first bullet

If it's possible we wouldnt have any hard dependency on any manager and it would be hackable at user side.

Maybe in future i would take a look, now locals have higher priority for me.

@813gan
Copy link
Collaborator

813gan commented Sep 1, 2020

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

3 participants