From 8904d15ba951b87a36ab6a6c351ce61162f75881 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Thu, 7 Jan 2021 13:28:04 -0600 Subject: [PATCH] shift replace previous --- lib/find-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/find-view.js b/lib/find-view.js index 3fb351bd..c20d22e1 100644 --- a/lib/find-view.js +++ b/lib/find-view.js @@ -235,7 +235,7 @@ class FindView { 'find-and-replace:use-selection-as-replace-pattern': this.setSelectionAsReplacePattern.bind(this) })); - this.refs.replaceNextButton.addEventListener('click', this.replaceNext.bind(this)); + this.refs.replaceNextButton.addEventListener('click', e => e.shiftKey ? this.replacePrevious() : this.replaceNext())); this.refs.replaceAllButton.addEventListener('click', this.replaceAll.bind(this)); this.subscriptions.add(atom.commands.add('atom-workspace', { 'find-and-replace:replace-previous': this.replacePrevious.bind(this),