jessegrosjean / quickcursor

496 stars 74 forks source link

Update the text in the target upon file save #23

Closed fikovnik closed 12 years ago

fikovnik commented 12 years ago

Hi,

First of all, thanks a lot for this app, it works well.

I was just wondering if it would be possible to update the text in the target every time the file in the text editor changes. For example when editing a wiki, it is nice from time to time to hit the preview button to see that everything is fine. Right now I'd need to close the editor to get the text update (unless I'm missing something). If I remember correctly the firefox extension It's all text did that.

Thanks Filip

jessegrosjean commented 12 years ago

Sorry but this isn't really possible with the current implementation... it used normal "Paste" to get the text back into the target... and so the target needs to be the foreground app for that to work, and so that's why it only happens when you close the document in the editor app.

fikovnik commented 12 years ago

I completely forget to reply, I'm sorry!

I was thinking that you could detect when the application is back in focus and then to update the text* if the underlying file has changed? But I guess you must have thought about it already.