Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
Display horizontal scrollbar in text editor
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
How can I get a horizontal scrollbar to appear for the text editor\*?
It is a bit limiting to have to find the longest line, in order to be able to scroll across the full length...

---
\*I am not sure if text editor is the correct name... Looking at the 'overview.c' code, the "text editor" seems to be generated by `nk_edit_string` in the [following lines](https://github.com/Immediate-Mode-UI/Nuklear/blob/a3f40348d572fad24af1e2d6c6b755171af481db/demo/overview.c#L587):
nk_layout_row_static( ctx, 180, 278, 1 );
nk_edit_string(
ctx,
NK_EDIT_BOX,
box_buffer,
&box_len,
512,
nk_filter_default
);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the nk_edit_string call in overview.c around line 587 and inspect how the text editor is configured there. Confirm that long lines can be scrolled horizontally within the editor, and verify the result using the overview demo shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100