Jump to content
Sign in to follow this  
Attila Kovacs

Open Unit Window

Recommended Posts

I never liked any of the Open Unit implementations including MMX so I started a new pilot project.

Main goal was to get the most out of it without mouse interaction.

 

(Sorry for the blurry images, it's the forum itself)

 

It looks like:

 

image.thumb.png.083b99b16717508029256fbad6a5ed7d.png

 

bold - project files

italic - opened

normal - file in the directory

at the end is the time since the last edit

 

 

Multiple targets can be defined in a file called ".unitdirs" in the project root:

 

@Combined;C:\Users\Jozsi\Documents\Embarcadero\Studio\18.0\Samples\Object Pascal\VCL\SearchBox;C:\Users\Jozsi\Documents\Embarcadero\Studio\18.0\Samples\Object Pascal\VCL\Sensors
@Demos;C:\Users\Jozsi\Documents\Embarcadero\Studio\18.0\Samples\Object Pascal
@MyStuff;C:\Projects\own\ClipboardWizard\.mystuff

 

it's basically:

@Caption;target1;targetN...

 

target can be a directory or a file

 

like .mystuff is a file, containing:

 

C:\Projects\own\ClipboardWizard\BaseDockForm.dfm
C:\Projects\own\ClipboardWizard\BaseDockForm.pas
C:\Program Files (x86)\X-Files Software\X-DBGrid Component\X-DBGrid77\Help\XFiles.pdf
 

Yes, pdf too. It can be defined (in the source code for now) which extensions are shellexecuted, the rest is opened in the IDE.

 

 

image.thumb.png.27afc3d5ac71e316606fa0099b8f6840.png

 

 

With Ctrl-F12 you open this window, with further Ctrl-F12's it's cycling through ".unitdirs" (see above).

With a single F12 it jumps back to the project files.

 

There is more. As the IDE has all the classes loaded (obviously the default ones and the ones you installed before), it's easy to make a dfm preview.

(no linked things like images from another datamodule though)

 

image.thumb.png.fcc66e0eb0bba7dd6db17fb2e1bff02e.png

 

I love fishfacts.

 

I have many other ideas but little time. I could share this next week when I'm back in the office and anybody want's to try or enhance it. It's just a pilot project fo rme.

 

 

 

 

Edited by Attila Kovacs

Share this post


Link to post
26 minutes ago, Attila Kovacs said:

I never liked any of the Open Unit implementations including MXX

Me neither, there really is a lot of room for improvement, even with MMX.

 

I really like the "time since last edit". I suppose it's referring to the files on disk, not the underlying source control system?

 

Not sure if an absolute path to the files is really helpful. Wouldn't a path, relative to the active project root, be sufficient? 🤔

Share this post


Link to post
25 minutes ago, Der schöne Günther said:

Not sure if an absolute path to the files is really helpful. Wouldn't a path, relative to the active project root, be sufficient? 🤔

Yes you are rigth, It's on my list already because absolute paths are pita.

Share this post


Link to post
1 hour ago, Der schöne Günther said:

I really like the "time since last edit". I suppose it's referring to the files on disk, not the underlying source control system?

 

Yes, it's just the LastWriteTime to get some orientation where were we before lunch. But you could query the source control system in a background task, excellent idea!

Edited by Attila Kovacs

Share this post


Link to post
1 hour ago, Der schöne Günther said:

there really is a lot of room for improvement, even with MMX.

Strange. The only open feature request in MMX targeting the Open Unit dialog is to show RC files.:classic_huh:

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×