Search found 22 matches

by Random Void User
30.10.2024 17:30
Forum: Bugs, issues
Topic: Open URL Plugin: Brave Entries - Correct Tool 1-2 Handling - Wayland Sway Notifications
Replies: 4
Views: 287

Re: Open URL Plugin: Brave Entries - Correct Tool 1-2 Handling - Wayland Sway Notifications

Renaming is for style, not for errors. Names should match within and across both code and INI file. Myself, I would rework the plugin. It should use arrays, not individual variables. An array of tuples might work well: (browser name, browser command, menu entry enabled/disabled). Arrays would shorte...
by Random Void User
29.10.2024 17:47
Forum: Bugs, issues
Topic: Open URL Plugin: Brave Entries - Correct Tool 1-2 Handling - Wayland Sway Notifications
Replies: 4
Views: 287

Open URL Plugin: Brave Entries - Correct Tool 1-2 Handling - Wayland Sway Notifications

Open URL plugin needs entires for Brave Browser (normal and --incognito). Linux invocation is "brave-browser". I tried Tool 1 and 2 slots. These tools are not actually invoked (see function "on_click_link"). I had to edit the code. Rename "opt_tool1" to "opt_tool_1...
by Random Void User
07.09.2024 17:03
Forum: General - CudaText
Topic: Dir for Temp and Runtime Files Set by User
Replies: 8
Views: 5737

Re: Dir for Temp and Runtime Files Set by User

FIFOs? first in first out? this is the temp file created by uniqInstance code. I just used 'file' to identify it. I will look at the uniqInstance code later. $ file cudatext_unique_myuser_cudatext.0 cudatext_unique_myuser_cudatext.0: fifo (named pipe) it is OK to create this temp-file in temp-dir -...
by Random Void User
05.09.2024 22:42
Forum: General - CudaText
Topic: Dir for Temp and Runtime Files Set by User
Replies: 8
Views: 5737

Re: Dir for Temp and Runtime Files Set by User

main Alexey wrote: 05.09.2024 04:26 files tuniqueinstance* are exception maybe - they are good in temp/.
FIFOs probably belong in "${XDG_RUNTIME_DIR}/cudatext" on Linux.
by Random Void User
04.09.2024 19:44
Forum: General - CudaText
Topic: Dir for Temp and Runtime Files Set by User
Replies: 8
Views: 5737

Dir for Temp and Runtime Files Set by User

Folders and files currently scattered across $TMP include "cudatext" and "cudatext_addon_man" directries, and the FIFO "tuniqueinstance_someone_cudatext.0" and "cudatext_download.html" when the user checks for app updates. I wish CudaText (or FreePascal?) woul...
by Random Void User
04.09.2024 19:29
Forum: General - CudaText
Topic: Reflow Line Breaks by External Tool
Replies: 13
Views: 10490

Re: Reflow Line Breaks by External Tool

I added macro {SelectionAsTemp}. plugin is updated. please test it, my test with "echo {SelectionAsTemp}" (echo is program on linux) works ok. Yes it works, thank you. I often work with unsaved documents, so the function text2temp in py/cuda_exttools/cd_exttools.py created a file called &...
by Random Void User
03.09.2024 21:24
Forum: General - CudaText
Topic: Reflow Line Breaks by External Tool
Replies: 13
Views: 10490

Re: Reflow Line Breaks by External Tool

Python's subprocess module can feed an external process stdin. This tutorial uses a dummy process that prints stdin. Could this technique somehow use {SelectedText} without making a temp file? import subprocess import sys result = subprocess.run( [sys.executable, "-c", "import sys; pr...
by Random Void User
27.08.2024 00:10
Forum: General - CudaText
Topic: Reflow Line Breaks by External Tool
Replies: 13
Views: 10490

Re: Reflow Line Breaks by External Tool

It works for multi-line. The whole purpose was to reflow line breaks. As an experiment it shows a possibility, but is not elegant. {SelectedTextAsStdIn} would be nice, or rather, a full GUI field group as exists for StdOut. I hope future versions of CudaText will have such choices! Thanks.
by Random Void User
24.08.2024 18:40
Forum: General - CudaText
Topic: Reflow Line Breaks by External Tool
Replies: 13
Views: 10490

Re: Reflow Line Breaks by External Tool

Working code from settings/extttools.json : "id": 782608, "nm": "awktest", "file": "/usr/bin/bash", "ddir": "{FileDir}", "shll": false, "prms": "-c \"/usr/bin/awk -v RS='' -v ORS='\\n\\n' '{gsub(/\\n/...
by Random Void User
24.08.2024 18:01
Forum: Plugins
Topic: Focus Mode plugin
Replies: 7
Views: 5742

Re: Focus Mode Plugin Startup State Should Be INI Field

main Alexey wrote: 24.08.2024 05:52 INI format means it must be 0 or 1. not 'false'!
INI does not specify.
TOML does.

Thank you for the very quick update!