Comments (7)
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.
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.
Oh, thanks for the hint! I'll look into that ASAP
from nedit-ng.
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.
(Also, as a bonus, with this solution, it will display the size of each pane if multiple panes are open!
from nedit-ng.
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.
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)
- no output from t_print() macro function in cmd.exe or powershell HOT 4
- crash when closing tab while macro is running HOT 5
- character endoding HOT 2
- Compilation with gcc-11 problem HOT 3
- crash with db4b7c4b HOT 2
- package for Windows HOT 31
- Block drag and drop overwrite/lost character HOT 1
- crash with 2020.1-204-gfd49503 HOT 7
- Windows Split Pane does not retain position HOT 6
- Non-UI preferences should not be saved, breaking nc autostart HOT 5
- Build issue with current head HOT 14
- carriage return when pasting from terminal HOT 8
- Font family alias warnings on macOS HOT 1
- long -svrname argument HOT 3
- crash with latest commit HOT 17
- Using `DISPLAY` when calculating the local socket to use can cause issues HOT 1
- QT version 5.5 or 5.15? HOT 21
- [enhancement] Save and/or reload all files options in Shell menu item HOT 1
- Cursor blink phase does not reset when user enters character
- crash with 857d42e HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nedit-ng.