Vector35 / binaryninja-api

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

Make Select All (Ctrl+A) work in linear view and have it select all lines of the current function #5881

Open BlasterXiao opened 2 weeks ago

BlasterXiao commented 2 weeks ago

What is the feature you'd like to have? I would like to add a Ctrl+A (Select All) shortcut functionality in Binary Ninja's various views (IL, HIL, C, and ASM) to easily copy the entire code content of each view.

Is your feature request related to a problem? Yes. Currently, it's cumbersome to copy the entire code from different views in Binary Ninja, especially when dealing with large binaries or when we need to quickly share or analyze the code outside the tool.

Are any alternative solutions acceptable? no

Additional Information: This feature would greatly improve the workflow when analyzing binaries, especially when users need to:

Share code snippets with team members Paste the code into external analysis tools or documentation Quickly compare different representations (IL, HIL, C, ASM) of the same binary Implementing this feature across all views (IL, HIL, C, and ASM) would ensure consistency and improve user experience in Binary Ninja.

psifertex commented 2 weeks ago

We can probably only implement this for single function view and linear for what it's worth. It sounds like that's what you wanted anyway.

plafosse commented 2 weeks ago

You can also do File->Export->Linear View to export everything.

xusheng6 commented 2 weeks ago

We already bind "Ctrl+A" to a "Select All" in the graph view, which selects all lines of the current basic block. We should also bind the action in the linear view and have it select all the lines for the current function

BlasterXiao commented 2 weeks ago

My dev version is 4.2.5975, and I tried Ctrl+A, but it still can't select the current function code block. image