Commit Graph
1 Commits
Author SHA1 Message Date
lotherk 32ba73a160 MCDE dtfile: Go to Folder, the small dialog with ~ and Tab (t0107)
File > Go to Folder... (Shift+Cmd+G, the resource of the old item, its name
kept) opens the reference's dialog instead of CDE's wide "Go To" with a list
of hosts: the title "Go to Folder", "Go to the folder:", one field, Cancel
and Go (Cancel left of Go; Return goes, Escape cancels).  A column of parts,
not a form -- a form whose hidden candidate list sat between two attachments
collapsed to its minimum (measured).

The path: "~" and "~user" through getpwnam, no shell.  Tab completes from
the folder named so far: a unique name is added (and a folder gets its "/"),
otherwise the part all candidates agree on is added and the next Tab shows
the candidates in a list under the field, from which one can be taken.  A
path that is not a folder leaves the dialog open with "There is no folder of
that name." under the field; Go remembers the path in ~/.dt/last-folder, so
the next dialog starts there.

Measured under Xvfb with xdotool (home with Documents, Downloads, Bilder):
Shift+Cmd+G opens it; "~/Doc" + Tab -> "~/Documents/", Return -> the window
shows ~/Documents (docs/screenshots/leopard/finder-go-to-mcde.png);
"~/D" + Tab + Tab -> the candidates "~/Documents", "~/Downloads", a click
takes one and Return opens it (~/Downloads); "~/Nope" + Return -> the error
under the field and the dialog stays; after a Go the next dialog opens with
the last path.

Open: the dialog is placed at the screen's corner by dtwm (as the Trash
question; tried with XmNtransientFor); the CDE "Go To" code stays in the
tree for the restored-dialog path (FileMgr.c), no menu item leads to it now.
2026-11-14 06:27:10 +00:00