Pre-filled input for `interaction.get_text_line_input`

Open
#4,406 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp, python
Domain
api

Research direction

Locate the implementation of interaction.get_text_line_input and inspect how its arguments reach the input field. Add support for the optional default value, then invoke the supplied example to verify that example_name appears pre-filled and remains editable.

Written by the indexing model from the issue text.

Description

Component: API Effort: Trivial Impact: Low

The interaction.get_text_line_input function provides no way to pre-fill the content of the field. An optional keyword argument that could set the initial value of the input field would be really handy when a user might want to customize an input in some scenarios, e.g. an auto-generated name, but other times just confirm the auto-generated one is fine.

What I have in mind is that running the following:

interaction.get_text_line_input("Function Name", "Create Function", default="example_name")

would produce this:

Screenshot 2023-06-13 at 9 20 07 AM

Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.