joefitzgerald / go-plus

An Enhanced Go Experience For The Atom Editor
https://atom.io/packages/go-plus
Other
1.51k stars 128 forks source link

replacing characters via r in .go files does not work in unsaved files #1012

Open xh3b4sd opened 4 years ago

xh3b4sd commented 4 years ago

Prerequisites

Description

I am coming from https://github.com/t9md/atom-vim-mode-plus/issues/1139 where I reported an issue with keybindings and character replacement. Please see the issue over there for more details.

Output from atom -v && apm -v

Atom    : 1.45.0
Electron: 4.2.7
Chrome  : 69.0.3497.128
Node    : 10.11.0
apm  2.4.3
npm  6.2.0
node 10.2.1 x64
atom 1.45.0
python 2.7.15
git 2.14.1

Output From go env

GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/xh3b4sd/Library/Caches/go-build"
GOENV="/Users/xh3b4sd/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/xh3b4sd/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/xh3b4sd/.gvm/gos/go1.14.1"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/xh3b4sd/.gvm/gos/go1.14.1/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/fs/8hyzj38n2jz1_gvxq09gxpcr0000gn/T/go-build414515090=/tmp/go-build -gno-record-gcc-switches -fno-common"

Steps to Reproduce

See the linked issue in the vim-mode-plus repository above.

Expected Behavior

See the linked issue in the vim-mode-plus repository above.

Actual Behavior

See the linked issue in the vim-mode-plus repository above.