Skip to content

Commit d0a87f3

Browse files
committed
Merge branch 'release/0.2.1' into main
2 parents 4836d15 + 34d0ac2 commit d0a87f3

File tree

5 files changed

+31
-8
lines changed

5 files changed

+31
-8
lines changed

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.1] - 2021-02-15
11+
12+
- Integrates #3
13+
14+
### Changed
15+
16+
- Created a `functions` folder and put `code_connect.py` into it. This lets [fisher](https://github.com/jorgebucaran/fisher#creating-a-plugin) discover it and copy it when installing. `code.fish` provides the alias.
17+
1018
## [0.2.0] - 2021-02-15
1119

20+
- Integrates #2
21+
1222
### Changed
1323

1424
- `source` was used to make `code` available through `code_connect.py`, which only output a shell string.
@@ -23,17 +33,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2333

2434
## [0.1.1] - 2021-02-14
2535

36+
- Integrates #1
37+
2638
### Fixed
2739

28-
- Now raises an error when the `socat` binary cannot be found ([#1](https://github.com/chvolkmann/code-connect/pull/1))
40+
- Now raises an error when the `socat` binary cannot be found (#1)
2941

3042
## [0.1.0] - 2021-02-13
3143

3244
### Added
3345

3446
- Initial release of `code-connect` and the corresponding fish plugin
3547

36-
[unreleased]: https://github.com/chvolkmann/code-connect/compare/v0.2.0...HEAD
48+
[unreleased]: https://github.com/chvolkmann/code-connect/compare/v0.2.1...HEAD
49+
[0.2.1]: https://github.com/chvolkmann/code-connect/compare/v0.2.0...v0.2.1
3750
[0.2.0]: https://github.com/chvolkmann/code-connect/compare/v0.1.1...v0.2.0
3851
[0.1.1]: https://github.com/chvolkmann/code-connect/compare/v0.1.0...v0.1.1
3952
[0.1.0]: https://github.com/chvolkmann/code-connect/releases/tag/v0.1.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ Afterwards, you should have a folder `.vscode-server` in your home directory.
2929

3030
## Usage
3131

32-
Set up an alias for `code`, pointing to `code_connect.py` by placing the following line in your shell's rcfile. That's it, you can now use `code` the usual way.
32+
Set up an alias for `code`, pointing to [`code_connect.py`](./functions/code_connect.py) by placing the following line in your shell's rcfile. That's it, you can now use `code` the usual way.
3333

3434
```bash
3535
alias code="/path/to/code_connect.py"
3636
```
3737

3838
- For **bash**, use `~/.bashrc`.
3939

40-
- For **fish**, use `~/.config/fish/config.fish`.
40+
- For [**fish**](https://fishshell.com/), use `~/.config/fish/config.fish`.
4141

42-
Fish users can alternatively install a [plugin](https://github.com/chvolkmann/code-connect-fish-plugin) with the [fisher plugin manager](https://github.com/jorgebucaran/fisher).
42+
Fish users can use [fisher](https://github.com/jorgebucaran/fisher) for an automatic install
4343

4444
```bash
45-
fisher install chvolkmann/code-connect-fish-plugin
45+
fisher install chvolkmann/code-connect
4646
```
4747

4848
## Changelog

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0
1+
0.2.1

functions/code.fish

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/fish
2+
3+
# https://github.com/chvolkmann/code-connect
4+
5+
# absolute path to code_connect.py
6+
set _CODE_CONNECT_PY (dirname (realpath (status --current-filename)))/code_connect.py
7+
8+
function code --description 'Run Visual Studio Code through code-connect'
9+
$_CODE_CONNECT_PY $argv
10+
end

code_connect.py renamed to functions/code_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# based on https://stackoverflow.com/a/60949722
3+
# https://github.com/chvolkmann/code-connect
44

55
import time
66
import subprocess as sp

0 commit comments

Comments
 (0)