-
-
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
How to get the component windows back if I close them? #35
Comments
Every component exposes a "Focus" command, which "unhides" the component and puts your mouse in it. For example, "Workspace Explorer Focus". You should be able to remap the "hide" keymap for components with config overrides. |
Okay perfect. Is there a way to bind sort of "global" keymaps? Not truly "global" but keymaps that will apply to all For example, I'd like to remap |
I think theres two different things here.
|
I think we can close this as what I'm looking for can be done with a bit of user config |
do share! just because I'm interested. |
How does |
lol grep for <ctrl-[> nice easter egg right. |
Ah, I think EDIT: lol you beat me to it |
yup:
|
Here's what I ended up doing, just disabling the local explorer = require('ide.components.explorer')
local outline = require('ide.components.outline')
local bufferlist = require('ide.components.bufferlist')
require('ide').setup({
components = {
[explorer.Name] = {
list_directories_first = true,
show_file_permissions = false,
keymaps = {
hide = '<NOP>',
},
},
[outline.Name] = {
keymaps = {
hide = '<NOP>',
},
},
},
panel_groups = {
explorer = { bufferlist.Name, explorer.Name, outline.Name },
},
})
vim.keymap.set('n', '<F3>', ':Workspace LeftPanelToggle<CR>', {}) |
lol, its going to become a pain in the ass to set keymaps individually for every component, isn't it? |
Yeah lol. I'd wanna always disable the Maybe there should be an option like Or alternatively a way to set keymaps that apply to all components. |
Yeah, I think we may want a "global_keymap" in the "components" block, and then in just merge that global keymap with each component config's keymaps field on component construction? |
Yeah that sounds good to me. |
Okay i'll create and issue and take that one on. |
I didn’t expect
<ESC>
to close the single window, IMO it should toggle the whole sidebar.anyway, if I accidentally close one or more component windows, is there an easy way to get them back and fully restore the window layout?
The text was updated successfully, but these errors were encountered: