I have Firefox running on two computers. Each one with your bookmarks.
I'd like to import just a folder of computer 1 Firefox bookmarks to computer 2 Firefox bookmarks.
I don't want to import all the bookmarks, just a folder.
I thought of doing that directly in the bookmarks file: bookmarks.html.
But how do I do it?
Solved:
I exported the bookmarks as an HTML file, then I opened it in an HTML editor. Then it is not so hard to spot the folders and bookmarks inside it. I copied what I wanted.
Open the other Firefox, export bookmarks, open it in an HTML editor and paste the code. Save.
From inside Firefox, import the changed bookmarks.html and voila!!
Backup your bookmarks as a JSON file.
Delete the bookmarks you do not want.
Export the ones you do want as an HTML file
Restore your bookmarks with the JSON file
Install Firefox add-on OneTab
Send tabs to OneTab
Click Share as webpage
(or select and copy the text)
Save and move that page
https://addons.mozilla.org/en-US/firefox/addon/onetab/?src=search
"Send tabs to the right to OneTab" is probably what you're after.
I was similarly surprised how hard this was without an add-on but this is an easy solution once I thought of it.
You have to get used to how OneTab works, and maybe tweak its settings for how you work, and I still do a lot of save all tabs, but OneTab has become a very useful on-the-fly part of my tab/ boookmarking process.
Here's a not too difficult solution.
I've had a similar problem with a folder disappearing from my very heavily populated Bookmarks toolbar. I probably accidentally did something to delete it. Fortunately, the folder still existed on another computer.
I tried exporting to html (10,000 lines) and json (1 line 78,000 characters wide), so I didn't fancy editing either of those.
Here's what I did.
On the computer with the bookmarks still remaining, Export the bookmarks to html (Bookmarks/Show All Bookmarks/Import and Backup/Export Bookmarks to HTML).
Open the containing folder from the download dialog box. Open this html file in Firefox in the destination profile.
Use FF search to find the folder you want and select the title of the folder to the end of the folder contents.
Here's the good stuff. I don't know if this was in Firefox when this problem was first raised. Right click and select "View Selection Source".
You'll get a popup window with just the source you need. Save it straight from the window as a .html file. (Web page only) Copy the path from the saveas box address bar.
Open the bookmarks library ShiftCtrl_B, Import the html file. (Paste the path into the address bar.)
Move the folder from the bottom of the Bookmarks Menu folder to where you want it. Done
Open Firefox
Select a bookmark folder that you want to export
Select Copy
Open a product that permits to "paste as HTML", it will insert the "titles" and
the links in a structure HTML, with correct TAGS (HREF, DD, DT, ...):
PsPad
AceHTML
Create an empty file [NomeFile].HTML
Paste as HTML (you must obtain an HTML structure)
Execute in this order:
Substitute: "DL>"
With: "DL><p>"
Delete: "<DD>"
Delete: "</DD>"
Delete empty rows
Substitute: "<DT>"
With: "<DT><H3>"
Substitute: "<A HREF"
With: "<DT><A HREF"
Save the file
In Firefox
Import and Backup
Import bookmark as HTML, select the file created
Open all the imported links to obtain the favicons
This procedure worked exporting from FireFox 71 and importing in Firefox 83
Drag and drop the folder to any Firefox text-ready field (I'm used to use Yahoo notepad). You will be provided with a clean text list of all the URLs contained in the folder.
Copy/paste on a software able to generate a mail/PDF and all links will be active.
Word/LibreOffice allow the activation of links when any space related figure (spacebar, enter, tab, etc.) is manually added. Pretty boring, but it is an easy task to generate an HTML file ready for import back to Firefox.
Just a wild guess... I think there are specialistic text editors around that have some function able to perform the conversion with much less hassle :)...
For firefox 57 and later, use the addon tabzen.
Install the addon
click tabzen icon
choose settings icon in upper right corner to get popup
on the popup use the icon in the upper right to put the popup in a tab
use import on the root directory of a file you created from the "show all bookmarks" window using export. This had created an html file of all bookmarks in a profile. Now with all this folder structure in tabzen, you can go to a folder and export just that folder to an html file.
You can use that html file, to import where you want it in your own browser by using the "show all bookmarks" window, go to the folder where you want to import to, and import the html file created by tabzen.
By default tabzen puts html files in the download directory.
BookmarksHome cuts out steps 1 and 2 from JT Ripper's answer above. Click the icon opens the bookmarks in a web page in the source profile. Start from step 3 - now only 4 steps. (But it spreads subfolders around you need to search for them!)
I've tried many answers on here, but none of them achieved my goal:
To import all Firefox bookmarks without messing up the folder structure
Here's what worked for me:
open the Website about:profiles
in Root Directory click on Open Directory (if there are multiple profiles, click on the one without the button Lauch profile in new browser)
copy (not move!) all the files onto a USB or smth similiar
3.1 (connect the USB to the 2nd PC)
repeat step 1 and 2 on the 2nd PC
go to the parent directory (i.e. one directory up)
create a new folder, the name should end with ., e.g. "lsri5trz.default"
copy (or move) all the files from the USB into the created folder
go back to firefox in about:profiles
click on Create a new profile > then Next
type in the '2nd name' of the folder (in this case "default")
click on Choose Folder...
select the created folder
under the profile, click on "Lauch profile in new browser"
The disadvantage is that copying the files can take up to 10mins each time, because you are not just copying the bookmarks, but also all the settings, configuration files, themes, addons, history... This is why this is not the optimal way to just import the bookmarks with the right folder structure
One way is
Click on Bookmarks > Organize Bookmarks > Import and Backup > backup
& save that file, transfer it to your new computer and import it into Firefox.
Another tedious(may be) way Organize Bookmarks > Export Bookmark. You can then email the file, save it to a utility like
dropbox, put it on a USB drive or whatever else you may have available
to transfer it to your other computer. Then you can import it into the
browser on your other computer.
Look here : Export Bookmarks in Mozilla Firefox
Related
I opened up a large project in Atom. I'd like to travel to a file that is four folders deep into the project. Normally, I will go into the sidebar and flip open folders. Is there a way to open files programmatically? I'm thinking about the ability to use cd in terminal.
If you're trying to open a deeply nested file, try using the Fuzzy File Finder (Cmd-T on a Mac, Ctrl-T on Windows) to type in the name of the file. If you want to see it in the tree view after opening it, use the Reveal in Tree View feature (right click on the file tab and click Reveal in Tree View, or press Cmd-I with the file open).
Is there a way to create a link to a folder in a Textedit document?
Textedit native interface clearly cannot link to a folder. Finder, drag folder or alias to textedit document, then directly or through system prompts an image icon is created in the Textedit document to represent the folder (or file), but no link is created.
I came here looking for a way to open another TextEdit file using a hotlink. The previous ideas are definitely a step forward for me. While this is a slightly different question, my results may be useful here.
Using the file:// prefix on a full file path of the form:
file:///Users/myname/Documents/Personal/.../file.rtf
If the file is not already open, then the hotlink opens Finder and the file is highlighted.
If the file is already open, then the link takes me to the open file.
I have not found a way to get it to open a file that is not already open.
Results are a little differet when the link is to a folder instead of a file. Using the file:// prefix on a full folder path of the form:
file:///Users/myname/Documents/Personal/.../foldername/
Whether or not the named folder is already open, the hotlink opens Finder for the parent folder and the named folder is highlighted.
If the parent folder is already open, then the link goes to that open folder and highlights the named folder.
I have not found a way to get it to open the target folder, other than by naming a file that is in that folder. The special name "." does not work for that.
In Mojave 10.14.6, using hotlinks to other RTF files that open in TextEdit by default.
Here is a very time-consuming, but effective method to link to a folder from a Textedit document.
Add a file to folder (e.g., an image file), select the file;
Context menu 'Open with...' and select browser (Safari);
Edit browser address bar path to delete filename, leaving path to folder, and copy this address to clipboard;
In Textedit document, enter some text to link to folder (e.g., folder name);
Select text, press Command-K and paste folder path, save.
Now you have a Textedit link to the folder that will open in Finder! Maybe... using Automator and System Preferences Keyboard, this could be turned into a context menu command. Though I am noticing that in macOS Sierra 10.12.1 the use of customizations for context commands is flakey, TO PUT IT MILDLY... There has to be an easier way!
macOS Sierra version 10.12.1
I couldn't get Chrome nor Safari to allow me to select a file path. This is an updated version of Mark Stewart's response that worked for me.
Right click and select "get info" on the file you want to link to in the text document. (You can also select the file and hit "Command + i" to bring up the info dialog box)
Right click the file path in the "Where" field under the "General Section" and select copy
Go to the TextEdit document that you want to create the link in
Select the text you want to use as a link
Select text, press Command-K and paste folder path, but don't hit save yet.
Add the text "file:" without the quotes to the beginning of the link
Add a "/" character (not including the quotes) and the filename and the extension to the end of the link.
Now hit ok or save
I am sure someone could create a hot folder or right click menu that would build the path and precede it with file: and save it to the clipboard automatically.
macOS Catalina 10.15
The Open service should work for opening files and folders from paths in TextEdit and other text editors.
Two ways of getting a file or folder path into TextEdit:
For plain text documents: Simply drag'n'drop a file from Finder to your TextEdit document or
For RTF formatted documents: Select the file or folder in Finder, copy the file path (Command + Option + C), select your document in TextEdit, paste the path to the document (Command + V). That avoids the icon and pastes a text link to formatted and unformatted TextEdit documents.
The result will be something like this: /Path/To/File.ext for files or /Path/To/Folder for folders
To open a file or folder path from TextEdit with the Open service
Select the whole path in TextEdit (e.g. by left-click + hold + move or by moving the cursor with the help of the Arrow keys to the beginning or the end of the path, then select the path by pressing Shift + Arrow left/right keys, optionally in combination with Command or Option key)
Select the service Open from the Service Menu (Contextual or TextEdit menu).
Confirm the dialog Confirm Service: TextEdit wants to use the restricted Service “Open.” by pressing Run Service
You might also want to setup a keyboard shortcut for utilizing the Service Open (e.g. Command + Shift + O). It can be done in > System Preferences > Keyboard > Shortcuts > Services > Text > Open. In the same Keyboard setting window tab, you can also activate All controls for dialog boxes, so that you can confirm Run Service by pressing Spacebar to get keyboard control for the whole task.
Automator:
workflow receives current 'files or folders' in 'Finder'.
Utilities:
'Copy to Clipboard'. Then
save service as:
'Copy Path'.
Finder: right click object (folder or file) and select service Copy Path.
TextEdit: edit link, type file: and paste path from clipboard.
I want to open the tree of folders which contains any code on my Mac in Sublime 3. Something like this:
But I don't have all of it in one folder, and it isn't convenient enough to open many folders in Sublime every time I close the app. So I have created 'aliases' (via Finder) to my folders and put them to one (folder), which i want to open with Sublime.
That didn't work out. Sublime opens these aliases as hex code. While ordinary folders open well.
So the main question: is there a way to make this work as I thought via preferences, or any plugin?
Use symbolic links instead by opening Terminal and using ln -s <SOURCE> <ALIAS>.
You can keep any number of folders you want collected in one place by using projects. Simply drag the folders you want, in the order you want, into the sidebar. Then, select Project -> Save Project As... and save the file anywhere you want with the .sublime-project extension. While you're at it, make sure you have
"hot_exit": true
in your user settings, as this enables you to close windows which have a project assigned to them, and all open files and unsaved changes are automatically preserved. When you next open the project, everything will be the same.
I recently downloaded sublime text3. To get started I dragged and dropped a folder that contained a website to the sidebar. Now I can't open the folder to get to the files. I can't drag the folder back to the desktop either. The only thing I can do is drag the folder up and down the sidebar. Yet I look a videos and see demonstrations of folders being open from the sidebar. I removed another folder of some javascript files from the sidebar and lost it, completely. I installed sidebar Enhancements and now I can see more options but I still can't do anything with the folder. Is there a way to solve this problem?
You are not supposed to be able to drag the folders from Sublime's sidebar back into Windows Explorer (your desktop or any folders part of Windows GUI).
When you delete files from the sidebar, they should be moved to your Recycle Bin, check to see if the files are there.
Is it possible to force Firefox not to change the file extension of a file the user downloads? Currently I have the problem that I have a .reg file to download, but Firefox, even though in the Download dialog it says "Text file (*.reg)", saves it as a .reg.txt file, which is highly annoying. How to fix this?
You could try to do the following things:
1.) https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file
Maybe extension (in your case .reg) is associated with Notepad and you could changed it in Options/Applications
a) Click the menu button and choose Options.
b) Select the Applications panel.
c) The Applications panel will display. Select the type of file for which you want to change the default action.
2.) https://bugzilla.mozilla.org/show_bug.cgi?id=511624
This is an old bug, but if you use the affected version of firefox...
When you right click on a link to a batch file and click save as, it will allow you to save it, but it automatically adds .txt to the end of the filename without informing you.
You are unable to save it as .bat
Reproducible: Always
Steps to Reproduce:
1.Right click on a batch file link
2.Click save as
3.Save it
Actual Results:
filename is file.bat.txt
Seems to be a Firefox on Windows bug. My coworker was implementing download of .reg files and I use Firefox, I tested for him and got a .reg.txt. Just renaming it after download was sufficient to make the .reg work, but I got curious if that would happen on Linux also.
Grabbed my laptop where I have Ubuntu installed and the file was downloaded with the correct extension (just didn't run because .reg is a windows extension, it did open in the text editor). It was not automatically renamed as a .txt.