Not working in ubuntu
This is not working in my ubuntu for some reason.
I have changed the key bindings to ctrl+k ctrl+f for several of the commands, and none of them did anything.
Also I feel these ctrl+shift+alt+key type of key bindings is too much to remember. We only have 10 fingers and we need to use 4 of them to perform a single action.
strange that it does not respond. What signs are you using as indent ? With tabs and spaces and all of these work.
Also some of the commands are a bit depending on the location of the cursor and content. but 'fold_fold_content' and 'fold_unfold_content' should quickly show you results.
I also received a ticket from a user today to say these default shortcuts give problems on ubuntu machines. So will shift the shortcuts to a 'ctrl + K ctr + mainkey' to make it less complex :)
sometimes you loose a bit of touch while developing on usability.
hello, I did some changes and switched shortcuts to 'ctrl + K, ctr+key' to make it a bit easier. Also you can access the commands trough the command panel 'ctrl + shift + P'
I did a bit of debugging but did not see any big blockers.
Let me know if the commands still block. You can send me some example code ? Also can you see in the console output if there are any crashes ?
thanks for reporting! Sven
Thanks for replying.
I guess I just gave a false alarm, I just didn't managed to save the changes. Sometimes the :w command in vim mode doesn't save the preference files, for some reason, but for other files it works as expected.
Either way, your plugin with new key bindings works now.
Besides that, I wonder whether it makes sense to use the same key binding for fold_content and unfold_content, as a block of code is either folded or unfolded, so the plugin could just switch between the 2 states depending on the current state.
hey;
ah good to know that it starts working.
The tool actually already implemented this smart way of behaving. But in a different way then you expect.
When something is folded and you would fold it again : it will bring you to the parent instead of folding it. Same for unfolding, unfold something that is not folding it will select the child. Up will go to the next sibling (an item on the same level) if there is none it will jump to the parent. Down will go to the next sibling and jump to the next parent if no sibling is left.
When you use for example use the original keys 'ctrl+alt+shift+arrow' you can actually start navigating trough your whole document using each arrow. So maybe the description of 'fold_content' / 'unfold_content' is not that accurate description.
Hope this makes more sense? maybe I should rename the commands and add the thing that you said as a seperate new action.
If you have more suggestions about this ! really want to improve this thing :)
I'm having similar issues in Ubuntu 14.04, on Sublime 2. The only commands recongizes containing 'Fold' are Settings and Key bindings -- so my guess is the plugin installed correctly.
It actually works if I use my mouse over the triangles, but one of the keybindings work. Not even the ctrl+k alternative.
Any ideas why this is happening? Thanks!
I don't remember testing the plugin on sublime2, I stepped in the sublime world directly from sublime 3 with python3. Does the code crash in the console ? I' ll see to do a test on Sublime 2 this week.
2014-07-28 10:41 GMT+02:00 seven7seven [email protected]:
I'm having similar issues in Ubuntu 14.04, on Sublime 2. The only commands recongizes containing 'Fold' are Settings and Key bindings -- so my guess is the plugin installed correctly.
It actually works if I use my mouse over the triangles, but one of the keybindings work. Not even the ctrl+k alternative.
Any ideas why this is happening? Thanks!
— Reply to this email directly or view it on GitHub https://github.com/svenfraeys/SublimeFoldPython/issues/2#issuecomment-50312629 .
Sven Fraeys Technical Artist http://svenfraeys.com