Giter Site home page Giter Site logo

Comments (7)

eteran avatar eteran commented on May 29, 2024

Interesting. I've seen some apps have that feature before, but never have seen nedit have it ...I always figured it was a WM thing!

Either way, I like this feature when it's there, so I'll look into working it in there.

from nedit-ng.

jabuzz avatar jabuzz commented on May 29, 2024

It is a WM thing, but the WM only knows the size of the window in pixels, which while old school WM's would display while resizing windows is not terribly useful. An app like xterm, nedit etc. however where knowing the size in characters of the window is useful can send hints to the WM as to what is happening. In nedit this is handled by UpdateWMSizeHints in window.c that is I think called whenever the window is resized.

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

Oh, thanks for the hint! I'll look into that ASAP

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

OK, using the size hints is a bit of a rat's nest of complexity because the WM uses the size of the main window (not the text widget) and it's non-trivial to tell X11 via Qt what the "size increment" is, but to exclude the window frame size.

So, I've copied the solution that Konsole uses (which is to manually display the size on the widget for a second). You can enable this by adding the following to the config.ini file (~/.config/nedit-ng/config.ini):

nedit.showResizeNotification = true

Please re-open the issue if this proves to be insufficient.

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

(Also, as a bonus, with this solution, it will display the size of each pane if multiple panes are open!

from nedit-ng.

jabuzz avatar jabuzz commented on May 29, 2024

That works great, thanks. The only minor (and it is really rather minor) annoyance is that it displays the size at startup, which is unnecessary because it always 80x25.

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

Ok, I can look I to suppressing it when it's a new window. I do t think that'll be too hard.

from nedit-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.