.gitignore fixes and codemp cargo git dependency

Former-commit-id: 9271a8624685426267982e0a10a98962acddbdd7
This commit is contained in:
Camillo Schenone 2023-08-17 18:57:21 +02:00
parent 1ab1ac36be
commit 7609cecd40
3 changed files with 49 additions and 4 deletions

4
.gitignore vendored
View file

@ -1,5 +1,5 @@
/target /target
/ext/codemp_client/* test.py
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
@ -10,8 +10,8 @@ __pycache__/
*.lock *.lock
#sublime #sublime
*.sublime-commands
*.sublime-project *.sublime-project
*.sublime-workspace
# Distribution / packaging # Distribution / packaging
.Python .Python

View file

@ -9,10 +9,10 @@ name = "codemp_client"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
codemp = { path = "./ext/codemp" } codemp = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/codemp.git", tag = "v0.3" }
pyo3 = { version = "0.19", features = ["extension-module"] } pyo3 = { version = "0.19", features = ["extension-module"] }
pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] } pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] }
tokio = "1.29.1" tokio = "1.29.1"
[build-dependencies] [build-dependencies]
pyo3-build-config = "0.19.2" pyo3-build-config = "0.19.2"

45
Codemp.sublime-commands Normal file
View file

@ -0,0 +1,45 @@
[
{ "caption": "Preferences: Codemp Client Settings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/CodempClient/CodempClient.sublime-settings",
"default": "{\n\t$0\n}\n"
}
},
{ "caption": "Preferences: Codemp Client Key Bindings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/CodempClient/Default (${platform}).sublime-keymap",
"default": "[\n\t$0\n]\n"
}
},
{ "caption": "Codemp: Open Readme",
"command": "open_file",
"args": {
"file": "${packages}/CodempClient/README.md"
}
},
{
"caption": "Codemp: Connect",
// # on_window_command, does not trigger when called from the command palette
// # See: https://github.com/sublimehq/sublime_text/issues/2234
"command": "proxy_codemp_connect",
"args": {
// "server_host": "http://[::1]:50051"
}
},
{
"caption": "Codemp: Share",
"command": "proxy_codemp_share",
"arg": {
//
}
},
{
"caption": "Codemp: Join",
"command": "proxy_codemp_join",
"arg": {
//
}
},
]