bhughes339 / vscode-replacerules

Search/replace rule support for Visual Studio Code
GNU General Public License v3.0
41 stars 13 forks source link

Apply rules to selection only? #54

Closed pauloneill closed 2 years ago

pauloneill commented 2 years ago

Does your extension work against the selection if there is one, or the entire document otherwise?

Full disclosure: I haven't tried this not could I find any documentation about it.... 😞

bhughes339 commented 2 years ago

Yup, a rule will be applied to a selection (or multiple selections) if they exist; otherwise it will be applied to the entire document. It's actually in the first line of the README:

pauloneill commented 2 years ago

Thanks Bill

Best regards, Paul p: (08) 9200 4431 e: @.**@.> w: www.insilico.com.auhttp://www.insilico.com.au/ Because technology should make life easier…

From: Bill Hughes @.> Sent: Saturday, 5 November 2022 2:31 AM To: bhughes339/vscode-replacerules @.> Cc: Paul O'Neill @.>; Author @.> Subject: Re: [bhughes339/vscode-replacerules] Apply rules to selection only? (Issue #54)

Yup, a rule will be applied to a selection (or multiple selections) if they exist; otherwise it will be applied to the entire document. It's actually in the first line of the README:

— Reply to this email directly, view it on GitHubhttps://github.com/bhughes339/vscode-replacerules/issues/54#issuecomment-1303983691, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAA6CCMJR5G332AVISWSJSTWGVI73ANCNFSM6AAAAAARUT534Q. You are receiving this because you authored the thread.Message ID: @.**@.>>