Windows 10 (64 bit), Emacs 25.1.
Sometime I need to work with archive (zip, 7z). I do the next action with archives:
open archive
edit files in archive
copy files from/to archive
delete files from archive
How I can do this in Emacs? Maybe I need to download some package?
edit:
Normally Emacs opens a zip archive and shows its content normally...
No it's not work. Here example.
I enter to zip file
And try to open (press Enter) file build.gradle
Result on screen (No such file or directory)
You can see the issue right there in your screenshot:
Searching for program: No such file or directory, unzip
You simply do not have an unzip executable installed on your computer (or certainly not in any of the C-hv exec-path directories).
Emacs knows how to list the zip file contents without invoking unzip, but it can't extract files without that external program.
Related
I use Visual Studio Code and WinSCP. When I open .scss file via WinSCP the file is opened automatically by VSC – It's ok. There is an extension Live Sass Compiler to I could compile .scss into .css file. The problem is that .css file is created in temporary folder with random number so I always must upload the file manually by drag the file from the folder to FTP client.
Is it there any solution to upload the .css file automatically on save from the temporary folder? Thank you in advance for a help.
Download the files to a local folder.
Have WinSCP monitor the folder and automatically upload any modifications (including new files).
Edit the files locally (and have WinSCP upload the changes, including the generated files).
For your literal question, there's WinSCP feature request.
I have a need to share an eclipse workspace as a zip file. However, when I zip the workspace and then unzip it all of the user configuration is lost including the project that was opened in the workspace, what views are showing, and even a JBoss server that was created.
If I copy and paste the workspace everything works fine.
If I zip and unzip all of the configuration is lost (i.e. when I launch Eclipse and use the unzipped workspace Eclipse opens with all of the default settings including the welcome page).
What could be causing this and how do I get the zip to work?
I know there are other ways to export Eclipse configurations but I do have a specific requirement that this be provided as a zip file.
It looks like the problem was with the file names that started with ".". I re-zipped with WinZip instead of the built-in windows tool and everything is working now. See: blog.robertelder.org/zipping-corrupts-eclipse-workspace
I try to execute a jar file in the command prompt, but I always get the message 'no main manifest attribute, in 2056751-0.0.1-SNAPSHOT-src.jar'. So, I guess I should edit the manifest file. If I check it in the command prompt with the command 'jar tf 2056751-0.0.1-SNAPSHOT-src.jar' I can see that there is a MANIFEST.MF file, still I cannot see it in Eclipse project view.
To partially answer the question asked, IF on Windows (which you didn't say and isn't the only system with a command prompt), a jar file is really a ZIP file underneath and Explorer in all supported versions (>XP/S03) can treat a ZIP file as a directory subtree, so just rename to have the extension .zip and open in explorer, go to META-INF, select MANIFEST.MF and open with plain-text editor of your choice such as notepad. However this may not allow you to edit; if so copy to somewhere writable like the desktop, edit, then copy or move back. Then rename back to .jar
Although the manifest file in a jar can be loaded from an actual file, usually it is created by the jar tool. If you want a jar containing classes to run from the usual file association on Windows use the jar tool with the e option as described in the man page or Windows version on the web and help message. However if your file name is accurate and this is actually a source jar, it will never be runnable by only changing the manifest and you need to learn how Java works.
In my app i have one use case "Download Folder(s)" from web server this folder is in zip format.
This folder contains : text files and more zip folder(s)
So my Question is
should i just download this folder and user will manage it by himself(like unzip it and open files)
OR
Should I make view like table and put folder name which are downloaded recently(just names no unzip and no open files)
OR
folder name in table format and if user press on any folder name(i.e cell in table) unzip folder and new view (table view) with file names and zip folder(as main folder contains both files and zip folder in it) (here unzip but not open files)
OR
Option 3 unzip all files and folder and if user click on any specific file open that files(unzip and open files)
right now i am just doing option 1.
also I am doing my master project so the answers from experience users will help me a lot
Thank you
I agree with AAAAAAAAA - number 3 in the minimum I would expect the app to do.
Ideally, you should unzip when they press a file and display the contents but don't open any files automatically.
However, if they press on a file that is unzipped already, you should try to open it - don't open them automatically when you unzip, open them when the user asks for it to be opened :)
I'm trying to install Enclojure. I've downloaded the latest zip file from GitHub (http://github.com/EricThorsen/enclojure/downloads), but when I unzip it, I get a folder ending in .nbm, not a file. The install directions say to point NetBeans to a .nbm file, not a folder, and NetBeans won't let me select the folder, either. The folder contains files and folders appropriate to a Java plugin, but I think it needs to be compressed into a single file, like a CAB in Windows. I tried downloading another NBM file from the NetBeans plugin repository, and it downloaded as one file, but for some reason it's not working with Enclojure. I don't know whether it matters, but I'm using Mac OS X Leopard.
Any help is much appreciated.
Thanks,
Daniel
I successfully installed Enclojure on Mac OS X 10.5.8 + NetBeans 6.8 like this:
sudo port install wget
wget http://cloud.github.com/downloads/EricThorsen/enclojure/enclojure-plugin-2010-jan.nbm
launch NetBeans, click "Install Plugins", select "Downloaded" tab, "Add Plugins..." button and find your downloaded enclojure-plugin-2010-jan.nbm file
Don't download any of the files provided in .zip format. Download the latest release's .nbm file (enclojure-plugin-2010-jan.nbm currently) by clicking on its name in the table with a couple .nbm entries and a couple of .zips (which you should be able just to ignore). Then follow the rest of the instructions from here.
As a side note, .nbm files are themselves just .zip archives renamed .nbm to mark them for their purpose... Perhaps if you zipped up the contents of your .nbm folder and renamed the archive to whatever.nbm, you'd have a working Enclojure (though I haven't checked). But anyway, don't do it, just grab the .nbm file straight from the source.