Recent

Author Topic: [SOLVED]Open the project directory in OS  (Read 2567 times)

kinlion

  • Jr. Member
  • **
  • Posts: 82
  • I Love Lazarus
[SOLVED]Open the project directory in OS
« on: March 21, 2023, 03:13:40 am »
I feel it will be very convenience if one can open the project directory in OS by click or hot key in Lazarus IDE.
In fact, every time I install a new version of Lazarus, I do config this function as a external tool.
Although there is no difficulty to config external tools, I prefer the IDE has this function embeded.

Best wishes to all
 :)
« Last Edit: March 30, 2023, 03:41:35 am by kinlion »

af0815

  • Hero Member
  • *****
  • Posts: 1284
Re: Open the project directory in OS
« Reply #1 on: March 21, 2023, 06:59:10 am »
I have a Icon on my desktop to start one of my fpc/Lazarus installations. I need no more on Linux, RasPian and Windows. And if you need such a function, Lazarus is OpenSource and you have the full code, you can write such a tool by yourself. So you have your preferred function.
« Last Edit: March 21, 2023, 07:01:11 am by af0815 »
regards
Andreas

balazsszekely

  • Guest
Re: Open the project directory in OS
« Reply #2 on: March 21, 2023, 07:12:26 am »
I feel it will be very convenience if one can open the project directory in OS by click or hot key in Lazarus IDE.
In fact, every time I install a new version of Lazarus, I do config this function as a external tool.
Although there is no difficulty to config external tools, I prefer the IDE has this function embeded.
 :)
Right click the panel in the statusbar(the one with file path). See attached image for more details.
« Last Edit: March 21, 2023, 09:11:28 am by GetMem »

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

kinlion

  • Jr. Member
  • **
  • Posts: 82
  • I Love Lazarus
Re: Open the project directory in OS
« Reply #4 on: March 25, 2023, 05:17:41 am »
Right click the panel in the statusbar(the one with file path). See attached image for more details.

Yes, it's just what I need. I never know this function although I have used lazarus for many years. :o

Thanks to GetMem

kinlion

  • Jr. Member
  • **
  • Posts: 82
  • I Love Lazarus
Re: Open the project directory in OS
« Reply #5 on: March 25, 2023, 05:38:55 am »
Is this useful ?
https://wiki.freepascal.org/IDE_tricks#Opening_a_Terminal_Windows_from_the_IDE

Davo

Yes, I configed external tools like the way you mentioned, replaced cmd.exe with explorer.exe. :)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4458
  • I like bugs.
Re: Open the project directory in OS
« Reply #6 on: March 25, 2023, 08:53:35 am »
Right click the panel in the statusbar(the one with file path). See attached image for more details.
Yes, that works with any editor file.
There is a similar "Open Folder..." popup menu item in the "Files" node of Project inspector. It opens the current project's root directory. This may be only in the development version of Lazarus, not sure.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dsiders

  • Hero Member
  • *****
  • Posts: 1045
Re: Open the project directory in OS
« Reply #7 on: March 25, 2023, 05:34:54 pm »
Right click the panel in the statusbar(the one with file path). See attached image for more details.
Yes, that works with any editor file.
There is a similar "Open Folder..." popup menu item in the "Files" node of Project inspector. It opens the current project's root directory. This may be only in the development version of Lazarus, not sure.

I checked 2.2.6. It's present there. With the caveat that it only opens a folder if the project has actually been saved.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4458
  • I like bugs.
Re: Open the project directory in OS
« Reply #8 on: March 26, 2023, 08:39:15 am »
I checked 2.2.6. It's present there. With the caveat that it only opens a folder if the project has actually been saved.
I fixed it in 00e9146b43. Now the menu item shows only for saved projects.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

kinlion

  • Jr. Member
  • **
  • Posts: 82
  • I Love Lazarus
Re: Open the project directory in OS
« Reply #9 on: March 30, 2023, 03:41:10 am »
I checked 2.2.6. It's present there. With the caveat that it only opens a folder if the project has actually been saved.
I fixed it in 00e9146b43. Now the menu item shows only for saved projects.

I got a new way :D
Thanks to JuhaManninen & dsiders.

 

TinyPortal © 2005-2018