OT: html code to open a document in kwrite?
azlobo73
azlobo73 at gmail.com
Fri May 31 11:22:12 MST 2019
I would create a link to a standard URI and let the browser's filetype
handler decide, then set the default application settings in the browser
for the filetype. If this is living on a web server then the file path
would need to be appropriate. If the file needs to be local, use something
like "file:///some/path/to/notes.txt".
Best,
Ben
python -c "exec(\"import math\\nprint ''.join(map(lambda x: chr(x), (
(ord('a')-(3*5)), int(math.sqrt(math.pi*76)*5+2),
int(math.ceil(math.e)*28), int(math.floor(math.e)*35),
long(abs(4%3*35+3)*2))))\")"
On Fri, May 31, 2019 at 10:30 AM Stephen Partington <cryptworks at gmail.com>
wrote:
> HTML? no. Javascript? possible. Most of the web is really designed to not
> allow this. There are some powerful JS writers, LibreOffice in the web and
> more.
>
> On Fri, May 31, 2019 at 10:16 AM Joe Lowder <joe at actionline.com> wrote:
>
>> Is it possible to write (the simplest possible)
>> html code that will open a text file from a simple
>> menu entry using the 'kwrite' editor ... that will
>> allow me to write and edit in a pre-named text file
>> and save the changes?
>>
>> I do this now from the command line:
>>
>> $ kwrite filename <E>
>>
>> But I would like to be able to do it by simply
>> clicking on an entry in a simple html menu.
>>
>> These attempts do not work:
>> <li><a href=file:/home/joe/notes>open notes text file</a>
>> <li><a href="exec kwrite notes">open notes with kwrite</a>
>> <li><a href="exec /usr/bin/kwrite notes">open notes with exec</a>
>>
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> --
> A mouse trap, placed on top of your alarm clock, will prevent you from
> rolling over and going back to sleep after you hit the snooze button.
>
> Stephen
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20190531/92d3f987/attachment.html>
More information about the PLUG-discuss
mailing list