This is the TextMate2 implementation of Fatih’s gomodifytags.
You need to install;
go install github.com/fatih/gomodifytags@latest
Then check your TextMate2 settings / variables option. If your GOPATH
not
set, find your GOPATH
and add there;
go env GOPATH # grab the value; e.g: /Users/vigo/.local/go
Your path variable should look like this:
[x] PATH <GRABBED-VALUE>:<REST-OF-THE-VALUES>
# e.g:
/Users/vigo/.local/go/bin:/opt/homebrew/bin:/opt/homebrew/opt/go/bin:${PATH}
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone https://github.com/vigo/textmate2-gomodifytags.git GoModifyTags.tmbundle
# update
cd ~/Library/Application\ Support/TextMate/Bundles/GoModifyTags.tmbundle
git pull origin main
2023-10-15
- Fix unsaved file control (won’t work if the file is not saved)
- Fix selection control (won’t work if nothing is selected)
- Fix command existence check (won’t work if the gomodifytags is not added to TM PATH)
All of the commands work with ⌥ + ⌘ + T (option+cmd+T) while you are in go scope:
This operation doesn’t save the current file on purpose! You need to save your current file after change!
PR’s are very welcome!
fork
(https://github.com/vigo/textmate2-gomodifytags/fork)- Create your
branch
(git checkout -b my-feature
) commit
yours (git commit -am 'added feature'
)push
yourbranch
(git push origin my-feature
)- Than create a new Pull Request!
- Uğur "vigo" Özyılmazel - Creator, maintainer
This project is licensed under MIT.