Recent

Author Topic: Copy full path of source file to clipboard?  (Read 959 times)

jflipp

  • Newbie
  • Posts: 5
Copy full path of source file to clipboard?
« on: June 18, 2022, 11:05:37 pm »
Say, I have a project opened in Lazarus, and this project contains several source files.

Is there an easy, convenient way to copy the full, absolute path of a source file to the clipboard?

I looked through the Lazarus application menus, and also through the context menus in the project inspector and the source code editor, but couldn't find something useful.

Thanks for your help.


dje

  • Full Member
  • ***
  • Posts: 134
Re: Copy full path of source file to clipboard?
« Reply #1 on: June 19, 2022, 02:08:34 am »
Open source file, right click and select "Copy Filename"?

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Copy full path of source file to clipboard?
« Reply #2 on: June 19, 2022, 09:23:48 am »
Open source file, right click and select "Copy Filename"?

Ouch. It should, in principle, be available in Source -> Unit Information. Unfortunately, at least using Linux+GTK2, that's not actually C&Pable.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

jflipp

  • Newbie
  • Posts: 5
Re: Copy full path of source file to clipboard?
« Reply #3 on: June 22, 2022, 11:23:41 pm »
Open source file, right click and select "Copy Filename"?

That's great! Thank you.

In the other IDEs I use, this functionality is in the context menu of the tab with the name of the source file.
So, by habit, I looked only there, but not in the context menu of the text input area of the source code editor.


ASerge

  • Hero Member
  • *****
  • Posts: 2222
Re: Copy full path of source file to clipboard?
« Reply #4 on: June 25, 2022, 07:59:42 am »
Open source file, right click and select "Copy Filename"?
That's great! Thank you.
You first wrote that you wanted the full, absolute path of a source file. This method is not suitable for this.

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: Copy full path of source file to clipboard?
« Reply #5 on: June 25, 2022, 06:14:10 pm »
Open source file, right click and select "Copy Filename"?
That's great! Thank you.
You first wrote that you wanted the full, absolute path of a source file. This method is not suitable for this.

It is if you have saved the package, project or unit. (On Windows).
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018