Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cut #116

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def on_text_command(self,view,command_name,args):
self.check(command_name)
if command_name == "paste": # To avoid pasting in the middle of the view of the copilot
self.on_query_context(view,"pieces_copilot_add",True,sublime.OP_EQUAL,True)

elif command_name == "cut":
self.on_query_context(view,"pieces_copilot_remove",True,sublime.OP_EQUAL,True)
def check(self,command_name):
if command_name.startswith("pieces_") and command_name not in PiecesEventListener.commands_to_exclude: # Check any command
health = PiecesSettings.get_health()
Expand Down