-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add 'include' functionality #35
Comments
Include statements should work, do you have a case where they don't? |
My include lines look like this: |
It's a possibility. Just to make sure I understand correctly, your I did some quick tests, and relative includes seem to be working fine here, also from a subdirectory.
By the way, is it i3 or sway you are running? It shouldn't make any difference, but just in case. (sway here) |
I'm using i3, but yes, the keybindings work just fine but don't show up in i3keys. I'll try the absolute paths later today. |
Interesting, I'll try look into it some more. If I manage to reproduce the problem, probably I can fix it too and PR. |
I think I've found the problem. Line 241 in 99e368e
So the fix should be quite easy, just create a function equal to |
Cool. I'll await your fix and test it on my setup. I'm in no big hurry. ;-) |
@macxcool Do you have sway installed on your computer? Because now that I look at the code it should be picking up i3 folders if you don't have it installed |
Could you test this branch and see it it works? https://github.com/RasmusLindroth/i3keys/tree/i3-include-test cd /tmp
git clone https://github.com/RasmusLindroth/i3keys.git
cd i3keys
git checkout i3-include-test
go build
/tmp/i3keys web 8080 |
Yes. I do have sway installed, just for experimenting with. I run i3, normally, though. I will test that this evening (i.e. in a couple of hours) |
That works. I see all my configured bindings and my modes and everything! Cool. |
It would be very cool if this could handle 'include' statements in the config to pull in other config files with key definitions.
The text was updated successfully, but these errors were encountered: