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.
19 lines
573 B
C
19 lines
573 B
C
/*
|
|
* GoToFolder.h -- MCDE: the small "Go to Folder" dialog (GoToFolder.c)
|
|
*
|
|
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
|
|
*/
|
|
|
|
#ifndef _GoToFolder_h
|
|
#define _GoToFolder_h
|
|
|
|
#include "FileMgr.h"
|
|
|
|
/* File > Go to Folder... (Shift+Cmd+G): one dialog, the reference's small
|
|
* one -- a label, a path field with ~ and Tab completion, Cancel and Go.
|
|
* A path that is not a folder leaves the dialog open with the reason under
|
|
* the field; Go goes there in REC's window. */
|
|
extern void _GoToFolderShow(FileMgrRec *rec);
|
|
|
|
#endif /* _GoToFolder_h */
|