Keep in mind that OS X treats many copied items as objects, so in trying to paste them into other programs the system may try embedding the copied items' content instead of just the name. However, it does not indicate which items are folders versus files, and does not display any heirarchies so if you are in the Finder list view and have a subdirectory expanded, upon pasting them all into the text document you will not see any indication of which are in the subdirectories. The benefits of this are that it's simple and straightforward, and if you just want to catalog the contents of the current folder then this is all you need. Change the document's format to "Plain Text" in the "Format" menu and then paste the clipboard contents to the document. To do this, open the desired folder you want to list the contents of, and select all items (command-A) then copy them (command-C) and open TextEdit. There are a number of ways to get around this limitation of OS X, some of which may be better than others depending on the circumstances, which include using TextEdit for simple listings and the Terminal for more complex ones, but for people who are not inclined on having fun with the Terminal, you can grab a Finder alternative such as " Path Finder" which does have the ability to print folder views.īesides third-party solutions, the only easy solution in OS X is to copy a folder's contents and paste it into a plain text document in a program such as TextEdit. There is a "Print" command in the Finder, but this will open a document in the preferred application and try to print it from there instead of printing the current folder view. Unfortunately there is no way to do this directly in the Finder. Update Ubuntu 21.10: Fortunatelly, the scripts-accels file works again in Files 40 (Ubuntu 21.Periodically you may have a collection of files that you may wish to catalog by printing a list of the file names out on a per-directory basis, or by saving the name list in a document. Update Ubuntu 20.10: Unfortunately, this does not anymore work in Nautilus 3.38 (Ubuntu 20.10). Or, use the keyboard shortcut that you've just configured :) Test it! Open Nautilus, right click, and choose Scripts > Terminal. Commented lines must have a space after the semicolon Make it executable, then close any Nautilus instance: $ chmod +x TerminalĬreate (or edit) the ~/.config/nautilus/scripts-accels file adding these lines: F12 Terminal In short:Ĭreate a script called Terminal (yes, without a extension) inside the folder ~/.local/share/nautilus/scripts with the following content: #!/bin/sh Long explanation/useful resources can be found here and also here. Since version 3.15.4 Nautilus doesn't load the accel file anymore (Source).įortunatelly there's a better aproach in order to get what you want. Notice that is again removed.įinally, log out for changes to take effect. To (gtk_accel_path "/ExtensionsMenuGroup/TerminalNautilus:OpenFolderLocal" "F12") ( NautilusOpenTerminal::open_terminal is still present in the file, but doesn't seem to have any effect.) So follow the instructions above, except change the line (gtk_accel_path "/ExtensionsMenuGroup/TerminalNautilus:OpenFolderLocal" "") Here, the relevant command in ~/.config/nautilus/accels is TerminalNautilus:OpenFolderLocal. Save the file and restart Nautilus by clicking on the Nautilus icon in your launcher/dash. If the line doesn't exist just copy and paste the one found in this answer at the end of the file. For a list of all possible key codes please consult this answer. If the line exists, add your keyboard shortcut in the second double-quoted segment and uncomment the line by removing : (gtk_accel_path "/DirViewActions/OpenInTerminal" "F12") Try to see if you can find the following line: (gtk_accel_path "/DirViewActions/OpenInTerminal" "") Open ~/.config/nautilus/accels in a text editor of your choice, e.g. If you can't find the can-change-accels key in your dconf configuration you can try the following solution: If you don't see Open in terminal in the File menu and you've just installed nautilus-open-terminal, you might need to first run nautilus -q. Now you can mouseover the action in the file menu, and change the accel by typing your key while the action is highlighted, finally restart your nautilus. Then open nautilus using this command (to disable Unity global menu Temporarily): nautilus -q first sudo apt-get install dconf-tools nautilus-open-terminal, then run dconf-editor and set the org/gnome/desktop/interface/can-change-accels boolean on. Edit: not anymore applicable for Ubuntu 16.10 and newerįinally figured it out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |