Lurker News

Comments (256) 54 threads

Earlier comments
taigi100#
I have to mention, I do love how this looks! I'd be looking in using it as my daily driver for quick / short text edits and maybe small projects!

Since I really like the looks of it, in case you do need help with keeping it maintained, I would love to help! Feel free to contact me at contact@taigi100.com
Good luck and I hope it all goes well with this text editor!

mosselman3 replies#
Any instructions on how to run this on macos?
tingletech4 replies#
on catalina os x; I just went

  git clone https://github.com/rxi/lite.git
  cd lite
  ./build.sh
  ./lite
and an app did start up, but the text gets cut off in the editor window, and I can't quit the app from the menu
njsubedi1 reply#
Probably adding it to the dock works?
tingletech1 reply#
it creates a 348K "Mach-O 64-bit executable x86_64", but I'm not sure how I would add that to the dock. I tried to drag it there with finder, but it would not take it.

Continue this thread — 1 reply

rawland1 reply#
The compiler might complain that it needs SDL.

Fixed this with:

  sudo apt install libsdl2-dev
on Ubuntu.

Else it works as tingletech described also using Mint/Ubuntu.

Continue this thread — 1 reply

tolqen1 reply#
it seems to compile/run fine for me on catalina but everything is absolutely huge (hidpi compatibility issues?)
mmm_grayons1 reply#
Same here; font is huge on catalina. It seems like this is the culprit:

  static double get_scale(void) {
          float dpi;
        SDL_GetDisplayDPI(0, NULL, &dpi, NULL);
  #if _WIN32
          return dpi / 96.0;
  #elif __APPLE__
          return dpi / 72.0;
  #else
          return 1.0;
  #endif
  }
I found changing it to dpi / 192.0 to be fairly comfortable. It wouldn't be too hard to add a scale option and change to `return (dpi * scale) / 192.0`. The "right way" is probably to do that but also get scale by checking the screen resolution; I'd go by height due to the increasing adoption of ultra-wide monitors:

  static double get_scale(void) {
          SDL_DisplayMode dm;
          SDL_GetDesktopDisplayMode(0, &dm);
          return dm.h * scale / 786.0;
  }
Edit: works on my win10 and arch boxes.

Continue this thread — 1 reply

haddr#
same here, works on mac quite nice :) and it's super fast.

also fonts are a bit big on retina screen.

lowwave#
Nice project. Would be nice to change the key binding on mac to use the Command key instead of control. It is one of those habit and mental shift when using mac vs linux/windows.

Is there a config file where this can be changed?

ZeroClickOk#
I just think about use VSCode as text editor, but I cannot change from Notepad++ yet... and VSCode as code editor only.

Load more comments