VFPX / GoFish

GoFish is an advanced code search tool for fast searching and replacing of Visual FoxPro source code.
8 stars 7 forks source link

Copy file name to clipboard - confirmation #214

Closed klepetox closed 6 months ago

klepetox commented 7 months ago

📝 Provide a description of the new feature

I copy full file name to clipboard from the result tree pane very often. Each time I have to confirm dialog box that is rather annoying. Is it possible to take this information into the WAIT WINDOW box with NOWAIT parameter?


1


3

myearwood1 commented 7 months ago

Yes. Please do. Also - make the full path optional. I am fine with just the filename and extension.

Jimrnelson commented 7 months ago

@myearwood1 @klepetox

I am curious about the use of this. I must be missing something ... What do you do with this?

klepetox commented 7 months ago

I mean this:

Messagebox('File name (full path) copied to clipboard', 64, JustFname(m.tcFileName))

replace with:

WAIT WINDOW 'File name (full path) copied to clipboard' NOWAIT

in gofishproc.prg

myearwood1 commented 7 months ago

In my case, I am in VFP6, so I have to get the file name from the treeview in GoFish in vfp9, and jump into vfp6 to modify it.

klepetox commented 7 months ago

In my case, I copy full name of .prg and then open it in external editor on the second monitor (open file - put it form clipboard). Then I modify .prg file and still see the original in external program.

Sometimes I need a view .scx table. I copy the filename and from command window I write USE <filename.scx - from clipboard> | BROWSE

and there's more...

myearwood1 commented 7 months ago

@klepetox I could use it to open an .frx. Good idea.

klepetox commented 7 months ago

Sometimes a little thing can seem unnecessary. But for many users it can be very helpful. GoFish has a lot of features, it's really a very powerful tool and every feature has a user. I also want to thank Jim for his efforts here. I am most willing to contribute to testing, for which I have a very elaborate system built up over the years.

myearwood1 commented 7 months ago

I am thankful to Jim too, although I cannot stop confusing his face with the Jim Nelson FoxPro guy I knew in Toronto.

Jimrnelson commented 7 months ago

replace with:

WAIT WINDOW 'File name (full path) copied to clipboard' NOWAIT

Yes, that is what I was planning on.

Jimrnelson commented 7 months ago

@klepetox @myearwood1

Sometimes I need a view .scx table. I copy the filename and from command window I write USE <filename.scx - from clipboard> | BROWSE

I think that should be an option in the right-click menu.

Jimrnelson commented 7 months ago

Sometimes a little thing can seem unnecessary.

Far from thinking this was unnecessary, I was trying to learn from you how you guys took advantage of this feature so that I could do so as well.

Jimrnelson commented 7 months ago

@klepetox @myearwood1

I could use it to open an .frx. Good idea.

You can open a frx right now from the treeview by double-clicking it.

Jimrnelson commented 6 months ago

@klepetox, @myearwood1 :

This issue has been addressed in today's update: Version 7.0.25 - 2024-04-14 (#215)

Right-clicking on a node in the treeview gives this:

image

Similarly, right-clicking on a row in the grid gives this:

image

klepetox commented 6 months ago

Great feature (browse as table), but if I use it I get an error. After ignoring it, the table is opened correctly by the browse command.

1

Jimrnelson commented 6 months ago

LOL!

TAOMB (There's Always One More Bug).

And this one is a left over ancient one from Matt.