Hiding Elements

  1. last year

    Not sure if I overlooked it, but I was wondering if you could hide elements from a custom view. For example if I drag over a module directory I'd like to be able to hide the target folder.

  2. Oleg Dubrov

    6 Feb 2016 Administrator

    I don't understand what you exactly mean :(
    Could you make a screenshot and point out the place and what should be changed?

  3. Edited last year by robotProdigy

    I was wondering and hoping for the same thing.

    In my case, I'm using Armory for PyCharm. It would be great, for example, to isolate a tree view to only show a few Python classes from 2 or more modules, and exclude siblings classes from showing up in the tree view or group. Right now siblings can add a bit of clutter that results in my hunting for the correct class out of a list of other modules.

    I can imagine how hiding items could be a can of worms though. Some people would lose track, and forget they have certain things hidden and start pulling their hair out when they can't find stuff in the Armory tree view. Perhaps an alternative would be to grey out the "hidden" items, and make their font a 10th of the size which would make them unreadable, but that would be ok - the point is to make users aware they have stuff hidden. Just thinking out loud.

  4. Oleg Dubrov

    6 Feb 2016 Administrator
    Edited last year by Oleg Dubrov

    Hey, guys, every time you need to isolate something you can just create a new empty Tree View and drag needed elements to it. Something like that:

    -image-

    To create empty tree view, just click "Add Tree View" and then "Clear" to remove existing roots from it.

    Isn't it exactly what you need?

    PS.
    The other way to hide "unwanted items" is to select all of them an choose "Group" in the context menu (Ctrl + Right Click). Give the name of group (for example 'etc') and click OK. Done.

    The third way to manage with that is instead of to gray "hidden" items, to bold the "important" items by selecting them and pressing Ctrl+B.

    Please correct me if I have misunderstood you.

  5. Actually, that's exactly what I was looking for. The only problem is, my Armory isn't doing that on my end :( When I drag a class (just to be clear we are on the same sheet of music, that's the blue C icon) to an empty view, the new view will get populated with the specified class's respective module file (not what I wanted), plus the class (which I do want) plus all the target class's siblings (not what I want). This is different behavior than the animation you posted demonstrates.

    I'm using PyCharm 5.0.5 and Armory 1.31.

    I looked at my settings to see if I have something set to a weird value, and couldn't find anything, but at the same time, not really sure what I'm looking for. Any ideas?

  6. @Oleg Dubrov Hey, guys, every time you need to isolate something you can just create a new empty Tree View and drag needed elements to it. Something like that:

    -image-

    To create empty tree view, just click "Add Tree View" and then "Clear" to remove existing roots from it.

    Isn't it exactly what you need?

    PS.
    The other way to hide "unwanted items" is to select all of them an choose "Group" in the context menu (Ctrl + Right Click). Give the name of group (for example 'etc') and click OK. Done.

    The third way to manage with that is instead of to gray "hidden" items, to bold the "important" items by selecting them and pressing Ctrl+B.

    Please correct me if I have misunderstood you.

    Using your example, let's say I wanted a view with everything in the left tree except BouncingBalls, how would I go about doing that easily?

  7. Oleg Dubrov

    8 Feb 2016 Administrator
    Edited last year by Oleg Dubrov

    @mmadson how would I go about doing that easily?

    If you want to hide some folders from the view, you may mark it "as excluded".

    First you need to uncheck the "Show Excluded Files" option:

    -image-

    Then you need to select a folder and choose "Mark Directory As --> Excluded":

    -image-

    It is not the Armory plugin functionality, it's available in almost all jetbrains' IDE.

  8. Marking the file / directory as excluded actually removes it from inspections, code completion, etc. I would still like the file to be considered as part of the project--just not some particular armory tree view that I'm currently constructing/viewing. I assume that given your suggestions, armory currently does not support my desired capability.

  9. Hi Oleg,

    Here is the behavior of Armoy on my end. When I drag a class to a new view, I see its parent .py file, and all other classes that come with it. Video . Give the video a second to load in the browser. Its about 1 mb.

  10. Oleg Dubrov

    8 Feb 2016 Administrator

    Hi robotProdigy!
    A picture is worth a thousand words. Thank you :)

    Yes, you are right, we can drag only whole file, we can't drag some file members alone in such languages as PHP and Python. We need to understand that Armory relies on the Intellij IDEA model (Psi objects hierarchy). The restriction is that in those languages (PHP and Python) it's not possible to display class (or function) in the tree view without the parent file element. At the moment I don't know of a solution that could circumvent this limitation. :(

  11. Hey, thanks for checking Oleg.

 

or Sign Up to reply!