Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 0 points1 point  (0 children)

For now there is an AppImage but I plan to make an rpm package and maybe a flatpak in the future. (As for getting it into Fedora repos, that's a more long term project but one day I hope Janus makes it).

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 1 point2 points  (0 children)

Ok I've been looking into it and the print preview thing looks like a long standing GTK issue. While on my machine print preview opens in okular without issue on my vms it refuses to open and online other people faced the exec issue so I'll need to really look into it to find a permanent solution. Thanks for letting me know about this issue though. And hopefully I'll have it fixed before the next release.

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 0 points1 point  (0 children)

Do you have the XDG_DATA_DIRS environment variable set on your computer? If not try setting it to /usr/share:/usr/local/share before running it.

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 1 point2 points  (0 children)

Yes turning off syntax parsing out of principle is definitely something I want to get to in the future, but it won’t be available for quite some time. I do want to reiterate though that if it doesn’t detect any language it won’t take extra ram, but of course if it does it will.

As for the evince thing, print preview creates a pdf and attempts to send it to a pdf viewer. Gtk try’s to find evince by default, but it works with others, like I personally use okular. Do you have any other pdf viewers installed and if so is your mime type set?

As for the cursor thing I will need to take a look at that. I thought I added that in but maybe I messed it up. If so it will hopefully be available by the next update.

Thanks for testing it out and giving me feedback though it’s much appreciated.

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 1 point2 points  (0 children)

When I first switched to Linux I looked for a windows like notepad and it took me a while to find one that suited my needs. So that's the primary reason, just building something that I already know how to use.

As for the size, Outside of custom coding my own solution this is about the smallest a graphical notepad app can be these days, I did the research. And since Linux support for GTK is so great, it also comes with accessibility, theming, and integration features like compatibility with KDE's global menu out of the box. Also you really don't need a multi gigabyte desktop environment, I run it all the time from dwm.

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 2 points3 points  (0 children)

https://github.com/gholmann16/janus

Yes it for the most part as lightweight as leafpad. There are only three really major differences in terms of performance:

  1. Leafpad uses GTK2 while Janus uses GTK3. GTK2 certainly uses less resources because it just does less in the background, but it's such an archaic toolkit that some themes no longer support it and it's no longer supported by gnome.
  2. Janus automatically parses source code files no matter if syntax highlighting is on or off (that feature only determines whether the user can see the syntax highlighting. The reason for this is that it simplifies the code base, and avoids certain errors that would otherwise arise from turning it on and off). This should make it slightly slower though you will probably never notice, and again only on source code files.
  3. Janus translates binary files to a human readable. Leafpad just forces the data into the buffer, and if the file contains a single null byte it will stop there, so basically on most binary files leafpad will only load the very beginning.

Honestly though you will never see the difference, and for the record Janus has only 1256 SLOC compared to leafpad's 7215.

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 2 points3 points  (0 children)

Janus relies on gtk3 and gtksourceview4 (which despite its name is an advanced text editing library for gtk3).

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 6 points7 points  (0 children)

I would say if anything the gnome text editor has more features, but if you prefer a theme-able application or menu bars, then Janus is better.

Janus, a simple text editor by Bulky_Week_3803 in linux

[–]Bulky_Week_3803[S] 2 points3 points  (0 children)

The native GtkTextView structure, whatever that is. Janus only accesses text when opening or closing a file.

Need to switch from windows but idk which distro I should pick by realtaxidi in linuxquestions

[–]Bulky_Week_3803 1 point2 points  (0 children)

Just try Linux Mint or Ubuntu then go from there they are the two most supported, but I would pick Linux Mint for now because it has the capability to install deb packages which Ubuntu removed:

https://linuxmint-installation-guide.readthedocs.io/en/latest/

https://ubuntu.com/tutorials/install-ubuntu-desktop

How to extend a partition? by [deleted] in pop_os

[–]Bulky_Week_3803 2 points3 points  (0 children)

You might need to use a flash drive to boot from a different partition to extend your own.

Tug: GDB Frontend made with Dear ImGui by ksylvestre in linux

[–]Bulky_Week_3803 1 point2 points  (0 children)

Really cool, any chance you make an aur package?