drracket
drracket copied to clipboard
Rename all instances of an identifier (variable or function name, etc)
Other code editors let you rename variables without Ctrl+F'ing through the document to find all instances of the variable name. Additionally, it only renames those variable names that match the scope of the original variable name, ignoring variable names that are defined locally (i.e. in lambdas or interior definitions).
Please right click on an identifier.
Robby
On Tue, Nov 19, 2019 at 6:26 PM AMDphreak [email protected] wrote:
Other code editors let you rename variables without Ctrl+F'ing through the document to find all instances of the variable name. Additionally, it only renames those variable names that match the scope of the original variable name, ignoring variable names that are defined locally (i.e. in lambdas or interior definitions).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/racket/drracket/issues/326?email_source=notifications&email_token=AADBNME6V5ECDCUFMOW4DYTQUR743A5CNFSM4JPLJHOKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2QEV3Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBNMGGMZQIWVRQAMZ5XPTQUR743ANCNFSM4JPLJHOA .
Do you want renaming within a single file, or across multiple files?
Please right click on an identifier. Robby … On Tue, Nov 19, 2019 at 6:26 PM AMDphreak @.***> wrote: Other code editors let you rename variables without Ctrl+F'ing through the document to find all instances of the variable name. Additionally, it only renames those variable names that match the scope of the original variable name, ignoring variable names that are defined locally (i.e. in lambdas or interior definitions). — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#326?email_source=notifications&email_token=AADBNME6V5ECDCUFMOW4DYTQUR743A5CNFSM4JPLJHOKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2QEV3Q>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBNMGGMZQIWVRQAMZ5XPTQUR743ANCNFSM4JPLJHOA .
I have. I swear I saw this feature before but it no longer shows up on Linux/Win/Mac. I'm using lang racket.
I only see
- Undo Redo
- Copy Cut Paste Clear Select all
- Collapse S-expression
- Search in Help Desk for "blah"
Do you want renaming within a single file, or across multiple files?
I mostly am interested in a single file, but across files would be nice too. I'm OK with managing cross-file references for the moment--plus that sounds like a nightmare to create that ability.
What color is the bubble in the lower right of your DrRacket window?
Robby
What color is the bubble in the lower right of your DrRacket window? Robby
It is red. So there are errors in syntax. I was hoping that wasn't the reason.
Red means that it is disabled, actually. Right click on the bubble to turn it back on.
On Tue, Nov 19, 2019 at 9:23 PM AMDphreak [email protected] wrote:
What color is the bubble in the lower right of your DrRacket window? Robby
It is red. So there are errors in syntax. I was hoping that wasn't the reason.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/racket/drracket/issues/326?email_source=notifications&email_token=AADBNMG23RPCFPFI2AJH7GDQUSURTA5CNFSM4JPLJHOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEQSDGA#issuecomment-555819416, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBNMEZE7XZYIGVKK6CQ5TQUSURTANCNFSM4JPLJHOA .
Oh, one other thought: how many cores does your machine have?
FWIW, quickscript-extra also includes a "regexp-replace in selection" script if that can help.
Is it possible to rename a variable across files?
Red means that it is disabled, actually. Right click on the bubble to turn it back on. … On Tue, Nov 19, 2019 at 9:23 PM AMDphreak @.***> wrote: What color is the bubble in the lower right of your DrRacket window? Robby It is red. So there are errors in syntax. I was hoping that wasn't the reason. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#326?email_source=notifications&email_token=AADBNMG23RPCFPFI2AJH7GDQUSURTA5CNFSM4JPLJHOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEQSDGA#issuecomment-555819416>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBNMEZE7XZYIGVKK6CQ5TQUSURTANCNFSM4JPLJHOA .
OK thank you. I did not receive your message. Apologies.
Oh, one other thought: how many cores does your machine have?
My machine has changed since then. I used Racket Lisp on various machines, not all of them mine. I don't recall the specs.