Skip to content

Commit

Permalink
0.2.0 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu authored Apr 13, 2023
1 parent 3d392be commit a82d1cf
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

All notable changes to this project will be documented in this file.

## [Unreleased]
<!-- ## [Unreleased] -->

## [0.2.0]

### Added

Expand Down Expand Up @@ -74,5 +76,6 @@ All notable changes to this project will be documented in this file.
* Neovim user commands to trigger UI keyboard shortcuts.
[unreleased]: https://github.com/mickael-menu/ShadowVim/compare/main...HEAD
[0.2.0]: https://github.com/mickael-menu/ShadowVim/compare/0.1.1...0.2.0
[0.1.1]: https://github.com/mickael-menu/ShadowVim/compare/0.1.0...0.1.1
[0.1]: https://github.com/mickael-menu/ShadowVim/tree/0.1.0
2 changes: 1 addition & 1 deletion Sources/Mediator/Nvim/NvimController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ final class NvimController {

try nvim.start(
headless: false,
listen: Debug.isDebugging ? pipe : nil
listen: pipe
)
buffers.start()

Expand Down
2 changes: 2 additions & 0 deletions Sources/ShadowVim/ShadowVim-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<string>https://mickael-menu.github.io/releases/ShadowVim/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>CjshV4V7MdRwZto4oHYRHiLo3xBccztsSsD3ewjBjDA=</string>
<key>NSAppleEventsUsageDescription</key>
<string>Required to start Neovim from the Terminal</string>
</dict>
</plist>
15 changes: 9 additions & 6 deletions Sources/ShadowVim/ShadowVim.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,16 @@ class ShadowVim: ObservableObject {
/// Launches a new Nvim instance in the Terminal to debug the embedded
/// Nvim.
func openNvimTUI() {
guard let script = Bundle.main.path(forResource: "bind-nvim", ofType: "sh") else {
return
DispatchQueue.global().async {
// Using an Apple Script because of an issue with notarized app and
// `open`. See https://developer.apple.com/forums/thread/723842
NSAppleScript(source: """
tell application "Terminal"
activate
do script "nvim --server /tmp/shadowvim.pipe --remote-ui"
end tell
""")?.executeAndReturnError(nil)
}

Process.launch("open", "-a", "Terminal", script)
.discardResult()
.run()
}

func copyDebugInfo() {
Expand Down
4 changes: 2 additions & 2 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ targets:
deploymentTarget: 13.0
sources: [Sources/ShadowVim]
settings:
CURRENT_PROJECT_VERSION: 2
MARKETING_VERSION: 0.1.1
CURRENT_PROJECT_VERSION: 3
MARKETING_VERSION: 0.2.0
INFOPLIST_FILE: Sources/ShadowVim/ShadowVim-Info.plist
GENERATE_INFOPLIST_FILE: YES
CODE_SIGN_STYLE: Automatic
Expand Down

0 comments on commit a82d1cf

Please sign in to comment.