mirror of
https://github.com/qvacua/vimr.git
synced 2024-09-11 17:15:34 +03:00
Compare commits
7 Commits
3b8fbe973b
...
88517d94c6
Author | SHA1 | Date | |
---|---|---|---|
|
88517d94c6 | ||
|
83bbc8274a | ||
|
5c3ffe5645 | ||
|
a06e8cd9fc | ||
|
b6906506c8 | ||
|
33d55d314e | ||
|
b52c45baff |
@ -40,13 +40,14 @@ public extension NvimView {
|
|||||||
func hasDirtyBuffers() -> Single<Bool> {
|
func hasDirtyBuffers() -> Single<Bool> {
|
||||||
self.api
|
self.api
|
||||||
.nvimExecLua(code: """
|
.nvimExecLua(code: """
|
||||||
return vim.fn.getbufinfo({"bufmodified": v:true})
|
local buffers = vim.fn.getbufinfo({bufmodified = true})
|
||||||
|
return #buffers > 0
|
||||||
""", args: [])
|
""", args: [])
|
||||||
.map { result -> Bool in
|
.map { result -> Bool in
|
||||||
guard let info_array = result.arrayValue else {
|
guard let bool = result.boolValue else {
|
||||||
throw RxNeovimApi.Error.exception(message: "Could not convert values into info array.")
|
throw RxNeovimApi.Error.exception(message: "Could not convert values into boolean.")
|
||||||
}
|
}
|
||||||
return info_array.count > 0
|
return bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,25 +265,18 @@ public extension NvimView {
|
|||||||
currentBuffer: RxNeovimApi.Buffer?
|
currentBuffer: RxNeovimApi.Buffer?
|
||||||
) -> Single<NvimView.Buffer> {
|
) -> Single<NvimView.Buffer> {
|
||||||
self.api.nvimExecLua(code: """
|
self.api.nvimExecLua(code: """
|
||||||
local function map(tbl, f)
|
local info = vim.fn.getbufinfo(...)[1]
|
||||||
local t = {}
|
local result = {}
|
||||||
for k,v in pairs(tbl) do
|
result.name = info.name
|
||||||
t[k] = f(v)
|
result.changed = info.changed
|
||||||
end
|
result.listed = info.listed
|
||||||
return t
|
result.buftype = vim.api.nvim_get_option_value("buftype", {buf=info.bufnr})
|
||||||
end
|
return result
|
||||||
return map(vim.fn.getbufinfo(...), function(i)
|
|
||||||
i.buftype = vim.api.nvim_get_option_value("buftype",
|
|
||||||
{buf=i.bufnr})
|
|
||||||
return i
|
|
||||||
end)
|
|
||||||
""", args: [MessagePackValue(buf.handle)])
|
""", args: [MessagePackValue(buf.handle)])
|
||||||
.map { result -> NvimView.Buffer in
|
.map { result -> NvimView.Buffer in
|
||||||
guard let info_array = result.arrayValue,
|
guard let raw_info = result.dictionaryValue
|
||||||
info_array.count == 1,
|
|
||||||
let raw_info = info_array[0].dictionaryValue
|
|
||||||
else {
|
else {
|
||||||
throw RxNeovimApi.Error.exception(message: "Could not convert values into info array.")
|
throw RxNeovimApi.Error.exception(message: "Could not convert values into info dictionary.")
|
||||||
}
|
}
|
||||||
let info: [String: MessagePackValue] = .init(
|
let info: [String: MessagePackValue] = .init(
|
||||||
uniqueKeysWithValues: raw_info.map {
|
uniqueKeysWithValues: raw_info.map {
|
||||||
|
@ -1126,7 +1126,7 @@
|
|||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
CODE_SIGN_IDENTITY = "-";
|
CODE_SIGN_IDENTITY = "-";
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
CURRENT_PROJECT_VERSION = 20240616.090032;
|
CURRENT_PROJECT_VERSION = 20240626.190016;
|
||||||
DEAD_CODE_STRIPPING = YES;
|
DEAD_CODE_STRIPPING = YES;
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
ENABLE_MODULE_VERIFIER = YES;
|
ENABLE_MODULE_VERIFIER = YES;
|
||||||
@ -1192,7 +1192,7 @@
|
|||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
CODE_SIGN_IDENTITY = "-";
|
CODE_SIGN_IDENTITY = "-";
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
CURRENT_PROJECT_VERSION = 20240616.090032;
|
CURRENT_PROJECT_VERSION = 20240626.190016;
|
||||||
DEAD_CODE_STRIPPING = YES;
|
DEAD_CODE_STRIPPING = YES;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
ENABLE_MODULE_VERIFIER = YES;
|
ENABLE_MODULE_VERIFIER = YES;
|
||||||
@ -1225,7 +1225,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 20240616.090032;
|
CURRENT_PROJECT_VERSION = 20240626.190016;
|
||||||
DEFINES_MODULE = YES;
|
DEFINES_MODULE = YES;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
IBC_MODULE = VimR;
|
IBC_MODULE = VimR;
|
||||||
@ -1250,7 +1250,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 20240616.090032;
|
CURRENT_PROJECT_VERSION = 20240626.190016;
|
||||||
DEFINES_MODULE = YES;
|
DEFINES_MODULE = YES;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
IBC_MODULE = VimR;
|
IBC_MODULE = VimR;
|
||||||
|
@ -1224,7 +1224,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.47.3</string>
|
<string>0.47.4</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
@ -1241,7 +1241,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>20240616.090032</string>
|
<string>20240626.190016</string>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
<string>public.app-category.productivity</string>
|
<string>public.app-category.productivity</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>BNDL</string>
|
<string>BNDL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.47.3</string>
|
<string>0.47.4</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>20240616.090032</string>
|
<string>20240626.190016</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
22
appcast.xml
22
appcast.xml
@ -6,23 +6,27 @@
|
|||||||
<description>Most recent changes with links to updates for VimR.</description>
|
<description>Most recent changes with links to updates for VimR.</description>
|
||||||
<language>en</language>
|
<language>en</language>
|
||||||
<item>
|
<item>
|
||||||
<title>v0.47.3-20240616.090032</title>
|
<title>v0.47.4-20240626.190016</title>
|
||||||
<link>https://twitter.com/vimrefined</link>
|
<link>https://twitter.com/vimrefined</link>
|
||||||
<sparkle:version>20240616.090032</sparkle:version>
|
<sparkle:version>20240626.190016</sparkle:version>
|
||||||
<sparkle:shortVersionString>v0.47.3</sparkle:shortVersionString>
|
<sparkle:shortVersionString>v0.47.4</sparkle:shortVersionString>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<ul>
|
<ul>
|
||||||
<li>GH-1072: Match the tab colors 1:1 with Neovim's <code>colorscheme</code>; thanks @s-daveb for the PR!</li>
|
<li>GH-1075: Fix "E1502: Lua failed to grow stack to 4001". Thanks @shanesmith for the PR!</li>
|
||||||
<li>GH-1073: Scroll the window content instead of moving the cursor; thanks @shanesmith for the PR!</li>
|
<li>Dependencies updates:<ul>
|
||||||
|
<li>sparkle-project/Sparkle@2.7.3</li>
|
||||||
|
<li>apple/swift-collections@1.1.1</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
]]></description>
|
]]></description>
|
||||||
<releaseNotesLink>
|
<releaseNotesLink>
|
||||||
https://github.com/qvacua/vimr/releases/tag/v0.47.3-20240616.090032
|
https://github.com/qvacua/vimr/releases/tag/v0.47.4-20240626.190016
|
||||||
</releaseNotesLink>
|
</releaseNotesLink>
|
||||||
<pubDate>2024-06-16T09:05:41.468955</pubDate>
|
<pubDate>2024-06-26T19:04:00.452614</pubDate>
|
||||||
<minimumSystemVersion>12.0</minimumSystemVersion>
|
<minimumSystemVersion>12.0</minimumSystemVersion>
|
||||||
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.47.3-20240616.090032/VimR-v0.47.3.tar.bz2"
|
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.47.4-20240626.190016/VimR-v0.47.4.tar.bz2"
|
||||||
sparkle:edSignature="V+/THcm7Alw5JeBs0wiWkI01b7iQe77teESvKPZPim0eQuDeutoTq+UOC8n+t3pBp0Ptlov/9gimKaXWm8RHDQ==" length="19391605"
|
sparkle:edSignature="YWqNsLlttqQjp5Zv3VQgCW6O7rx4iqUb+wFMwzVVC8ymmUg1WgJ0MY0VKOGiUdos8Ll9y6FjYeJQ2sZSsHQXAA==" length="19392062"
|
||||||
type="application/octet-stream"/>
|
type="application/octet-stream"/>
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
|
@ -6,23 +6,27 @@
|
|||||||
<description>Most recent changes with links to updates for VimR.</description>
|
<description>Most recent changes with links to updates for VimR.</description>
|
||||||
<language>en</language>
|
<language>en</language>
|
||||||
<item>
|
<item>
|
||||||
<title>v0.47.3-20240616.090032</title>
|
<title>v0.47.4-20240626.190016</title>
|
||||||
<link>https://twitter.com/vimrefined</link>
|
<link>https://twitter.com/vimrefined</link>
|
||||||
<sparkle:version>20240616.090032</sparkle:version>
|
<sparkle:version>20240626.190016</sparkle:version>
|
||||||
<sparkle:shortVersionString>v0.47.3</sparkle:shortVersionString>
|
<sparkle:shortVersionString>v0.47.4</sparkle:shortVersionString>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<ul>
|
<ul>
|
||||||
<li>GH-1072: Match the tab colors 1:1 with Neovim's <code>colorscheme</code>; thanks @s-daveb for the PR!</li>
|
<li>GH-1075: Fix "E1502: Lua failed to grow stack to 4001". Thanks @shanesmith for the PR!</li>
|
||||||
<li>GH-1073: Scroll the window content instead of moving the cursor; thanks @shanesmith for the PR!</li>
|
<li>Dependencies updates:<ul>
|
||||||
|
<li>sparkle-project/Sparkle@2.7.3</li>
|
||||||
|
<li>apple/swift-collections@1.1.1</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
]]></description>
|
]]></description>
|
||||||
<releaseNotesLink>
|
<releaseNotesLink>
|
||||||
https://github.com/qvacua/vimr/releases/tag/v0.47.3-20240616.090032
|
https://github.com/qvacua/vimr/releases/tag/v0.47.4-20240626.190016
|
||||||
</releaseNotesLink>
|
</releaseNotesLink>
|
||||||
<pubDate>2024-06-16T09:05:41.468955</pubDate>
|
<pubDate>2024-06-26T19:04:00.452614</pubDate>
|
||||||
<minimumSystemVersion>12.0</minimumSystemVersion>
|
<minimumSystemVersion>12.0</minimumSystemVersion>
|
||||||
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.47.3-20240616.090032/VimR-v0.47.3.tar.bz2"
|
<enclosure url="https://github.com/qvacua/vimr/releases/download/v0.47.4-20240626.190016/VimR-v0.47.4.tar.bz2"
|
||||||
sparkle:edSignature="V+/THcm7Alw5JeBs0wiWkI01b7iQe77teESvKPZPim0eQuDeutoTq+UOC8n+t3pBp0Ptlov/9gimKaXWm8RHDQ==" length="19391605"
|
sparkle:edSignature="YWqNsLlttqQjp5Zv3VQgCW6O7rx4iqUb+wFMwzVVC8ymmUg1WgJ0MY0VKOGiUdos8Ll9y6FjYeJQ2sZSsHQXAA==" length="19392062"
|
||||||
type="application/octet-stream"/>
|
type="application/octet-stream"/>
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# Next
|
# Next
|
||||||
|
|
||||||
|
* GH-1075: Fix "E1502: Lua failed to grow stack to 4001". Thanks @shanesmith for the PR!
|
||||||
* Dependencies updates:
|
* Dependencies updates:
|
||||||
- sparkle-project/Sparkle@2.7.3
|
- sparkle-project/Sparkle@2.7.3
|
||||||
- apple/swift-collections@1.1.1
|
- apple/swift-collections@1.1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user