SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL MultiTerm
SDL Passolo
SDL Speech to Text
SDL Managed Translation - Enterprise
SDL MultiTrans
SDL TMS
SDL WorldServer
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL XPP
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Language Developers
Tridion Developers
Tridion Docs Developers
Xopus Developers
Community Help
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Style Guides
Language Technology Partner Group
SDL Academic Partners
SDL Approved Trainers
SDL Enterprise Technology Partners
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
This script will take the user back to the segment where the Replace operation was initiated, instead of to the last segment where the Replace operation was executed, which is Studio's default behavior.
The script works by inserting some placeholder text ("markerhere") in the original segment to be found and deleted at the end of the Replace operation.
Hotkeys to run the script:
Ctrl+H - Adds "markerhere" to the active segment. Opens the Replace window. If some text is selected, it will be pasted into the "Find what" field in the Find and Replace dialog box.
Enter - Runs the "Replace all" operation, no need to click Find Next and then Replace All.
Esc - Finds and deletes the "markerhere" placeholder text, leaving the user at the originally active segment, and closes the Find and Replace dialog box.
#IfWinActive ahk_exe SDLTradosStudio.exe$^h:: Send ^c Sleep 200 Send ^a{right} Sleep 200 Send {Space}markerhere Sleep 100 Send ^{PgUp} KeyWait, h send ^h Sleep 200 Send ^v Sleep 100 Send {tab}return
#IfWinActive ahk_exe SDLTradosStudio.exe
$^h::
Send ^c
Sleep 200
Send ^a{right}
Send {Space}markerhere
Sleep 100
Send ^{PgUp}
KeyWait, h
send ^h
Send ^v
Send {tab}
return
#IfWinActive, Find and Replace, &Find what:Enter::Controlclick, Find &Next, Find and ReplaceSleep 1000Controlclick, R&eplace All, Find and ReplaceReturn
#IfWinActive, Find and Replace, &Find what:
Enter::
Controlclick, Find &Next, Find and Replace
Sleep 1000
Controlclick, R&eplace All, Find and Replace
Return
Esc::WinActivate, Find and ReplaceSendinput {Space}markerhereSleep 200Sendinput {tab}Sleep 200Sendinput {delete}Sleep 200Controlclick, Find &Next, Find and ReplaceSleep 1000Controlclick, R&eplace All, Find and ReplaceSleep 500Controlclick, &Close, Find and ReplaceSleep 200Return#IfWinActive
Esc::
WinActivate, Find and Replace
Sendinput {Space}markerhere
Sendinput {tab}
Sendinput {delete}
Sleep 500
Controlclick, &Close, Find and Replace
#IfWinActive
Brilliant script, Nora, thank you. Regards Olivier Den Hartigh
Isn’t it possible to set a temporary bookmark, instead of changing the target text?
Well, using bookmarks would require far more steps and preparation.
First, you'd have to assign shortcuts to "add bookmark", "remove bookmark", "view bookmarks" and "go to bookmark".
Second, you can't go to a bookmark using just the keyboard. To go to a bookmark, you have to open the bookmarks view panel, select the bookmark using the mouse, and then use the "go to bookmark" function. And then you have to remove the bookmark (otherwise you end up with dozens of useless bookmarks), for which you have to use the mouse and the bookmarks view panel all over again.
I think the "bookmarks" feature in Trados was designed for people who want to frequently move to specific points in a long project. They are by design non-temporary.