Figma doesn't load .fig file - figma-api

Everytime I try to open a .fig file this message pops:
"Files failed to import...
newFile.fig
Drop .fig files into the file browser to import them"
How can I solve this?
I already tried on the app of the computer and on the browser.

Look like you create a document and then trying to import another .fig file by drag and drop inside that document. Go to "file browser" (the screen when no docs are open / the page you see right after login from the homepage). Here either you can drag and drop your file or click the import icon on the top right corner. check the screenshot for reference.
How to open file browser : Click file from Figma desktop menu > click "open file browser" . Or press cmd + o on mac (or ctrl+o on Windows I believe) to open file browser on Figma desktop app.

For an updated version, its pretty similar to the answer above, go to figma .com and "import file" and then upload the .fig file.

Related

Mac Textedit link to folder

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.

Copy file full path in Xcode

I'm using Perforce for managing our code base. In Perforce, we need to check out a file before we can edit it. When I'm working in Xcode, sometimes I want to know the full path to the working file so that I can check it out in Perforce.
So here is my question:
Is there a shortcut, plugin or some other quick way to copy the full path of a file in Xcode?
What I have known:
I can Command+click on the file tile to show up the full path, but I cannot copy it.
In Visual Studio, we can right click on the file's tab and choose Copy Full Path to achieve this.
In Eclipse, we can Alt/Option + Enter to achieve this.
Update:
Actually my question is about how to achieve the equivalent Copy Full Path feature inside Xcode. Anyway, dragging the file to the terminal is also a very nice workaround.
You can copy it directly out of the File Inspector. The first section ("Identity and Type") of the File Inspector shows information about the selected file, or the file that contains the selected symbol, etc. You have Name, Type, Location, and Full Path. You can select the full path and copy it.
As a shortcut, a triple click on any part of the path will select the entire path. There's also a small icon with a light arrow on a dark background -- clicking that will open a Finder window with the file selected.
You can drag it to a terminal... Easy and fast...
on your editor XCode (you want to get the file path). Press:
Command+Shift+J
xcode will open directory file path on Project Navigator (left side bar)
and then drag-and-drop file from Project Navigator to the terminal. it will give you the directory of the file.
You can use find command to copy file path:
cd myProject
find . -name myCodeFile.cpp
Extending Caleb's answer, here is a graphical demo:
Steps:
Select a filename on the Project navigator from the left side Navigator panel.
Tap on Show File Inspector from the right side Inspectors panel. (marked with red box)
Copy the path from there. (marked with a bigger red box)

Xcode rearange Files in Finder

I tried to rearrange my source code files in finder and now xcode shows them as deleted. Is there a way to tell xcode the new location of the file?
Click on the Missing file (turns Red) and go to file inspector. Click on the folder button in file inspector and provide the correct path of the file.
For missing files like this in red.
set correct path as shown below.
Select the file in the left (navigator) panel. In Xcode open the right (Utilities) panel if it's not already open. Now click the "File Inspector" tab. You should see a part that says "Location" with a button that looks like a folder. Click that button and then navigate to the folder where you moved the files to. Bam! Xcode should now see it's there!

Xcode 4 file complete path

If I have any file open in Xcode and I would like to know the complete path to the file, how do I do that in Xcode 4? In Xcode 3 I could hover over the file name and get a tooltip with the complete path. I could also right-click a file name at the very top and get a pop-up window with the complete path. This is all gone in Xcode 4.
The annoyance is that when using the Xcode 4 search, it doesn't even show the complete path of the file in the results?!
The only solution I have currently found is to open the save as dialog and get the path from there! That definitely can't be the solution. What am I missing?
For files that are not part of the project you can use the File menu's Show in Finder option.
Update: Xcode 4.2 restored the ability to right-click or command-click on the file's name in the title bar to get a drop-down with the full path.
Show the file inspector utility (normally at the right hand side of the main window on my setup , to do that click the rightmost button of the "View" buttons menu). Click on your file in the navigator and the inspector will refresh with the information. Full path is disclosed and there is a button to open a new Finder window with the enclosing folder.

How to import just a Firefox bookmark folder?

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

Resources