Left Side Bar Shortcut

Comments

13 comments

  • Avatar
    Frank (Workflowy Support)

    Hi Marcos,

    There is currently no shortcut to open or collapse the left bar. We may consider this moving forward :-)

     

    4
    Comment actions Permalink
  • Avatar
    Malcolm Boekhoff

    I'm sure loads of people love your sidebar and that's great, but I don't need it so how do I get rid of it by default?

    A shortcut will do as well

    0
    Comment actions Permalink
  • Avatar
    J S Cowperthwaite

    Hi,

    After watching a few of your videos the sidebar is pretty useful when moving things around + for general navigation.

    To use it though it really does need a keyboard shortcut ... Dynalist copied you guys pretty well ... maybe copy some of their shortcuts back over?

    0
    Comment actions Permalink
  • Avatar
    Frank (Workflowy Support)

    Hi folks!

    We have this logged as a possible shortcut candidate :-)

    2
    Comment actions Permalink
  • Avatar
    Thijs Brobbel

    @Frank Was this added in the mean time? It's time, isn't it :)

    I'm gonna try to do a TamperMonkey script, until this is available (and post it here, if I manage to get it working :))

    0
    Comment actions Permalink
  • Avatar
    Frank (Workflowy Support)

    Hi @Thijs,

    Sorry... not yet... 

     

    0
    Comment actions Permalink
  • Avatar
    Thijs Brobbel

    Alright, managed to get a TamperMoney script working. Probably not the cleanest code, but does the trick ;)

    @Frank: thanks for showing me the ropes in your screencasts for doing Stylish, and TamperMonkey scripts. Although, I've been a developer for more than 10 years, never really did any web development, and never looked into these user scripts, and such. But it's such an empowerment, really really awesome!!

    (function() {
        'use strict';

        document.onkeyup = e =>
        {
          if (e.code == "KeyL" && e.altKey && !e.ctrlKey && !e.shiftKey)
            {
                $('div.leftBar div.iconButton').click();
            }
        }
    })();
    0
    Comment actions Permalink
  • Avatar
    Frank (Workflowy Support)

    Hi Thijs,

    Works nicely! Only think is that it also jumps you to your home page when you activate Alt+L...

    0
    Comment actions Permalink
  • Avatar
    Thijs Brobbel

    Indeed, I found that out as well, this week, when I was using it. I'm gonna look into why that happens, and how I need to adjust the code to make it work. When I figure it out, I'll post back here. Though, it's not on top of my list, so might take a while xD

    0
    Comment actions Permalink
  • Avatar
    Thijs Brobbel

    Alright, I looked into it, and it was just a classical case of CSS selectors :) `div.iconButton` selects all icon buttons on the page, among other, the Home button. I managed to get it to work to make it more specific: hook into via the leftbar. I'll update the code sample in my other post.

    0
    Comment actions Permalink
  • Avatar
    Frank (Workflowy Support)

    Hi Thijs,

    That works nicely! One other thing... the left bar also opens/ closes when one uses the Alt+Shift+L keyboard shortcut to copy an internal link. The script ignores other modifier keys. It sees Alt+L as the minimum requirement even if other keys are included in a shortcut.

    0
    Comment actions Permalink
  • Avatar
    Thijs Brobbel

    Ah, good point. I hardly use the copying of the internal anymore, so didn't realize the clash. Fixed it (again, in my original post).

    0
    Comment actions Permalink
  • Avatar
    Frank (Workflowy Support)

    Thank you Thijs. I will pass this on to the team...

    0
    Comment actions Permalink

Please sign in to leave a comment.