mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 15:57:03 -05:00
- Supports open/close delimiters {} () [] <> and keywords import, #include, #ifdef/#ifndef
- Supports block comments (doc or not) and consecutive single line comments.
- Closed folds are retained when exiting and reopening ImHex (saved in pattern file itself)
- Folds can be chained together by closing and opening successive folds on the same line (only for delimited folds)
- Supports all styles for delimiter placing and allows comments between head and opening delimiter.
- Tooltip shows unfolded code when ellipsis are hovered.
- line numbers update on folded line navigation.
- Line+Column numbers displayed on tooltip by hovering line number field and pressing the shift key.
- Selections and breakpoints rendered on fold sections.
- Vertical line on left margin for matching delimiter visualization.
- Intuitive fold indicators inspired by Clion's editor code folds.
- Fold indicators change dynamically and highlight on hovering.
- Shortcuts to open/close single/all folds or recursively using same keys as Clion's editor.
- Folds open automatically on edits, find/replace, and breakpoints hit.
- Folds also open by clicking on ellipsis.
- Entirely original source code with no third party dependencies.
Not implemented:
- Custom folds based on selection. There is no syntax in pattern language to define independent blocks
Other fixes/changes/improvements
- Improved line number background color for better visibility.
31 lines
781 B
CMake
31 lines
781 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
include(ImHexPlugin)
|
|
|
|
add_imhex_plugin(
|
|
NAME
|
|
ui
|
|
SOURCES
|
|
source/library_ui.cpp
|
|
|
|
source/ui/hex_editor.cpp
|
|
source/ui/pattern_drawer.cpp
|
|
source/ui/visualizer_drawer.cpp
|
|
source/ui/menu_items.cpp
|
|
source/ui/pattern_value_editor.cpp
|
|
source/ui/widgets.cpp
|
|
source/ui/markdown.cpp
|
|
source/ui/text_editor/editor.cpp
|
|
source/ui/text_editor/highlighter.cpp
|
|
source/ui/text_editor/navigate.cpp
|
|
source/ui/text_editor/render.cpp
|
|
source/ui/text_editor/support.cpp
|
|
source/ui/text_editor/utf8.cpp
|
|
source/ui/text_editor/codeFolder.cpp
|
|
INCLUDES
|
|
include
|
|
LIBRARIES
|
|
fonts
|
|
md4c::md4c
|
|
LIBRARY_PLUGIN
|
|
) |