External tool which alters a file doesn't always give a prompt to reload it.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
miked
Posts: 69
Joined: Tue Feb 27, 2007 11:17 am

External tool which alters a file doesn't always give a prompt to reload it.

Post by miked »

I'm sure it used to.

Hi,
I use a code formatter I have set up to be called as a tool. If it makes any changes to the active document it will save it. I'm sure TextPad used to pop up the "Another application has updated file XXX, reload it?" box straight away whether or not I had saved it myself before running the tool. Now, if I don't save it first, Textpad saves it for me and runs the tool, but the prompt only appears after I switch to a different document, or switch focus to a diffent application and back to TextPad. If I do save it myself first (and the tool changes the file), the prompt does appear.

I can't remember what version this stopped happening, or if I'm getting senile and it was always like that.
I don't have, or want to have "Save all documents first" checked, although I tried with it checked and the result is the same.

I'm using 9.9.5 and this is with files stored locally.
Not really a problem as the tool output tells me it's changed the file so I know to switch focus and back to get the reload prompt.
User avatar
bbadmin
Site Admin
Posts: 1031
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: External tool which alters a file doesn't always give a prompt to reload it.

Post by bbadmin »

I can't reproduce this.

If your code formatter reads from stdin and writes to stdin, you could configure it as a Text Filter. It would then update the open document, so this issue would not arise. You'd just have to remember to select all before running it (or run it from a macro which does that).

See viewtopic.php?t=13934
Post Reply