How to interpret or even control the order of the files opened by MDI applications? - windows

Say a directory contains the following sixteen files:
pos1_conf1_1_OS_1state_lbs.out
pos1_conf1_1_OS_3state_lbs.out
pos1_conf2_1_OS_1state_lbs.out
pos1_conf2_1_OS_3state_lbs.out
pos2_conf1_1_OS_1state_lbs.out
pos2_conf1_1_OS_3state_lbs.out
pos3_conf1_1_OS_1state_lbs.out
pos3_conf1_1_OS_3state_lbs.out
pos4_conf1_1_OS_1state_lbs.out
pos4_conf1_1_OS_3state_lbs.out
pos5_conf1_1_OS_1state_lbs.out
pos5_conf1_1_OS_3state_lbs.out
pos5_conf2_1_OS_1state_lbs.out
pos5_conf2_1_OS_3state_lbs.out
pos6_conf1_1_OS_1state_lbs.out
pos6_conf1_1_OS_3state_lbs.out
If I open them all at once, by "File->Open" or "Drag&Drop", the files are opened in completely random order.
It should be noted that this happens both in commercial software such as ChemDraw and home-made utilities. I am wondering how to interpret or even control this random order of the files opened by MDI applications?

If I recall correctly, the file dialog returns the file with the focus rectangle first, and then the remaining files are in the order in which the dialog displayed them. There is no way for you to change this behaviour so if you don't like it you will have to sort the files.

Related

How to move all open Notepad++ files in all views into one single view?

The Issue
When you have Chrome browser open, if you have many different "windows" (as in "open in new window" vs "open in new tab") open, as I often do, it is useful to be able to join them all into one single window, leaving each tab intact. I use an extension called JoinTabs and it works great. A different extension, OneTab, merges all tabs into one tab by converting the individual tabs into hyperlinks -- that is not what I'm trying to do.
What I'm asking is if Notepad++ has configuration settings, a keyboard shortcut, or a plugin that will accomplish the same thing. By "the same thing", I mean not 'merging' all open documents into one document, but rather merging multiple documents dispersed across multiple Notepad++ instances (windows) into one windows.
Example
So, to be ultra clear, lets say I had three Notepad++ instances/windows/views open, and lets refer to them as A, B, and C for ease of discussion. A has 10 files open, B has 3 files open, and C has 5 files open. A working solution must move all open file tabs into window A and remove windows B & C, such that window A now will contain all 18 tabs.
Whenever I search for "join", "merge", or "combine" I keep getting text/document operations instead of view/display operations.
Research
When I search for this all I find are a bunch of false positives including stuff about:
Merging files into one
Merging lines
Merging all files in a directory
Using the 'combine' plugin from Heinz
FYI: Though it can be a little ambiguous, I've tried to take the ambiguity out of it by clarifying -- with a clear example -- what I'm asking. The 'combine' plugin doesn't do anything close to what I'm asking, and it can easily be seen if one take the time to read the description on the author website which says:
3 files (1.txt, 2.txt, 3.txt) can be combined to one file
Those are all entirely different than what I'm asking.
We are not after one file ... but rather all files in one window.
Looking at the Notepad++ Plugin Manager, there is an entry called combine:
...and based on the plugin's description, sounds like what you are seeking?
I have never used the combine plugin, so I have no other details.

Meaning of "IconResource= ..\.. ,(number)"

My first question in Stackoverflow, I'm thinking in making a litle program to edit some folder icons on Windows, I searched for the meaning of the number after the path of the icon but find no answer, the system icons have diferent values, i.e:
Music Folder
IconResource=%SystemRoot%\system32\imageres.dll,-108
Pictures Folder
IconResource=%SystemRoot%\system32\imageres.dll,-113
When we manually change an icon from a folder,usually is used(to keep it in a removable media):
IconResource=..\Icons\icon.ico,0
There is any influence in that last number? Or it doesn't matter for that purpose?
.EXE and .DLL files can contain more than one icon. ,0 is the first icon in the file, this syntax can also be used for .ICO files that only contain one icon.
Positive numbers simply refer to the order the icons are stored in the executable file (,0 is the first, ,1 is the second and ,2 is the third etc.). This order is the same as the order of icons in the standard pick icon dialog in Windows (shortcut properties etc.).
A negative number is the resource id of the icon, this is a number chosen by the author of said executable and can be stable over time even if the number if icons changes if the author chooses to use stable resource ids.
See also:
How the shell converts an icon location into an icon

