exbin / bined-intellij-plugin

Hex viewer/editor plugin for JetBrains IntelliJ platform
https://bined.exbin.org/intellij-plugin
Apache License 2.0
59 stars 9 forks source link

Live reload feature #49

Closed xahon closed 1 year ago

xahon commented 1 year ago

When file is changed outside it should reload the buffer (Probably ask first, intellij doesn't ask for a regular text files)

xahon commented 1 year ago

Oh, I found that if you associate the file with "BinEd Plugin" filetype then live-reload works as expected. Probably should work with "Open As Binary" action as well, or it is by design?

hajdam commented 1 year ago

When using "Open as Binary" file is opened independently and changes are not automatically saved - reloading would mean losing unsaved changes. Also there are two modes - one loads whole file into memory and the other stores only changed partsof file - it should open files with exclusive write lock, but there is no correct implementation finished yet.

hajdam commented 1 year ago

Added basic reload action for partial mode which asks if changes should be written. (write lock maybe in some far future release) Version 0.2.8 released.