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

feat: Toggle console only (dapui.toggle('console')) #284

Open
zippeurfou opened this issue Jul 17, 2023 · 0 comments
Open

feat: Toggle console only (dapui.toggle('console')) #284

zippeurfou opened this issue Jul 17, 2023 · 0 comments

Comments

@zippeurfou
Copy link

zippeurfou commented Jul 17, 2023

Hey,
It would be great if it was possible to use the toggle argument with your own parameters.
By default it would toggle everything as it currently does (dapui.toggle()) but you could enter multiple configuration such as:
dapui.toggle('console') so it only does the console part.
This would create a nice set of shortcut:
ie.

map("n", "<leader>du", "<cmd>lua require'dapui'.toggle()<cr>", "[D]ebug [U]I")
map("n", "<leader>dc", "<cmd>lua require'dapui'.toggle('console')<cr>", "[D]ebug [C]onsole")

Alternatively have a way like neotest:

map("n", "<leader>dt", "<cmd> lua require'neotest'.output_panel.toggle()<cr>", "[D]ebug [T]erminal")

Edit: After reading the doc it seems we can toggle specific layout element. Knowing I am using the base configuration I can toggle the REPL + Console with require('dapui').toggle(2) I do wonder if I can toggle specific element of a layout individually or I would need to edit the layout. It does also seems related to #252

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

1 participant