Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

Load new file into first instance; font ugliness #5539

Closed tmsg-gh closed 1 month ago

tmsg-gh commented 1 month ago

I've got two problems.

  1. If I load another file into an already running instance by starting a second instance on the commandline, the file is duly loaded by the first instance into a new tab -- but this tab is not the active tab. It stands to reason (or so I think) that if I load file X I want to start editing file X!? As it is I have to click on the new tab first. Not a biggie but annoying enough that I've finally decided to bring this up.
  2. This is a real problem. I have a nice bitmap font for the editor tabs. This works very well for programming but sometimes the font doesn't contain all the characters in a text file I want to edit. If this happens the display turns very ugly indeed. See pics. Any idea how to stop that w/o switching to another font? Screenshot_2024-05-28_14-00-10 Screenshot_2024-05-28_14-00-56
Alexey-T commented 1 month ago
  1. I cannot reproduce it. I start 1st instance, open 3 tabs, activate 2nd tab. Then I start 2nd instance with filename param - it activates 1st instance and filename opened in ACTIVE tab. Tested in Linux gtk2. Give steps to reproduce, pls. What OS?
  2. I don't know what to do here, probably I cannot affect it.
Alexey-T commented 1 month ago
  1. If option "font_quality" (with "__linux" on Linux) don't help, I cannot do anything. Option "renderer_tweaks" (with suffix) don't help here.
tmsg-gh commented 1 month ago
  1. Debian 12/GTK2. My command line for starting Cudatext is basically: cudatext -nsl <FILE> If I leave off the "-nsl" it works as expected and I am not sure why I added that switch... it's a long time since I created these shortcuts. However, it should work with "-nsl" shouldn't it?

  2. Too bad. That's a real problem.

Alexey-T commented 1 month ago
  1. Confirmed now with -nsl switch. Thanks.
Alexey-T commented 1 month ago

1 is fixed, it seems. Get the beta version (binary only) to test, gtk2 version: http://uvviewsoft.com/c/

Alexey-T commented 1 month ago
  1. Does Qt5 version have this bug?
tmsg-gh commented 1 month ago
  1. Seems fixed. Thanks.
  2. I don't know whether Qt5 version has this buglet and I'm not gonna find out because there were a few font problems already with that version when I tried it a good while back (may be it's better now, IDK). I can live with the current state as I have a small Python script that toggles between fonts but of course it's not ideal :-/