TermuxC 2.2.0__tar.gz → 2.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TermuxC
3
- Version: 2.2.0
3
+ Version: 2.2.3
4
4
  Summary: A lightweight utility to copy text to the device clipboard using OSC 52.
5
5
  Author: Ruizennis
6
6
  License: MIT
@@ -95,4 +95,4 @@ View Package here! https://pypi.org/project/TermuxC/
95
95
 
96
96
 
97
97
  ### Tmux support
98
- As of version **2.2.0** TermuxC has native tmux support!
98
+ As of version **2.2.0 And above** TermuxC has native tmux support!
@@ -77,4 +77,4 @@ View Package here! https://pypi.org/project/TermuxC/
77
77
 
78
78
 
79
79
  ### Tmux support
80
- As of version **2.2.0** TermuxC has native tmux support!
80
+ As of version **2.2.0 And above** TermuxC has native tmux support!
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "TermuxC"
7
- version = "2.2.0"
7
+ version = "2.2.3"
8
8
  description = "A lightweight utility to copy text to the device clipboard using OSC 52."
9
9
  authors = [{name = "Ruizennis"}]
10
10
  requires-python = ">=3.7"
@@ -58,14 +58,16 @@ def Copy(string):
58
58
  multiplexor = check_for_tmux()
59
59
  if multiplexor:
60
60
  tmuxpath = os.path.expanduser('~/.tmux.conf')
61
- content = ''
61
+ Fcontent = ''
62
62
  if os.path.exists(tmuxpath):
63
63
  with open(tmuxpath, 'r') as file_read:
64
- content = file_read.read()
65
- if not "allow-passthrough" in content:
66
- with open(tmuxpath, 'a') as file:
67
- file.write("\nset -g allow-passthrough on\n")
68
- os.system(f"tmux source-file {tmuxpath} >/dev/null 2>&1")
64
+ Fcontent = file_read.read()
65
+
66
+ if not "allow-passthrough" in Fcontent:
67
+ with open(tmuxpath, 'a') as file:
68
+ file.write("\nset -g allow-passthrough on\n")
69
+ os.system(f"tmux source-file {tmuxpath} >/dev/null 2>&1")
70
+
69
71
  write_code = f"\033Ptmux;\033\033]52;c;{b64}\a\033\\" # special tmux osc command
70
72
  else:
71
73
  write_code = f"\033]52;c;{b64}\a"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TermuxC
3
- Version: 2.2.0
3
+ Version: 2.2.3
4
4
  Summary: A lightweight utility to copy text to the device clipboard using OSC 52.
5
5
  Author: Ruizennis
6
6
  License: MIT
@@ -95,4 +95,4 @@ View Package here! https://pypi.org/project/TermuxC/
95
95
 
96
96
 
97
97
  ### Tmux support
98
- As of version **2.2.0** TermuxC has native tmux support!
98
+ As of version **2.2.0 And above** TermuxC has native tmux support!
File without changes
File without changes