Results 1 to 17 of 17
  1. #1

    [Addon] Leader Key: Leads the way to more hotkeys.

    Vim like 'leader' key functionality for blender.

    In my workflow I use a lot of shortcuts, so much in fact that now I can't really find empty slots for new bindings. So I looked to other software that I love and use a lot of hotkeys in: Vim. In Vim shortcuts can be specified as sequence of keys. For example:
    Code:
    nnoremap <leader>cf :call_function()<CR>
    Means that after pressing `leader` key followed by `c` and `f` keys call `call_function()`. Reading sequence of characters as shortcut means that we get a lot of new possible shortcuts without having to stretch our hands all-over the keyboard.

    Thats the functionality I tried to replicate in this add-on.






    Detailed instructions and addon itself can be found at: https://github.com/miniukof/bl-leader_key



  2. #2
    Member
    Join Date
    Sep 2012
    Posts
    3,194
    Yes!
    in trunk

    Thanks!
    Oh, how i missed this.



  3. #3
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,285
    A great idea Miniu, congratulations.
    I agree with you about a lot of shortcuts....
    Words are Images that loosed Light!
    Linux Mint 18.2 Saunya - Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  4. #4
    Thanks for kind words ^^.

    Just found out that installing add-on as downloaded zip file wasn't working so i changed that. Now you have to install it as a whole zip file though, which i think is still better then not being able to install it as zip at all considering that that's the easiest option of downloading add-ons from github.



  5. #5
    can it record a lot of operation as a lot of hotkeys?



  6. #6
    What do you mean? Function can be anything in python really, it's just a call to exec() function. So you can even type whole script in that input really if you want to. You would just have to do it all in one line.



  7. #7
    Member
    Join Date
    Sep 2012
    Posts
    3,194
    Uf, a thought (sorry if off topic)...
    Do you know if it is possible to have something like a command line (rhino, autocad...) in blender. As when we press space and use search line to call function, but to be always open (at bottom or top, at hand and as a visual feedback)?

    Maybe i should address it as v 2.8 suggestion?



  8. #8
    I think you could. I would have to look into that but i think dynamic-spacebar add-on uses that search button as a operator? So you could maybe theoretically add it to some menu and have it open.



  9. #9
    Member
    Join Date
    Sep 2002
    Location
    Évora, Portugal
    Posts
    809
    Good night to all!
    This is still working?
    Thank you.
    Orange,definitely i like orange



  10. #10
    Oh, good. Some problem as you, I wanted a esc-key-key vim like sequence so much...
    Thank you so much!



  11. #11
    Member
    Join Date
    Sep 2002
    Location
    Évora, Portugal
    Posts
    809
    I don't know how Vim works, but an autocad like shortcuts it would be heaven!
    Orange,definitely i like orange



  12. #12
    Originally Posted by MADCello View Post
    Good night to all!
    This is still working?
    Thank you.
    Yeah, still works ^^'



  13. #13
    Member
    Join Date
    Sep 2002
    Location
    Évora, Portugal
    Posts
    809
    Good night Miniu!
    Did not fully understand it at first, got it to work and is very close to what I'm after!
    Are you open for a suggestion?
    Thank you!
    Orange,definitely i like orange



  14. #14
    I love AutoCad like shortcut, and it little icon button that can be customize all the commands you like on to a favorite bar.



  15. #15
    Originally Posted by MADCello View Post
    Are you open for a suggestion?
    Thank you!
    Yeah, feel free



  16. #16
    Member
    Join Date
    Sep 2002
    Location
    Évora, Portugal
    Posts
    809
    Thank you Miniu!
    How about saving the shortcuts list in a text file near the PY file?
    It will be much easier to keep track of shortcuts.
    Orange,definitely i like orange



  17. #17
    Member ToshiCG's Avatar
    Join Date
    Mar 2004
    Location
    Osaka, Japan
    Posts
    626
    Gotta give this a try!
    Follow me on Twitter



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •