In many ways this is how it should stay.
Regards
Tony
Regards
Tony
Also timimi has some executable opportunities and bob allows you to generate messages to execute on the server, but tiddlydesktop is the most strait forward.Regards
Tony
You seem to be creatively jumping too far ahead. If ultimately you want to use cursor selection to highlight something, get a shortcut to copy this and supply it to timimis command extension then there would be a lot more to do than you present here.
Can I suggest baby steps where you test your understanding in each step.
Or at a minimum ask for a specific outcome.
For building your original solution is there a reason you have not taken my recommendation of tiddlydesktop?
Regards
Tony
For building your original solution is there a reason you have not taken my recommendation of tiddlydesktop?
After mouse clicking:
info.selectionText 11.08.2019
# produced by:
console.log('About to run: info.selectionText %s', info.selectionText);
# in background.js line 32
<$action-launchscript $script="n++.cmd" $param="D:/Development/OCaml/spec/test/core/run.py"/>
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\npp]
@="URL: Notepad++"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\npp\DefaultIcon]
@="\"notepad++.exe, 1\""
[HKEY_CLASSES_ROOT\npp\shell]
[HKEY_CLASSES_ROOT\npp\shell\open]
[HKEY_CLASSES_ROOT\npp\shell\open\command]
@="E:\\Dev\\projects\\src\\go-cookbook\\npp_start.exe %1"
[HKEY_CLASSES_ROOT\xpp]
@="URL: Explorer"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\xpp\DefaultIcon]
@="\"explorer.exe, 1\""
[HKEY_CLASSES_ROOT\xpp\shell]
[HKEY_CLASSES_ROOT\xpp\shell\open]
[HKEY_CLASSES_ROOT\xpp\shell\open\command]
@="E:\\Dev\\projects\\src\\go-cookbook\\xpp_start.exe %1"
\core\modules\parsers\wikiparser\rules\extlink.js
\core\modules\utils\utils.js
\core\modules\parsers\wikiparser\rules\prettylink.js
A click on the last link above
[[xpp: Test directory \git\TW |xpp:D:\TiddlyWiki\My_TiddlyWikis\git\TW]]
produces:
var note = {
exec: "yes",
escript: action[0],
eparam: info.selectionText.trim()
}
// console.log('Cd.K note: %s', JSON.stringify(note));
// console.log('About to run: %s', JSON.stringify(msg));
// var sending = browser.runtime.sendNativeMessage(nmhost, msg);
var sending = browser.runtime.sendNativeMessage(nmhost, note);
sending.then(onNmResponse, onNmError);