PowerShellFar - PowerShell host for Far Manager (English)

Here you can discuss about your favorite plug-in.
User avatar
senpost
Posts: 53
Joined: Fri 27 Mar, 2009 03:54

Re: PowerShellFar - PowerShell host for Far Manager (English

Post by senpost »

Latest post of the previous page:

In FAR manager, I can open seperate command window at the current location by just typing start. For example, Active Panel in FAR is in c:\Projects and I type "start" it opens a new console window with path c:\projects. I want to open PowerShell with current path, For instance I type PS, it opens powershell window with location set to c:\projects.

Any ideas?
"To us all towns are one, all men our kin"
Kanniyan Poongundran, Tamil Poet, 500 BC
User avatar
senpost
Posts: 53
Joined: Fri 27 Mar, 2009 03:54

Re: PowerShellFar - PowerShell host for Far Manager (English

Post by senpost »

One solution is
start powershell.exe -noexit -command "set-location '%cd%'"
Any other elegant solutions?
"To us all towns are one, all men our kin"
Kanniyan Poongundran, Tamil Poet, 500 BC
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar - PowerShell host for Far Manager (English

Post by NightRoman »

Type powershell in the command line and hit Shift+Enter, not Enter
zippy1981
Posts: 38
Joined: Thu 17 Jun, 2010 22:14

Re: PowerShellFar - PowerShell host for Far Manager (English

Post by zippy1981 »

I have a question about multi-line brackets that I asked on super user http://superuser.com/questions/249675/c ... hellfar-ed

BTW this is all go information in this forum, but maybe a wiki might be a better way to organize it.

Thank you NightRoman for developing this plugin and for all the help you've been to me.

Justin
User avatar
NightRoman
Posts: 6184
Joined: Fri 18 Aug, 2006 13:52
Location: Cambridge, UK
Has thanked: 32 times
Been thanked: 62 times
Contact:

Re: PowerShellFar - PowerShell host for Far Manager (English

Post by NightRoman »

This is simply a limitation of the editor console feature of PSF. The editor console is designed for true one-liner commands in the first place.

Multiline commands are not suitable for console-like UI anyway: even if you can input and run such a command then you cannot easily bring it back to modify and run again.

But you still can copy/paste/invoke a snippet. Copy, paste, then select its text in the editor console and do: *F11 | PowerShellFar | Invoke selected code*. It's a little bit awkward but it works.
Post Reply

Return to “General Plug-In Discussions”