Is it possible to make the Ctrl-Tab source file switching window (IDE Navigator) in Visual Studio have wider columns?

Some of my source files have long file names and when I press Ctrl-Tab or Shift-Ctrl-Tab, the filenames that are displayed in the Active Files column of the IDE Navigator get truncated (and replaced by an ellipsis) after the 23rd-24th character and become indistinguishable. I am wondering if there is a config file or registry setting somewhere for making the columns in the IDE Navigator wider so that larger file names can fit in the columnar display.
I wouldn't mind making the entire Navigator window larger as well, if it has a max width. When it pops up, I am not interested in seeing the code underneath it, just the filenames of the files that I am about to switch to through consecutive presses of (Shift-)-Ctrl-Tab. I know there is a secret registry entry for showing thumbnails in the Navigator, but I am wondering if there is some control over column width as well.
Thanks for any help.

Visual Studio, Application Settings... rearrange

Silly questions... purely aesthetic... given the picture above. How do you move the values up/down? For example, State belongs grouped with Height/Width/Top/Left (Window Position + state).
Not the only project where I later add stuff and it slowly gets out of order. Can delete/re-add, but that gets tedious and error prone. Can just leave it as is, but it's a minor annoyance.
Am I totally not seeting the setting somewhere to move the stuff around, because I've looked and I just don't see it.
Close the solution. Open the project's Properties\Settings.settings file and re-arrange the <Setting> items. You'll get them back listed in the Settings Designer in the order in which they are listed in that file.
As the other answers indicate you need to edit the sequence of the entries in the Properties\Settings.settings file. You do not need to close VS, just close the Properties tab if it is open.
Also this will not re-arrange the XML entries in you .config file. For that you need to re-arrange the entries in your app.config file, that is created in your root project folder.
Both files are simple XML based files.
You can't move things around in that screen. It's loaded and saved by the "natural" order. Meaning that new things are placed at the bottom.

Fastest way to "jump back" to a file in TextMate?

Often, when I am reading code or debugging, I want the ability to quickly jump around files. I especially want to "go back" to where I was. I know about "Command+T", "Command+Shift+T", and, bookmarks. But, I cannot figure out a way to jump around files quickly.
UPDATE: I do not think I my question was clear enough judging by two answers given. Specifically, I am looking for a way to "jump back" to where I was in a file. I know how to navigate in TextMate (in general). I want to know if TextMate has a "jump back" key binding.
It's subtle.
The command-T thing has the files listed in Most Recently Used order.
So, you can go command-T return to get back to your last file real quick. At first I couldn't find it either.
I don't think there's a go to last edit location as there is in, say, IDEA/RubyMine.
Courtesy of MacroMates.com
2.3 Moving Between Files (With Grace)
When working with projects there are a few ways to move between the open files.
The most straightforward way is by clicking on the file tab you need. This can also be done from the keyboard by pressing ⌘1-9, which will switch to file tab 1-9.
You can also use ⌥⌘← and ⌥⌘→ to select the file tab to the left or right of the current one.
It is possible to re-arrange the file tabs by using the mouse to drag-sort them (click and hold the mouse button on a tab and then drag it to the new location). This should make it possible to arrange them so that keyboard switching is more natural.
One more key is ⌥⌘↑ which cycles through text files with the same base name as the current file. This is mainly useful when working with languages which have an interface file (header) and implementation file (source).
When you want to move to a file which is not open you can use the Go to File… action in the Navigation menu (bound to ⌘T). This opens a window like the one shown below.
Go To File
This window lists all text files in the project sorted by last use, which means pressing return will open (or go to) the last file you worked on. So using it this way makes for easy switching to the most recently used file.
You can enter a filter string to narrow down the number of files shown. This filter string is matched against the filenames as an abbreviation and the files are sorted according to how well they match the given abbreviation. For example in the picture above the filter string is otv and TextMate determines that OakTextView.h is the best match for that (by placing it at the top).
The file I want is OakTextView.mm which ranks as #2. But since I have already corrected it in the past, TextMate has learned that this is the match that should go together with the otv filter string, i.e. it is adaptive and learns from your usage patterns.
If you have a project window open, you can leave frequently-accessed files open (in tabs), and then use ⌘+1-9 to jump to open tabs.

Resources