how to see where and what the changes are when file is modified externally - emeditor

i modify file externally (see below), i want to know where and what the changes are in emEditor,
how to do ?
thanks!

You can use the ActiveCompare macro, written by Takahiro Kawakami.
When the File changed by another program. Reload with changes? message box appears, select Don't Reload, and run this macro. You will be able to compare the current document with the file on disk.

Related

What is the difference between mozconfig vs moz.configure?

I'm trying to build firefox.
it says to edit my mozconfig file. I see a moz.configure file, but no mozconfig file. Should I edit the moz.configure file or create a mozconfig file?
You should not be changing the moz.configure file, as this is a configuration file used internally by the mach build system.
Instead, you should create your own .mozconfig file (don't forget the initial dot!) and put your customization options in there. Simply touch .mozconfig to create the file, then edit it. A brief overview of that file is available on MDN.

Is there a way to listen for non-saved changes of a file?

Currently, I am using the ruby Listen gem that listens for file saves in an ongoing manner and then my application can reacts accordingly after a file is saved. What I would like to do is be able to be updated if a user is updating a file, but not rely on save to get that information.
The use case would be that User X opens a .txt file (which I have predefined) and starts typing in it. With every cursor move, change, keystroke etc I can hear that something has changed and be able to know what the current contents of that .txt file are.
Any thoughts?
Since most editors read the file to memory, and let the user edit it there, the file system has no idea whether any editor is currently editing any file in memory...
The only thing the file system 'knows' is when a file is read or written...

Can the last opened file location be directly altered?

As I understand it, when a file open dialog box (such as GetOpenFileName) is used, Windows will automatically remember where the last file was that was opened by the program, and Windows remembers these locations separately for each program. Is there a way to directly alter this, in order to cause the file picking dialog for program X to start in C:\Example\Directory?
I'm attempting to automate a program which has been programmed to work only through a GUI, and I don't have any access to the internals of this program (such as being able to alter how it calls the file picker). Instead, I'm using a mouse macro (via AutoHotkey). If I can be completely sure that the file picker will start in a particular place, I should be able to automate the rest with mouse clicks.
If you had access to the source code, I'd suggest you just change the lpstrInitialDir property of the OPENFILENAME passed to GetOpenFileName().
Outside of that, you'll want to change the registry keys for the MRUs:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32
What might make more sense, and might fix the issue you're having, is also changing the Working Directory so that the default location isn't "My Documents", if you're experiencing that.
Depending on the operating system, the results vary:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646839%28v=vs.85%29.aspx

Setting Webstorm/PHPStorm file refresh time

It's probably just some simple setting I can't seem to find. Here's the thing: I have a web project with some Compass/Sass CSS. When I modify the Sass file, Compass automatically creates the corresponding CSS-file for me. If the file has changed, Webstorm uploads it to my server, all by itself. Neat!
However, Webstorm (or PHPStorm, for that matter) doesn't immediately notice the change in the CSS file, but checks on external modifications every 2 minutes or so. The CSS file is then being reloaded and uploaded to the server.
How do I set the time interval for checking for external changes!? 2 minutes (or so, I haven't timed it) is too much, I'd rather set it to 10 seconds. What would work for me too, is if I have the option to tell Webstorm to reload the CSS file, because I know it has changed. Sort of like F5 in eclipse. (F5 in Webstorm copies something and I can't find a refresh command or button anywhere.)
Thanks for helping out!
SOLUTION:
See CrazyCoder's comment. Using the 6.0 EAP version of WS solves the problem.
Such command/action to manually "reload" already there -- 3rd button on main toolbar.
File | Synchronize
There is no option in user interface to make any adjustments for the interval. Only things like "Synchronize when IDE gathers focus".
Maybe it is possible to pass some config values via *.vmoptions file, bit I know none of them for file watcher, unfortunately.

if change a file attribute to hidden when it is running, will it affected the process?

if change a file attribute to hidden when it is running, will it affected the process?
My understanding is that the "hidden" attribute only affects visibility of the file, and does not affect your ability to access the file as long as you actually know its full path. Certainly, if you know where a hidden file is, you can navigate to it by typing the full path name and file name into Explorer.
See this article at Bleeping Computer for a little more information. Also, check out the Wikipedia entry on hidden files.
Of course not.
The EXE file's attributes have no effect on the process at all, whether you change them before or after you launch it.

Resources