Disable opening image files
-
@wicked-clown said in Disable opening image files:
but it loads images to when i drag and drop
So don’t drag and drop image files?
-
I have thousands of htm files to update they have image each folder
-
I think you’d better put some effort in, and tell us exactly what you’re doing, if you want anyone here to be able to help.
-
@Alan-Kilborn I thought i did. I have folders with index.htm and a image file in it. I need to edit multiple html files. Thousands. But opening all the image files is a waste of time closing them out.
-
Might I recommend not opening thousands of HTML files at the same time? It’s not like you can physically type in thousands of files at the same time, so it might be that you can accomplish the same thing without thousands of files being open:
- I might guess that you want to do a search/replace in all open files using Find > Find All in Open Documents – but you don’t need thousands of files open to do that. You could accomplish the same thing using the Find in Files (“FiF”) feature without having to have the files open; and Find in Files allows you to apply a filter to file extension, so you could say “only find in files for *.htm”.
- the results of either the Find > Find All in Open Documents or the Find in Files both end up in the same Search Results window, so you cannot need to have them all open in order to be able to navigate results. And again, it will be more efficient to do a FiF and only navigate to the interesting results using the Search Results window.
- If you want to have “easy access” to all the files, but are just manually editing a few of those thousands of files, then use Notepad++'s Folder As Workspace feature, which will give you one (or more) folders in the docking panel, and then you can easily select the individual files that you want access to, without having to have thousands of files open. That way, only the files you’re actively using are open, but you have easy access to all of the thousands (and it’s probably easier to find than using the Tab Bar or Window > Windows… or even the Document List panel, because it will keep the hiearchy from your directory structure.
- If you absolutely insist on opening thousands of files: if you’re doing the drag-and-drop from Windows Explorer into Notepad++ one directory at a time, then you could just sort the Explorer by filetype or extension, and only selecting the thousands of HTML without selecting the thousands of images.
If you have some other situation that you think requires opening thousands of files, you might want to explain (in detail) why you think the alternatives I’ve shown won’t work for you.
- I might guess that you want to do a search/replace in all open files using Find > Find All in Open Documents – but you don’t need thousands of files open to do that. You could accomplish the same thing using the Find in Files (“FiF”) feature without having to have the files open; and Find in Files allows you to apply a filter to file extension, so you could say “only find in files for *.htm”.
-
@wicked-clown for file association i added .htm .html in registered extensions. and ran as admin. That did nothing and it wouldnt load anything after.
-
@wicked-clown said in Disable opening image files:
file association i added .htm .html in registered extensions. and ran as admin. That did nothing and it wouldnt load anything after
Changing file association only changes what happens when you double-click a file in Windows Explorer. Drag-and-drop will always try to open any of the files.
(Some people use Notepad++ for looking at or even editing binary files, even though that’s not its purpose; and many people open files with no extensions, or with extensions that the OS doesn’t associate with any “file type”; and many, many people use Notepad++ to open files that are also associated by default with some other application. All three of these are good reasons why Notepad++ cannot just say “I refuse to open anything that’s not associated with me”. Notepad++ doesn’t descriminate, and will open any file you tell it to open.)
-
I guess sorting can work. Im doing few 100 at a time I was hopeing to limit opening image files. Im not sure why anyone would ever want to open it with notepad. But i guess that will work.
-
@wicked-clown said in Disable opening image files:
I was hopeing to limit opening image files. Im not sure why anyone would ever want to open it with notepad
I’m sure that there are many people out there that would really want to do this, maybe to see or (gasp) edit at the byte level (although Notepad++ currently doesn’t fully support view/edit of binary files).
just sort the Explorer by filetype or extension
I guess sorting can work
I’d call this solution “Using Windows Explorer 101” (that is, so obvious I’m not sure why it was even discussed – well, I know why Peter brought it up).
-
@wicked-clown said in Disable opening image files:
I need to only open htm files but it loads images to when i drag and drop.
Most things that show a list of files offer a way to filter the list by file type or extension.
For example, with Windows Explorer type
Ctrl-F
to get to the search box in the upper-right corner and typeext:htm
to only see the HTML files. You can then drag/drop what is shown into Notepad++ and there should be no image files.