Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
900 stars 204 forks source link

Collapse/fold/hide regions in linear view #510

Open plafosse opened 7 years ago

plafosse commented 7 years ago

Regions in linear view should be collapsable and should have a default preference. By default things like ELF/PE headers, IAT/PLT entries should be collapsed. Should also implement keystrokes and clickable buttons to expand/collapse these regions.

Proposed foldable items:

plafosse commented 6 years ago

This also applies to structures and arrays.

ccarpenter04 commented 4 years ago

I would love to see this implemented

yrp604 commented 4 years ago

With HLIL and linear view this would be really nice. Right now if you have an indent block that spans more than a screen width in HLIL's linear view, it can be very difficult to find the indentation points where blocks are terminated.

psifertex commented 4 years ago

There's a feature branch experimenting with adding indentation lines as well to help with this particular problem, though there's been some debate internally as to the right way to do it.

jonpalmisc commented 2 years ago

This would ideally include the ability to fold code blocks, e.g. long if statements. (#3311)

BlasterXiao commented 1 month ago

I very much support the suggestion mentioned by @psifertex 【Code blocks, e.g. if statement branches and Sections and Structures and arrays】This is very user friendly

psifertex commented 1 month ago

My original comment is super old and we actually do those bits. Code is not only indented according to structure but there are also empty lines to help differentiate:

Screenshot 2024-07-24 at 20 42 53

The only thing left for this issue is the actual folding.

BlasterXiao commented 1 month ago

My original comment is super old and we actually do those bits. Code is not only indented according to structure but there are also empty lines to help differentiate:

Screenshot 2024-07-24 at 20 42 53

The only thing left for this issue is the actual folding. Yes, it would be very comfortable if you could add actual folding