diff --git a/.gitignore b/.gitignore index 89fa328..53e13ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /target -/ext/codemp_client/* +test.py # Byte-compiled / optimized / DLL files __pycache__/ @@ -10,8 +10,8 @@ __pycache__/ *.lock #sublime -*.sublime-commands *.sublime-project +*.sublime-workspace # Distribution / packaging .Python diff --git a/Cargo.toml b/Cargo.toml index bd4fa9f..923d3b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,10 @@ name = "codemp_client" crate-type = ["cdylib"] [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-asyncio = { version = "0.19", features = ["tokio-runtime"] } tokio = "1.29.1" [build-dependencies] -pyo3-build-config = "0.19.2" \ No newline at end of file +pyo3-build-config = "0.19.2" diff --git a/Codemp.sublime-commands b/Codemp.sublime-commands new file mode 100644 index 0000000..bf1d4c0 --- /dev/null +++ b/Codemp.sublime-commands @@ -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": { + // + } + }, +] \ No newline at end of file