Giter VIP home page Giter VIP logo

Comments (3)

leodevbro avatar leodevbro commented on May 28, 2024 1

Well, such feature is easy to build in folder structure, but code structure is often complicated and there are so many languages, so maybe each language it needs to build separate algorithm to detect such Parent Single Lines. I don't think that it doable by me in the near future. But maybe other developers will contribute in Blockman in the future.

from vscode-blockman.

leodevbro avatar leodevbro commented on May 28, 2024

Actually, Blockman has a setting called: N27 Also Render Blocks Inside Single Line Areas, which is turned off by default. You can turn it on any time.

BUT, this is not the setting you are talking about. You are talking about parent lines of block. So, you want that the parent lines which are basically single line or without any value, should not be wrapped in their own block, right? This idea seems interesting, but I think it's not really intuitive, because if such single line parent has a child block, then it means that this parent property has a value, it's not without a value, it has a value, the value is its child block. So, if you hide the blocks of parent lines, then you lose the sense of tree structure. It's important to perceive that something is a deep child (child of a parent of a parent of a a parent...), because tree structure is very important information.

from vscode-blockman.

ThaJay avatar ThaJay commented on May 28, 2024

Thank you for your thoughtful and quick replies.

Option to skip parent block render if:

  • Parent is single line &&
  • Parent has one block child

Yes that is exactly what I mean. I understand that it's not desirable in every situation, but in some cases it can be nice. I have disabled N27 Also Render Blocks Inside Single Line Areas. I was using only indent guides before so with this plugin the editor looks a bit busier but I still like it. This seemed like another possibility to clean up the interface a bit more.

VsCode does a similar thing in the folder tree when the only contents of a folder is another folder like in this example:
image

from vscode-blockman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.