VS Code - How to Hide Files' Paths in Search Palette - javascript

When I search for some keywords in my project using the Search palette, VS Code by default shows the path of each file beside the file in the search result section, as shown below (i.e., folder-one\folder-two):
How can I hide the paths? I googled and searched in the VS Code settings, but could not be successful.

Related

How to change "source mapped from " text in browsers?

I'm generating my JS files with typescript compiler API, and modifying the generated source maps to put relevant information in the source map (like the correct paths to the source code).
Currently, when I open a file in "Sources" tab in chrome. There's the text (source mapped from http://example.com/) in the bottom bar, it's incorrect because I expect there to be a link to the generated file clicking on which should show me the raw source in the sources tab.
So, is there a field I can add in source map files or is there any other way that I can see the generated file link in the "source mapped from" part?

atom.io : Open Files via Clickable Links within Javascript Comments

Is there way, in Atom, to open files that are mentioned in comments?
When I edit a code file, there are often other code files of interest that I may want to also open while working on that file. Sometimes these reference files are miles away and require numerous steps of navigation to open them via the left-pane tree structure.
I was thinking, it would be nice if I could put relative file paths into javascript comments in a manner that atom would understand that if I click that path it should open that file in a new tab.
I suspect this isn't an original idea, so I'm hoping someone can direct me to a solution that enables this type of functionality or make me aware of how it is already enabled but I must use some syntax I'm not currently using.
I found open-project-file and it seems like a nice fit.
Update: I tested it and it works great! You just click on the relative path (whether it is located in code or comment) and by hitting ctrl-shift-o it immediately opens the file in a new tab within the atom editor.

Trouble finding a document in my FTP using Chrome/Inspect Element

My FTP
Currently looking through my directory of my site build. I'm hoping to edit a LINK , but having trouble finding where the actual pages to edit are.
I can find the link that needs editing (using Chrome/Inspect element) but unable to find the actual document in my FTP. Is there a tab or location that will show me the actual name?
The 'SOURCES' Tab DOES show me file names but that file does not exist in my actual directory.
SOURCES TAB
Chrome/ Inspect Element
Any place I'm not looking?
Thank You!
The easiest way to find any code/link is to download all files in local system and use any IDE to perform "FIND ALL FILES". Following is the way how I tackle this:
Once you installed Notepad++ software, open the Notepad++.
Press Ctrl+F to open the Find and replace tool.
Open Find in files tab. Fill in the Find what: field and select the directory for the search (folder with your site files, template package, theme folder, etc.)
Click on Find all button.
You will see the files and lines with the text you were looking for.

How can I jump to my current location in CKEditor 4 when I go to the Source view?

I'm using CKEditor 4, and when I'm in the middle of some long content and switch from the standard editor view over to the Source view (or vice versa), it jumps me back to the top of the content. However, I want to make it so that it stays where I was in the view I just came from.
How can I do this in CKEditor 4? I've tried Googling the answer, but I can't seem to find any relevant hits for either a setting in CKEditor 4 to do this or a snippet of JS that would accomplish the same thing. Thank you.
There's a plugin for this called "Keep TextSelection". Download it here: https://ckeditor.com/cke4/addon/textselection
Extract and upload the textselection folder to the plugins folder. Next add this to the config.js file:
CKEDITOR.editorConfig = function( config ) {
// along with any other config lines add the following
config.extraPlugins = 'textselection';
}
From the WYSIWYG editor press the Source button. Your cursor will be at the same place in the Source view. If you highlight something that same text will be highlighted in Soure view.
Here's a working example:
http://jsfiddle.net/sirtet/TX5bc/

Adobe Illustrator - Automate changing TrueType fonts to OpenType versions

I am trying to figure out a script (be it javascript or AppleScript) or anything that can change truetype fonts in multiple .eps files to the opentype (otf) versions of those fonts without having to do it in Illustrator manually for each file.
This is probably impossible or but any suggestions even if they don't do this exactly would be welcome.
This can be achieved using the following AppleScript, however you'll need to define a list of font mappings.
1. Example AppleScript
set fontMap to {{"Courier", "CourierPSStd"}, {"Baskerville", "BaskervilleMTStd-Regular"}, {"GillSans", "GillSansStd"}}
tell application "Finder"
set chosenFolder to choose folder with prompt "Choose a folder which contains the EPS files to process"
set epsFileList to files of entire contents of folder chosenFolder whose name extension is "eps" and creator type is "ART5" as list
my replaceFonts(epsFileList, fontMap)
end tell
on replaceFonts(epsFileList, fontMap)
tell application "Adobe Illustrator"
repeat with thisEpsFile in epsFileList
set user interaction level to never interact
open thisEpsFile as alias without dialogs
tell document 1
repeat with thisMap in fontMap
try
set text font of (characters of stories whose properties contains {text font:text font (item 1 of thisMap)}) to text font (item 2 of thisMap) of application "Adobe Illustrator"
end try
end repeat
close saving yes
end tell
set user interaction level to interact with all
end repeat
end tell
end replaceFonts
2. What does the script do?
It prompts the user to select a folder which contains the .eps files to be batch processed.
Each .eps file found in the chosen folder (including those in subfolders) are opened in Illustrator repeatedly.
Upon opening each file it finds all instances of a given font and replaces it with another given font.
Each file is saved, then closed before processing the next file.
3. What you'll need to do before running the script...
Unfortunately, there is no way for Illustrator to know which TrueType font should be replaced with which equivalent OpenType font. So you'll need to define which font should be mapped/replaced with which font yourself. To do this you'll need to define each font paring in the first line of code which currently reads:
set fontMap to {{"Courier", "CourierPSStd"}, {"Baskerville", "BaskervilleMTStd-Regular"}, {"GillSans", "GillSansStd"}}
This line of code, (a two dimensional Array), given it's current values informs the script to:
Replace any instances of "Courier" with "CourierPSStd".
Replace any instances of "Baskerville" with "BaskervilleMTStd-Regular".
Replace any instances of "GillSans" with "GillSansStd".
Tip: How can I find the correct names of fonts to create the fontMap array?
I suggest you launch Illustrator and run this very simple script from the AppleScript Editor:
tell application "Adobe Illustrator"
set fontNames to name of every text font
end tell
If you look in the Result panel in the AppleScript Editor you'll see a list of names for each font available on your computer.
4. Notes
The line of code on line 5 which reads;
set epsFileList to files of entire contents of folder chosenFolder whose name extension is "eps" and creator type is "ART5" as list
obtains the list of .eps files to process from the chosen folder. Currently any file found which has a name extension of "eps"and a creator type of "ART5", ("ART5" means it's created by Illustrator), will be included in the batch process. You may need to omit the part which reads:
and creator type is "ART5"
if your .eps files have not been created by Illustrator. However, the script may then attempt to process any bitmap .eps files too - (such as those created in PhotoShop).
Caution: This script currently saves any changes made to your files, so it can be quite destructive if you haven't defined the appropriate fontMap array. I recommend that that you run this on duplicates of your .eps files whilst testing and maybe omit the line of code which reads close saving yes until you're confident your fontMap is yielding the desired results

Categories

Resources