Sorted drop-down of db list - oracle-sqldeveloper

In the SQL-Developer there is a quick-access drop-down for the databases on the top right corner.
Apparently as a usability feature the recently uses databases are listed on top instead of alphabetically. After a while using diffent databases, I have no clue where my database is and would rather have a strictly alphabetically sorted list.
Is there any way to achieve this?

Related

VS Code multiple find all references

Currently, find all references will display the result in the sidebar, and a new find will always overwrite the previous find. How may I keep multiple find all reference sessions at the same time?
For search I have search editor which each occupies an independent tab, is there something similar for find all references?

Expand only one level in Eclipse search results

I'm searching in Eclipse and getting multi results on multiple modules.
When results returns I have option to Expand All.
Also option to expand a module using * key
But sometimes I need "high level expanding", just seeing the relevant classes or relevant packages in all modules without seeing the specific code lines.
I expected to open one level at a time.
I didn't find such option, is it achievable somehow? Can this requirements be added as an enhancement to Eclipse?
Opened an enhancement Bug 547752 - Add option expand one level at a time in search results
You can vote for it.
I gave 2 options for showing folders relevant to search:
First option is to open one level at a time on every click
Second option is to open all folders not including files in one click
First option is longer to get specific packages/folders
Second option is just open the packages/folders level of relevant files

Github search for matches in different filenames

I use Github search engine pretty often to see how other users have used some function.
The problem is that there is a bunch of repeated results due to copied repositories. Is there any way to search for a text but show only the matches in files with different name?
Thanks
I believe this is what you're looking for. First, search for something. Select "Code" from the menu on the left, and at the bottom you'll see Advanced Search. Find this option and change whatever you like.

How do I run arbitrary SQL on DBeaver?

Ok, so this may seem like a stupid question but I'm fighting DBeaver and so far it's winning and Google is refusing to pick a side.
I've worked out how to explore the database, view the structure of tables, I can even view the data of a table and filter it.
But if I just want to run an arbitrary SQL statement how do I do that?
And 30 seconds after posting I found the answer. There is an SQL Editor menu appeared at the top of the screen (not in the Database Navigator). Selecting SQL Editor from that brings up a query window I can type SQL into.

Writing a macro-like tool

Recently I've been finding myself doing repetitive tasks. I would click button A, highlight text field A, type in some text, click an APPLY button, click on a drop-down box and select a specific option depending on the item I'm working with, select it and hit APPLY, then repeat this process only a couple hundred to thousand times.
So I thought maybe there's a way I could automate this? Macros then came to mind. However I've never wrote macros before so am not sure of several details such as
-what tools should I even work with?
-how do I determine which button to click?
-ideally, I would want to be able to read input from a text file to specify what should be typed in and which option should be selected from the dropdown list. Is this even possible? It seems like an operation that require some intelligence.
I am not picky on tools nor about cleanliness. I just want to be able to automate the process. It will be for personal use unless I find a convenient way such that others can use it as well.
Some details about the dropdown box: when the box is focused, I can hit the DOWN key to scroll from option to option. The items that I have to associate with these options are named exactly the same, so they appear in the same "index" order (meaning, the first item and first option appear at the top of the list, second item and second option appear after, thid item and third option...etc)
The placement of all of these fields can be fixed, so if I have to manually specify where on the screen I should be clicking, that is also a possibility.
Any idea where I should look?
If you're using Windows, AutoIt is a really nice tool.
It records actions (like a word/excel macro)
It offers a BASIC like language + API which is really easy to program (if you need to)
The API is pretty powerful
Check for Windows with a certain title
Automate klicks
...
You can "compile" your scripts into exe files so you can share your tools
It comes bundled with Scite (a nice text editor) + AutoIt syntax higlighting
But you can use any editor you want
It's well documented
It's Freeware
http://www.autoitscript.com/site/
On the Mac, there is Automator. Java has the Robot class in the basic library, to help with such automation. No doubt there are other similar tools.