OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Jochen Schäfer on June 27, 2021, 03:57:34 pm

Title: FeatherPad for OS/2
Post by: Jochen Schäfer on June 27, 2021, 03:57:34 pm
I'm proud to annouce a full featured release of FeatherPad 0.18.0 for OS/2. I started to scratch an itch.
Head over here: https://github.com/josch1710/FeatherPad/releases/tag/v0.18.0-os2 (https://github.com/josch1710/FeatherPad/releases/tag/v0.18.0-os2). There are two binary packages: One is just a zip of the needed files, one is an RPM. For the plain ZIP, you need to install Qt5 and Hunspell. The RPM should pull in the required packages.

Description:
FeatherPad (by Pedram Pourang, a.k.a. Tsu Jan tsujan2000@gmail.com) is a lightweight Qt plain-text editor for Linux. It is independent of any desktop environment and has:


Have fun.
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on June 27, 2021, 06:57:39 pm
Thank you Jochen.

I just installed it (rpm version) and seems to be working fine. I will be trying it further, since it is the first time I'm using it. It looks very good.

Just one thing, the "Help -> About" says it is version 0.19.0.

Regards
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on June 27, 2021, 07:58:15 pm
Martin, you are right. I ported HEAD, but the last release was 0.18.0. I change the release number for the next release.
I still have something to investigate, which doesn't seem to work.
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on June 28, 2021, 10:15:40 am
Little tip for executing script from FeatherPad: Go to Settings -> Files and there activate "Run executable scripts" and enter the location of your favorite shell, eg. /@unixroot/usr/bin/dash.exe. After that, when you execute a supported script type like python with a shebang, you can run the script by pressing ctrl+e.

I looked up on the other repositories of the FeatherPad author. He also has FeatherNote (notes editor) and Arqiver (archive manager).
Anyone interested in a port of these two applications?
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on June 28, 2021, 02:30:39 pm
I looked up on the other repositories of the FeatherPad author. He also has FeatherNote (notes editor) and Arqiver (archive manager).
Anyone interested in a port of these two applications?
Hi
I saw the screenshots of both and look interesting. I want to test "Arqiver".
Regards
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on July 06, 2021, 04:06:25 pm
Hi

Just some a little issue wiht FeatherPad. I don't know if it is from the program or the WPS.

I created a WPS object called "FeatherPad" on the desktop, and assigned this object the association "Plain Text". When I double click a plain text file (like a txt), it opens FeatherPad but not the .txt file inside the app.

Regards
Title: Re: FeatherPad for OS/2
Post by: Andreas Schnellbacher on July 06, 2021, 04:51:54 pm
Most likely the application does not recognize a filename as a file to open as command line argument.

You can check that yourself: Execute <appname> <filename> and see if that works.
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on July 06, 2021, 06:21:24 pm
Hi Andreas

If I execute:
Code: [Select]
featherpad c:\config.sysIt does not open the config.sys file on the app. I guess it is an app limitation then.

Regards
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 06, 2021, 07:02:06 pm
It should be able to open any number of files added on the command line. I have to investigate that issue.
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 06, 2021, 11:34:40 pm
Hi Andreas

If I execute:
Code: [Select]
featherpad c:\config.sysIt does not open the config.sys file on the app. I guess it is an app limitation then.

Regards

What does work is
Code: [Select]
featherpad config.sysand when I typo-ed confog.sys it even said the file doesn't exist.
What doesn't work is any form of drive letter, w:\config.sys, w:\\config.sys and w:/config.sys all fail. /config.sys and \config.sys succeed as long as I'm on the correct drive, w: in my case.
Seems the problem is the : which *nix uses like we use ;
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 06, 2021, 11:39:14 pm
featherpad --help also fails to do anything, the help says it should display all command line options in the terminal.
Interestingly featherpad --help | less makes the terminal disappear, doing the same in fc/2 also makes it disappear but clicking the icon brings it back displaying the command line help piped to less. Piping through tee works better with the window vanishing and then reappearing.
So needs to handle : likely already code for Windows to do that and there's something wrong with the terminal output.

Edit: Killing the less process brings the cmd prompt back
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 07, 2021, 12:40:59 pm
Ok, Featherpad tries to open the files by URL scheme. When opening a local file, it works, but not when non-UNIX path names are included. What works for me, is prepending file:, e.g. file:c:\config.sys.

@Dave: The help and version are not shown, because the application is marked as WINDOWAPI, preventing it from displaying something on the console. I created an issue for this in my Github repo.
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 08, 2021, 04:53:50 pm
So, I tried some stuff with VIO and such, but I couldn't get it to work.
Do we really need the ability to show the help text on the console?
I could write some readme and install it with the RPM.
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 08, 2021, 05:32:06 pm
So, I tried some stuff with VIO and such, but I couldn't get it to work.
Do we really need the ability to show the help text on the console?
I could write some readme and install it with the RPM.

Seems a readme including pointing out the tee or less trick would be fine. People already have to do similar to log messages with some programs such as the Mozilla apps.
It's a pretty short help anyways.
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 09, 2021, 08:48:27 am
I wrote an Readme for OS/2.
Can somebody please check, if is understandable and correct English?
You find it here: https://github.com/josch1710/FeatherPad/blob/master/README_OS2.md
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 09, 2021, 09:31:41 am
I wrote an Readme for OS/2.
Can somebody please check, if is understandable and correct English?
You find it here: https://github.com/josch1710/FeatherPad/blob/master/README_OS2.md

It's mostly correct and understandable except the Unix style paths. Reading it, I would expect featherpad /w:/config.sys to work and it doesn't. The @unixroot is and isn't a valid Unix path, it's more like %UNIXROOT%\config.sys.
Not sure how to state it better, perhaps "Some Unix style paths work using substitution such as @unixroot/config.sys or absolute paths such as \config.sys or /config.sys"
Still doesn't look quite right though
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 09, 2021, 10:27:09 am
Yes, maybe the example is not a good one. My guess is that everything with a forward slash will be recognized as a file URL.
I will test some more and correct the readme.

Thanks Dave
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 10, 2021, 12:21:33 am
Could just replace UNIX type paths with LIBC type paths or simply not mention it.
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 10, 2021, 08:40:08 am
I already updated the readme. The real culprit is only the drive letter. Obviously, QUrl takes that as a protocol designator. I'm thinking about working around it.
Stay tuned.
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 10, 2021, 09:01:44 pm
Here ist the new release: https://github.com/josch1710/FeatherPad/releases/tag/0.19.0-os2.
It includes the OS/2 readme and a workaround of the driver letter issue. Now, one doesn't need to prepend the file: scheme.
Also, the RPM now creates a folder and icons for the application and some documentation.

Enjoy
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 11, 2021, 02:08:29 am
Thanks, installed fine with the folder on the desktop.
One problem I see, with both versions, is that it seems to keep one core busy, sometimes spread out to all 4 cores being partially busy. Hate to run it with only one core and even like this, don't want to leave it open. Perhaps only my system with this?
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 11, 2021, 06:35:25 pm
Dave, I never monitored the CPU usage. I will look at the problem.
Title: Re: FeatherPad for OS/2
Post by: Paul Smedley on July 12, 2021, 11:18:02 am
Thanks, installed fine with the folder on the desktop.
One problem I see, with both versions, is that it seems to keep one core busy, sometimes spread out to all 4 cores being partially busy. Hate to run it with only one core and even like this, don't want to leave it open. Perhaps only my system with this?

Assuming that other Qt5 apps run ok? There were issues with one of the DLLs from the 2019 release causing excessive CPU usage.....
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 12, 2021, 04:15:44 pm
Thanks, installed fine with the folder on the desktop.
One problem I see, with both versions, is that it seems to keep one core busy, sometimes spread out to all 4 cores being partially busy. Hate to run it with only one core and even like this, don't want to leave it open. Perhaps only my system with this?

Assuming that other Qt5 apps run ok? There were issues with one of the DLLs from the 2019 release causing excessive CPU usage.....

Hmm, hearts seems to do the same. This is with all the QT5 dlls from netlabs-rel
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 12, 2021, 04:58:58 pm
That was my suspicion, too, after I checked FeatherPad on my Mac.
Nevertheless, has anyone an idea, where the problem is? Is it the message queue?
Title: Re: FeatherPad for OS/2
Post by: Paul Smedley on July 13, 2021, 04:16:21 am
Thanks, installed fine with the folder on the desktop.
One problem I see, with both versions, is that it seems to keep one core busy, sometimes spread out to all 4 cores being partially busy. Hate to run it with only one core and even like this, don't want to leave it open. Perhaps only my system with this?

Assuming that other Qt5 apps run ok? There were issues with one of the DLLs from the 2019 release causing excessive CPU usage.....

Hmm, hearts seems to do the same. This is with all the QT5 dlls from netlabs-rel

From the gImageReader thread - https://github.com/bitwiseworks/qtbase-os2/issues/121 has the fix to QtCore5.dll

Why this hasn't been pushed out as a fix to netlabs-rel is beyond me....

Cheers,

Paul
Title: Re: FeatherPad for OS/2
Post by: Dave Yeo on July 13, 2021, 05:47:37 am
Hmm, seems I had already downloaded that file last November but never installed it. This does fix the CPU issue.
Thanks
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on July 13, 2021, 09:04:15 am
Well, SDL2 mixer etc are also still in experimental limbo.
Is there anything we can do about it?
Title: Re: FeatherPad for OS/2
Post by: TeLLie on July 13, 2021, 06:07:59 pm
Well, SDL2 mixer etc are also still in experimental limbo.
Is there anything we can do about it?

Hi

Ask Silvan if he will put them to release
Title: Re: FeatherPad for OS/2
Post by: Eugene Tucker on July 14, 2021, 05:41:27 pm
And how do we contact Silvan?
Title: Re: FeatherPad for OS/2
Post by: Andreas Schnellbacher on July 14, 2021, 10:42:39 pm
And how do we contact Silvan?
Email to bww? Or just wait a bit, he scans the fora from time to time and was very responsive in the past. Additionally: It's vacation time.
Title: Re: FeatherPad for OS/2
Post by: TeLLie on July 15, 2021, 08:41:55 pm
Hi
I ask Silvan yesterday he will do when time permits...

It's done now he told me ...
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on September 28, 2021, 09:24:44 am
Hi.

I have dropped a new version on Github: https://github.com/josch1710/FeatherPad/releases/tag/v1.0.1-os2 (https://github.com/josch1710/FeatherPad/releases/tag/v1.0.1-os2).

Bye

Jochen
Title: FeatherPad for OS/2 1.2.0
Post by: Jochen Schäfer on March 17, 2022, 09:03:40 am
I have updated FeatherPad to 1.2.0. You found the new version here: https://github.com/josch1710/FeatherPad/releases/tag/v1.2.0-os2 (https://github.com/josch1710/FeatherPad/releases/tag/v1.2.0-os2).
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on September 24, 2022, 12:29:33 pm
I have build a newer package for FeatherPad version 1.3.2, https://github.com/josch1710/FeatherPad/releases/tag/v1.3.2-os2 (https://github.com/josch1710/FeatherPad/releases/tag/v1.3.2-os2).
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on May 10, 2023, 12:13:15 pm
I have build a package for FeatherPad version 1.4.0, https://github.com/josch1710/FeatherPad/releases/tag/v1.4.0-os2.
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on May 10, 2023, 02:17:44 pm
Thanks Jochen. I will updated it right now.

Regards
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on May 10, 2023, 11:56:06 pm
Hi

I'm just wondering if it can be possible to add the WPS Association attributes (see picture) in some way inside the .rpm package.

Regards
Title: Re: FeatherPad for OS/2
Post by: Jochen Schäfer on May 11, 2023, 11:00:45 am
I'm a little hazy about how to associate a program with type in WPS. Can you bring me up to speed?
If there is some tool or shell command to do the association, I guess, I can add that to the RPM.
Title: Re: FeatherPad for OS/2
Post by: Martin Iturbide on May 11, 2023, 03:59:43 pm
Hi Jochen

You got me there. I guess it may be the "ASSOCTYPE (http://www.edm2.com/index.php/Workplace_Shell_Object_Setup_Strings)" property when you create the WPS object (WPProgram?) on the desktop for the EXE file.

Sorry, I'm not an expert on this.

Regards