https://github.com/vigo/textmate2-gomodifytags
TextMate2 implementation of Fatih’s gomodifytags
https://github.com/vigo/textmate2-gomodifytags
golang gomodifytags textmate-bundle
Last synced: 11 months ago
JSON representation
TextMate2 implementation of Fatih’s gomodifytags
- Host: GitHub
- URL: https://github.com/vigo/textmate2-gomodifytags
- Owner: vigo
- License: mit
- Created: 2023-08-23T10:47:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T20:51:24.000Z (about 2 years ago)
- Last Synced: 2024-05-01T19:38:03.533Z (over 1 year ago)
- Topics: golang, gomodifytags, textmate-bundle
- Language: Shell
- Homepage:
- Size: 11.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README




# Go Modify Tags for TextMate2
This is the TextMate2 implementation of Fatih’s [gomodifytags][01].

---
## Requirements
You need to install;
```bash
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;
```bash
go env GOPATH # grab the value; e.g: /Users/vigo/.local/go
```
Your path variable should look like this:
[x] PATH :
# e.g:
/Users/vigo/.local/go/bin:/opt/homebrew/bin:/opt/homebrew/opt/go/bin:${PATH}
---
## Install and Update
```bash
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
```
---
## Change Log
**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*)
---
## Editor Features
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!
---
## Contribute
PR’s are very welcome!
1. `fork` (https://github.com/vigo/textmate2-gomodifytags/fork)
2. Create your `branch` (`git checkout -b my-feature`)
3. `commit` yours (`git commit -am 'added feature'`)
4. `push` your `branch` (`git push origin my-feature`)
5. Than create a new **Pull Request**!
---
## Contributor(s)
- [Uğur "vigo" Özyılmazel][vigo] - Creator, maintainer
---
## License
This project is licensed under MIT.
---
[01]: https://github.com/fatih/gomodifytags
[vigo]: https://vigo.io