-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implemented main xkbswitch logic in separate file. #6
base: master
Are you sure you want to change the base?
Conversation
Now possible ship xkbswitch with `.dylib`. - Added following functions for setting and getting layouts - `int Xkb_Switch_setXkbLayoutAsNum(int id);` - `int Xkb_Switch_setXkbLayoutAsString( const char* name );` - `int Xkb_Switch_getXkbLayoutAsNum();` - `char * Xkb_Switch_getXkbLayoutAsString();` - Added following functions for setting and getting layouts to keep backward compatibility with `vim-xkbswitch` - `const char* Xkb_Switch_setXkbLayout( const char * param );` - `char * Xkb_Switch_getXkbLayout( const char * param );` - Added xcode project target for building `libxkbswitch.dylib`
Need to use current library with hardcoded paths to Note that I'm using |
@iarkhanhelsky thank you for contribution! |
By the way, can you please check your solution in MacVim? The last time when I tried implement dylib for vim I had encountered with strange MacVim behaviour. I don't remember what exactly was happened, but it was connected with a process instantiation somehow. |
At first glance it works fine in mvim. |
Hi Ilya!
Did you experience something like that? |
@myshov I did some checks on my machine (Mac OS 10.13., Vim 8, XCode 9). I have tested following commands:
Then I tested Unfortunately I'm not using Mac OS anymore on regular basis and can't be very useful on fixing it. Feel free to reject this pull request if your master branch works well and you have no time to investigate this right now. |
Thank you for quick response! Anyway I'll try to find the reason of this behaviour in the future. I'll leave your pr opened. |
Now possible ship xkbswitch with
.dylib
.int Xkb_Switch_setXkbLayoutAsNum(int id);
int Xkb_Switch_setXkbLayoutAsString( const char* name );
int Xkb_Switch_getXkbLayoutAsNum();
char * Xkb_Switch_getXkbLayoutAsString();
backward compatibility with
vim-xkbswitch
const char* Xkb_Switch_setXkbLayout( const char * param );
char * Xkb_Switch_getXkbLayout( const char * param );
libxkbswitch.dylib