wxHexEditor icon indicating copy to clipboard operation
wxHexEditor copied to clipboard

[Feature request] tags generation and refresh using external command

Open xenogenesi opened this issue 5 years ago • 4 comments

This is point 1 extracted from https://github.com/EUA/wxHexEditor/issues/19#issue-142497151 as requested in https://github.com/EUA/wxHexEditor/issues/19#issuecomment-565716307

The reasons for this and details on implementation are https://github.com/EUA/wxHexEditor/issues/19#issuecomment-565620193 and https://github.com/EUA/wxHexEditor/issues/19#issuecomment-565648241

xenogenesi avatar Dec 14 '19 15:12 xenogenesi

@petergeoghegan is right, a menu item with a keyboard shortcut would be sufficient to get a fast workflow, call LoadTAGS to reload the .tags file and refresh the tag panel, as far as I need it would be enough.

xenogenesi avatar Dec 14 '19 16:12 xenogenesi

Something like this? https://gist.github.com/xenogenesi/eb2d8a8344bd1ed138b761cfd7236fdf

xenogenesi avatar Dec 14 '19 19:12 xenogenesi

I could watch .tags files for modification and reload it if any. But don't decide mechanism like there could be a shell command execute need for generating tags.

EUA avatar Dec 14 '19 20:12 EUA

Personally I would prefer a manual refresh but it could be interesting, maybe add an option in the preferences to enable it automatically?

Having a menu item with a keyboard shortcut without dialogue would be enough for me, at this point I would execute the external command that updates the .tags file manually, wxHexEditor does not need to do it.

I just remember that when I developed a parser for a certain type of file that updated the .tags file, going through the import TAGs dialog was slow and boring (it's ok as long as you use it a few times, but this was not the case).

xenogenesi avatar Dec 14 '19 21:12 xenogenesi