-
Notifications
You must be signed in to change notification settings - Fork 28
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
hydra menu #6
Comments
With the nature of using built-ins as much as possible I would prefer a transient: (transient-define-prefix dape-transient ()
"Transient for dape."
[["Stepping"
("n" "Next" dape-next :transient t)
("i" "Step in" dape-step-in :transient t)
("o" "Step out" dape-step-out :transient t)
("c" "Continue" dape-continue :transient t)
("r" "restart" dape-restart :transient t)]
["Breakpoints"
("bb" "Next" dape-toggle-breakpoint :transient t)
("bd" "Step in" dape-remove-breakpoint-at-point :transient t)
("bD" "Continue" dape-remove-all-breakpoints :transient t)
("bl" "restart" dape-log-breakpoint :transient t)]
["Info"
("si" "Info" dape-toggle-breakpoint :transient t)
("sm" "Memory" dape-remove-breakpoint-at-point :transient t)
("ss" "Select Stack" dape-remove-all-breakpoints :transient t)
("R" "Repl" dape-log-breakpoint :transient t)]
["Quit"
("qq" "Quit" dape-quit :transient nil)
("qk" "Kill" dape-kill :transient nil)]]) |
@OlMon this looks much better thanks, it would be useful i think if this is included by default (or at least documented in README) |
Hi @chmouel and thanks for your input! As @OlMon stated I am going to add hydra as an dependency, but I am not against having it in the wiki for hydra users. |
I have not used transient so I will give this a spin and get back to the issue. As of now I will be sticking with
|
I could be wrong, but I don't think that transient and repeat-mode are in any conflict. repeat-mode triggers after using a keybind, while transient uses this additional small buffer that "catches" all keypresses. Personally for me I would prefer to have both available. I also just saw that I copy pasted the "Info" section to fast and forget to change the functions in the individual calls, sorry for that.... |
Sorry for taking so long to respond. I was unaware that Transient are giving me some troubles, the default window action is in conflict with |
If somebody could solve these issues I am for adding an transient map to |
I am not sure if this is something dape.el should solve. This seems a "bug" between transient and gdb-mi and should be something discussed upstream. Not even really a bug, but more like they use the same window functions and this causes to not "look-good" together. |
It's not really an gdb-mi issue really as dape does not use gdb-mi in that way. Really only the table function from gdb-mi. |
I noticed some of the functions have changed name and others don't correspond to their section: may I suggest? (transient-define-prefix dape-transient ()
"Transient for dape."
[["Stepping"
("n" "Next" dape-next :transient t)
("i" "Step in" dape-step-in :transient t)
("o" "Step out" dape-step-out :transient t)
("c" "Continue" dape-continue :transient t)
("r" "Restart" dape-restart :transient t)]
["Breakpoints"
("bb" "Toggle" dape-breakpoint-toggle :transient t)
("bd" "Delete" dape-breakpoint-remove-at-point :transient t)
("bD" "Delete all" dape-breakpoint-remove-all :transient t)
("bl" "Log" dape-breakpoint-log :transient t)]
["Info"
("si" "Info" dape-info :transient t)
("sm" "Memory" dape-read-memory :transient t)
("ss" "Select Stack" dape-select-stack :transient t)
("R" "Repl" dape-repl :transient t)]
["Quit"
("qq" "Quit" dape-quit :transient nil)
("qk" "Kill" dape-kill :transient nil)]]) |
I am still having issues with transient and the |
I've just tried both
Here's the updated version of
@svaante and other I'm looking forward to use it with python code (my next step). I appreciate it alot. Thank you. |
Thanks @vibrys added to wiki https://github.com/svaante/dape/wiki#ergonomic-keybindings |
As stated before Transient might be an alternative, as it's built in. But as it messes with 'side windows by default it doesn't seam to be worth the hassle at this point. Closing this issue! Feel free to populate the wiki with an |
agreed
agreed As hydra emerged on Wiki page, some time has been spent to polish it a little bit. What do you think?:
changes + rationale:
|
@vibrys feel free to update, sounds like good changes 👍 |
It would be nice to include a hydra menu, i found it a litlle bit more user friendly than keybinding or having to issue command in console, I have started a simple one loosely based on https://github.com/emacs-lsp/dap-mode/blob/master/dap-hydra.el
The text was updated successfully, but these errors were encountered: