Repository navigation
Description
Version/Branch of Dear ImGui:
Version v1.92.2b, Branch: docking
Back-ends:
imgui_impl_opengl3.cpp + imgui_impl_sdl3.cpp
Compiler, OS:
Linux + gcc 13
Full config/build information:
Dear ImGui 1.92.2b (19222)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=202100
define: IMGUI_ENABLE_TEST_ENGINE
define: __linux__
define: __GNUC__=13
define: IMGUI_HAS_VIEWPORT
define: IMGUI_HAS_DOCK
--------------------------------
io.BackendPlatformName: imgui_impl_sdl3 (3.2.20; 3.2.20)
io.BackendRendererName: imgui_impl_opengl3
io.ConfigFlags: 0x00000081
NavEnableKeyboard
DockingEnable
io.ConfigViewportsNoDecoration
io.ConfigNavCaptureKeyboard
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x0000101E
HasMouseCursors
HasSetMousePos
RendererHasVtxOffset
RendererHasTextures
RendererHasViewports
--------------------------------
io.Fonts: 3 fonts, Flags: 0x00000000, TexSize: 512,128
io.Fonts->FontLoaderName: stb_truetype
io.DisplaySize: 1440.00,900.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 4.00,4.00Details:
Stack tool copies entire string used to produce the item id, which is not always ideal. For example, when window title is animated (Foo 99fps###WindowFoo) we get to copy entire thing, even though fps number is neither necessary nor desirable. In my specific case i have longer nice window name that includes icons from the icon font and a shorter ###... suffix that actually defines the window id. Nice name is quite long and utf-8 icon characters are not handled well when copying (actual character gets copied while it would be more useful if non-ascii characters came in \x??\x??\x??\x?? format.
Currently copied string is // Price | td:binance-futures:OMUSDT###PriceChartView | td:binance-futures:OMUSDT/ (last character is U+e157, an icon from icon font), but it would be preferable if it was //###PriceChartView | td:binance-futures:OMUSDT/\xee\x85\x97.
For now i am manually updating all buttons with icon characters to have a more test-friendly ###name and i am deleting anything before ### manually.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
ImGui::Button("A pretty long name \xee\x85\x97###short-id"); // Hover with stack tool and copy the path
Activity
ocornut commentedon Aug 26, 2025
We should make this optional indeed.
Debug Tools: ID Stack Tool: added option to hex-encode non-ASCII char…
Debug Tools: ID Stack Tool: when ### is used, uncontributing prefix b…
ocornut commentedon Aug 26, 2025
Pushed:
###is used, uncontributing prefix before the###is now skipped. (Stack tool "noisy" output #8904, Debug tools: new "Stack Tool" window, ShowIdStackToolWindow() #4631)