pgAdmin query tool text highlights - postgresql

Where is option for pgAdmin for highlights same words in query window?
That is, I need if selected word asd in query window, also checked/selected all asd words in this whole text.
In query tool window I not found anything for this.
pgAdmin ||| version 1.22.0 beta

So far, in version 1.22.2, there is no such feature. Alternatively, I use notepad ++ as the editor and then run on pgadmin.

Related

Visual Studio Code: \n in regex file search not supported?

I'm trying a simple regex search with "\n" to find a line feed and some String(s) around. In a single file search it´s working fine (see screenshot on the right), but in a folder search I get the error "Literal '\n' not allowed" (see screen shot on the left). Any idea?
Screenshot
Cheers Daniel
I believe this error is coming from ripgrep, which VSCode uses by default for this search function. I found this comment by the owner, referencing \n in particular.
Fortunately, you can tell VSCode not to use ripgrep in your settings.json:
"search.useRipgrep": false
With ripgrep disabled, \n should work as expected.

Why are values copied from returned grid marked with quotes?

In PgAdmin III, when I copy value from returned grid and paste it into the query text, it appears there in double quotes. But to use it in query, in where clause for example, it has to be marked with apostrophe. So I have to replace quotes with apostrophe. It is rather weird for me that I always have to do so. Why it is designed in such strange way?
This is a kind of stupid theoretical question, I do not expect any practical answers :)
You can customize the quoting character, by following the following steps.
On the PgAdmin-III main window, click on File and then Options
Click on the Query Tool Tab
Change the field called "Result copy quote character" to apostrophe (')
It should work, you may need to close and open PgAdmin-III
EDIT: For Mac OS X the option could be found in pgAdmin3 > Preferences > Query tool > Results grid
For pgAdmin 4 go to File> Preferences> SQL Editor> Results Grid. You can change the Quotation mark to single quote or none.

Tab character when exporting in pgAdmin

I issue a query in pgAdmin and then want to export the result to a file. How can I specify that the column separator should be a tab character?
This comes probably too late for you, but maybe not for others.
You can copy / paste a literal tab character into the (dropdown) text box for "Column separator", like any other valid character, and it will be used. Just tested successfully with pgAdmin 1.14.2.
So far, there is no tab-character option in pgAdmin when you try to export the result to a file.
Refer to: http://www.pgadmin.org/docs/dev/export.html

Eclipse: Can you put your cursor on all lines?

In IDEA you had the possibility to put your cursor on all lines.
Is this possible in Eclipse?
Eclipse 3.5 should have a column mode (which is what I think you're asking about) - use Alt+Shift+A:
http://update.eclipse.org/downloads/drops/R-3.5-200906111540/eclipse-news-part1.html#Text
I haven't tried this since I'm stuck at version 3.4.1 for the time being. There's a patch that claims to work for 3.4.0 (http://tkilla.ch/column_mode/), but it's not working for my 3.4.1 install.
If you refer to the ability to select a group of lines (like a all function), you can use the outline view
alt text http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/topic/org.eclipse.jdt.doc.user/whatsNew/images/drag-and-drop-outline.png
From there, you can move/rearrange/delete all block of text.
If it is about column mode, see my answer here.
alt text http://update.eclipse.org/downloads/drops/R-3.5-200906111540/images/block-selection-mode.png

Double click text selection in CFEclipse

In CFEclipse, I do a lot of double-clicking to select text. The standard behavior is to select all text within the nearest word boundaries. This is problematic when editing code where the original editor didn't use camel-case; for example, they wrote "myObject" as "my_object".
Is there a way to change the double-click selection behavior to include '_' as a valid word character?
In the latest version of CFEclipse, there is now the option to define what characters are considered word boundaries when double-clicking, and also the option to use different characters when using alt or shift keys.
In Preferences, goto CFEclipse > Editor > Text Selection to update this:
(source: bpsite.net)
CFEclipse does not recognize either the underscore or a period as a character for selecting text with a double-click. There is no way that I know of other than rolling your sleeves up and hacking the editor code to change it. I doubt that this will be changed any time soon with the impending release of Bolt from Adobe.
On eclipse 3.4.1 Ganymede, it seems to select the nearest boundaries including the '_' (at least in the java file I am using)
What eclipse version are you using ?
This blog even reports that eclipse3.3 does select word as you are expecting it...
vs.