NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Right click -> Copy file path -feature


Joined: 21 Sep 2010
Posts: 4
Reply with quote
Hi,

please add this feature: if I right click somewhere in the code, I could copy the file path, file name, linenumber and column number to the clipboard. So the result on the clipboard would be like "C:\folder1\folder2\file.php:260:31".
View user's profileFind all posts by ValdemarSend private message
I do a similar thing to this already through the setting >


Joined: 09 Aug 2006
Posts: 26
Reply with quote
I do this by having a batch file c:\toClipboard.bat with the contents echo|set /p=%1| clip

so when it's called it puts whatever you put after the file on the clipboard - .e.g c:\toClipboard.bat "hello" - would put "hello" on the clipboard.

then goto to setting > integration > add menu... give it a name e.g. "reference to clipboard"

then select Execute with Shell

with a command line of

c:\toClipboard.bat "@FName@ @CaretLine@ @CaretPos@"

and tick the options below.

show this commmand in the file bar popup
work with editor
take input from and token under cursor

then close it.

when you right click on the tab in the editor you should now have "reference to clipboard" in there...

just tried and it works for me.

I'd send you a screen shot but it's not letting me upload

cheers
Mike
View user's profileFind all posts by mike_wainSend private message
Right click -> Copy file path -feature
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic