-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Snippet Editor - Check __tmplintalistedit temp file for external changes and update in Snippet Script box #268
Comments
I had been looking into it because the tmp file gets deleted at line 853 since changing tabs in VScode will change the Window Title that's being monitored. |
I realise it is not ideal, but it is a relatively easy solution. As is is now the snippet editor is activated again when the "window" is no longer available, not sure how to solve that if you don't use the
That leaves us with the problem how detect when the text editor is done/closed so the snippet editor is focused again. The |
I was looking into that, but didn't want to add too much extra code since I was thinking of solutions for a possible Pull. I guess whatever is less resource intensive would work.
Yeah, that's been difficult with vscode since I haven't been able to tell if that file is open in a different tab. Even the process commandline doesn't show the file if the window is shared.
That's fine, I was just mentioning it because my example code had |
I don't use vscode but in my editor I simply say .txt files should be treated as .ahk files re syntax highlighting ;) |
I would do that, but I use vscode (well, vscodium) as my general text editor too 😅 |
I've tried some advanced code I found on the ahk forum to get a list of all opened files by a process. Therefore I'm thinking about adding a checkbox "Monitor editor" that when checked (default) uses the current behaviour with the timer. When unchecked, the button which launched the editor gets a new text and you have to click that button to load the edited file manually, and then it will be deleted (or attempt made, the file could still be open but in that case I think it is user error) |
That'll actually work fine. Simple 😃 |
I was looking at
lintalist/include/Editor.ahk
Lines 837 to 869 in fc1bea3
To stop losing work by accident, could the
__tmplintalistedit
temp file be checked for changes to be copied when Modified Date is different?The snippet Script box could periodically sync with the file until it's deleted.
Something like this maybe?
Note
I have my temp file named as .ahk rather than .txt
The text was updated successfully, but these errors were encountered: