1
0
mirror of synced 2024-12-15 01:01:15 +01:00
ImHex/lib/libimhex/source/api
SparkyTD 9b594d81bd
feat: Added CSV, TSV and JSON as export options for Find results (#1673)
### Problem description
The default result export functionality of the Find tool is limited to
only exporting data in a nonstandard text format. This PR adds support
for exporting the results in CSV, TSV or JSON format. The PR also
removes the old format.

### Implementation description
I added the classes `ExportFormatter`, `ExportFormatterCsv`,
`ExportFormatterTsv` and `ExportFormatterJson`, with similar
implementations to the pattern data exporters.

~~I also moved the `ViewFind::Occurrence` class into
`hex/helpers/types.hh`, so the exporters can access it.~~

### Screenshots

![image](https://github.com/WerWolv/ImHex/assets/45818400/c7a1016b-6494-416d-a963-86484952837c)

### Additional things
Another small change I made is moving the "{} entries found" line on the
same line as the Search and Reset buttons. I think it looks cleaner this
way, but if anyone disagrees, I can revert it.

---------

Co-authored-by: WerWolv <werwolv98@gmail.com>
2024-06-18 20:57:55 +00:00
..
achievement_manager.cpp impr: Reorder achievement save routine to never accidentally clear the file 2024-02-20 00:10:05 +01:00
content_registry.cpp feat: Added CSV, TSV and JSON as export options for Find results (#1673) 2024-06-18 20:57:55 +00:00
event_manager.cpp refactor: Give API files more consistent names 2023-11-18 14:50:43 +01:00
imhex_api.cpp impr: Better font loading logic 2024-06-16 22:41:16 +02:00
layout_manager.cpp fix: Wrong query path when saving layouts (#1735) 2024-06-07 20:33:43 +02:00
localization_manager.cpp impr: Various web build improvements, API cleanup (#1541) 2024-02-10 23:31:05 +01:00
plugin_manager.cpp fix: Potential crash on Linux when loading external libraries 2024-03-15 17:54:09 +01:00
project_file_manager.cpp impr: Various web build improvements, API cleanup (#1541) 2024-02-10 23:31:05 +01:00
shortcut_manager.cpp impr: Don't pass unique_ptr by const reference 2024-02-24 15:06:28 +01:00
task_manager.cpp impr: Allow providers to be closed quicker after being opened 2024-05-17 21:56:43 +02:00
theme_manager.cpp fix: Lockup when changing themes in some cases 2024-04-23 21:02:16 +02:00
tutorial_manager.cpp fix: Missing includes 2024-01-30 15:50:00 +01:00
workspace_manager.cpp fix: Workspaces not being deletable correctly in all cases 2024-05-30 16:56:39 +02:00