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

SciTE text editor integration #52

Closed
clach04 opened this issue Apr 8, 2023 · 6 comments
Closed

SciTE text editor integration #52

clach04 opened this issue Apr 8, 2023 · 6 comments
Labels
early-access early access code available enhancement New feature or request in-progress Code is in progress

Comments

@clach04
Copy link
Owner

clach04 commented Apr 8, 2023

Spun out of issue #35 for SciTE https://www.scintilla.org/SciTE.html

http://www.texteditors.org/cgi-bin/wiki.pl?TextEditorFamilies

lua

https://github.com/clach04/puren_tonbo/blob/main/pt_scite.lua

Features

python

Read (decrypt) and Write (encrypt) support

clach04 added a commit that referenced this issue Apr 8, 2023
Does NOT implement save.
Only supports Tombo CHI files.
Attempts to save *.chi files will be blocked to prevent replacement with
plain text, does NOT do so for other files (but also doesn't attempt to
decrypt them either).

Requires operating system environment variable PT_PASSWORD is set before
loading scite.
Requires ptcipher in path or set os env PTCIPHER_EXE to full path

Can be copy/pasted into Scite Lua start up script or if using
ParsKorata mini/simple ExtMan can add:

    mgr:load_files{'puren_tonbo.lua'}

to Lua startup script.
@clach04 clach04 added enhancement New feature or request in-progress Code is in progress early-access early access code available labels Apr 21, 2023
clach04 added a commit that referenced this issue Apr 23, 2023
@clach04
Copy link
Owner Author

clach04 commented Apr 24, 2023

Idea: new issue for ptcipher to accept number of input bytes as command line option. If set, read that many bytes rather than looking for EOF. Windows buffered IO work around idea that need to be tested.

@clach04
Copy link
Owner Author

clach04 commented Apr 24, 2023

Research scite_OnOutputLine http://lua-users.org/wiki/SciteExtMan

note password passing issues (no set env var API, so would mean command line passing, or keyring). Could implement setenv() in c in a dll loaded into scite.

https://stevedonovan.github.io/winapi/examples/setenv.lua.html
https://github.com/stevedonovan/winapi/blob/master/examples/setenv.lua

@clach04
Copy link
Owner Author

clach04 commented Apr 24, 2023

If unable to locate dialog options for lua/scite check out:

@clach04
Copy link
Owner Author

clach04 commented Apr 25, 2023

with:

  • older (2019) Windows Scite Version 4.1.5
  • Version 5.3.5 Scintilla:5.3.4 Lexilla:5.2.4 Mar 13 2023 14:19:28

I'm not seeing any evidence that popen is launching/working in write mode (w or wb). The attached script logs to a hard coded file and that file NEVER gets created.
ptcat_debug.py.txt

@clach04
Copy link
Owner Author

clach04 commented Apr 25, 2023

TODO mail scite mailing list.

clach04 added a commit that referenced this issue Jul 1, 2023
clach04 added a commit that referenced this issue Jul 2, 2023
clach04 added a commit that referenced this issue Jul 2, 2023
@clach04
Copy link
Owner Author

clach04 commented Aug 27, 2023

keyring support added 3413d8b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
early-access early access code available enhancement New feature or request in-progress Code is in progress
Projects
None yet
Development

No branches or pull requests

1 participant