DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: here is possibility to copy the same name without path ?  (Read 4,167 times)

Judykator

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 36
It is in the command "Copy target patch (ctrl+c). Is possibility to copy the same name without path ?

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: here is possibility to copy the same name without path ?
« Reply #1 on: March 02, 2017, 08:38 PM »
It is in the command "Copy target patch (ctrl+c). Is possibility to copy the same name without path ?

I don't think FARR has a built in hotkey for that. Here is a quick Autohotkey script to get what you want by quickly pressing ctrl+c twice a file is selected in FARR.

Code: ( autohotkey)
#NoEnv
#SingleInstance force
;double tap ctrl+c in FARR
;to turn clipboard full path into filename
#IfWinActive, ahk_exe FindAndRunRobot.exe
~^c::
if (A_PriorHotkey == A_ThisHotkey)
 if (A_TimeSincePriorHotkey < 500)
  {
  clipwait
  if !FileExist(clipboard)
   return
  SplitPath, % clipboard , file
  clipboard := file
  }
return
#IfWinActive
« Last Edit: March 03, 2017, 01:01 PM by Nod5 »

Original address: https://www.donationcoder.com/forum/index.php?topic=43566.0