PowerGrep Search and Replace: "cannot make replacements using read-only converters" - search

I get an error on PowerGrep software when I try to Replace the content of some files: "cannot make replacements using read-only converters"
What can I do? Can anyone help me a little bit?

I find the solution:
In the left menu, on File formats to convert to plain text, you have to choose from that combo "Writable proprietary formats".
Then, press the section [...] and add NEW (format). In my case, I add .txt. Click ok. And then run "REPLACE"

Related

Sublime Text Does Not Let Me Save My Files

How do I fix this on Mac?
Unable to save /test.py Error: Read-only file system
Since Mojave, you are no longer allowed to write to /. I suspect this is the cause of your problem: nothing to do with Sublime Text.
Pick another directory to save your files to, preferably in your home folder.
Once you make your document, go to File and click Save (or just press cmd+n).
Write the title of your document.
Right under the name there should be a little box that says Macintosh. You can click on it and change it to whatever file you prefer.
you must have left the save location as "macintosh". Basically this error means, that this "macintosh" folder is read-only. There is no issue like "sublime not having permission to write to the disk".
Just save to a usual folder and you would be gtg.
Make sure you save it to your project's folder and not just to the desktop or whatever is the default.

Can sublime 3.0 convert display from plain text to source color scheme automatically?

I'm little new to Sublime, wanted to know if there is a way to change display in sublime-3.0 from plain text to source colors automatically (i.e. Sublime should keep source colring from where code was copied and pasted like- HTML or XML or Java code) without I changing it manually.
Thanks in Advance!
Sublime Text already does this for some languages, like XML.
It works when you have a blank document that is set to Plain Text format (i.e. you open a new tab), and paste something in whose first line can be identified to be a specific language, using regular expressions.
For XML, it looks for an XML prolog or an XML element with a namespace. Regex
For HTML, it looks for a HTML doctype.
It currently doesn't support Java - I guess it's not easy to come up with a regex that would match only the first line of a Java file and not a C# file, for example. If you do have some ideas, you can use https://packagecontrol.io/packages/PackageResourceViewer to edit the relevant .sublime-syntax (YAML) file and add a first_line_match in.
You may also find the following packages helpful:
https://packagecontrol.io/packages/AutoSetSyntax
https://packagecontrol.io/packages/ApplySyntax
Extra note: these "first line matches" also apply when opening files that aren't automatically matched to a syntax by the file's name/extension.
There might be a better way, but I've done it with the Package control ctrl+shift+p (Win, Linux) or cmd+shift+p (OS X). Search for Package Control: install Package, press Enter and then search whatever package you need.
After installing the SCSS package, I'd get the HTML colouring as well.

LXDE: Change text in logout session

I have installed LXDE on my Ubuntu PC (not Lubuntu). I want to change the text in the logout session. The default text is "Logout LXDE session ?". But I want to personalize it. I've already changed the picture of the logout session. Can you help me? Thank you very much.
BowStar
I don’t know yet how to solve this in a completely and permanent way, but you can create a new logout dialogue box:
Make a Folder and, inside it, click with the right mouse button to create a new empty file (a simply txt file) with the name "temp-lubuntu-logout" (you can change the file name after the conclusion of the work.
Paste this text, changing the items to fit your options:
!/bin/sh
lxsession-logout --prompt "Your custom message" --banner "Your logo" \
--side "left | top | right | bottom (The position of the logo)"
Open with the terminal the folder where is your temp-lubuntu-logout file and make it executable with this command:
sudo chmod +x temp-lubuntu-logout
That’s all! You just created a script file!
To verify is it is working, write in the terminal:
./temp-lubuntu-logout
(dont forget the dot before the /)
Now I can’t help more them this. You need to link this script to the the command of a app. Or you can change the lubuntu-logout script with your new script file (you may, for example, rename the original script to "former-lubuntu-logout" and your file to "lubuntu-logout". Probably, the path to the "lubuntu-logout" file is /usr/bin).
https://crisnepita.wordpress.com/2012/08/12/cambiar-un-poco-la-ventana-de-cerrar-sesion-en-lubuntu/
https://unix.stackexchange.com/questions/170029/command-to-log-out-of-lxde-directly/171880
http://tunealxde.blogspot.pt/2015/02/tunea-el-dialogo-de-cierre-de-sesion-de.html
I have found a way to change it.
Warning
This requires you to know what you are doing.
Use your favorite hex editor and edit file /usr/bin/lxsession-logout
Scroll all the way down the file, then go up until you see a human-readable section.
Over there, on a long string, there is the logout menu in bytes.
Once you change stuff in there, and save the binary, if you did not break something it will work. For deleting something, just overwrite its section with spaces, same for text and labels.
Tip: only edit and don't change any appearance order or add more bytes at some index because it will scramble the offset table of the file and will become corrupted.

Quick - Get multiple BBCode links from imgur?

There used to be a way to get a copy-and-paste link of all the [img] codes from an album on imgur, did they remove that? If not, how do you get all the [img]s besides manually doing it?
Example;
[IMG]http://i.imgur.com/photohere.png[/IMG]
paste this in your console:
var bb=[];$('a.zoom').each(function(){bb.push('[img]'+this.href+'[/img]');});console.log(bb.join(''));
I'm sure someone could make a userscript out of this, but this is enough for me.
or, more elegant, if you don't want to select the text yourself:
var bb=[];$('a.zoom').each(function(){var h = this.href; bb.push('[url='+h+']'+'[img]'+h+'[/img][/url]');});window.prompt("Copy to clipboard: Ctrl+C, Enter",bb.join('\n'));
This one opens a prompt with the text already selected, wraps each image in a link, and separates each [img] with a line return

In Sublime Text, how do I find and replace the file name

Is there a way in sublime text where I can find a pattern and replace it with file names.
For example,
I have a bunch of file names that contain people.
I want to replace that with person.
in SideBarEnhancements there is an option to Mass Rename Selection... under Find Advanced to batch rename multiple files.
Menu: Find -> Find in Files...
Sublime is gonna open a new panel at the bottom, you just need to fill the fields. Inside the field Where, you can, for example, look up only for .txt files:
Find: People
Where: C:\Temp, *.txt
Replace: Person
No you cannot do a find and replace on a filename. Although there is a great package called SideBarEnhancements which would benefit from this feature. I will definitely submit a feature request.
Install the SideBarEnhancements plugin
Select the folder from side bar
Right click and open the context menu
From Find Advanced -> Mass Rename Selection... you can do this.

Resources