Replies: 4 comments
-
IIRC, the intended behavior is definitely to bring the window to the front. But it has proven difficult to get quite right. I'll definitely continue to investigate this, as the few issues regarding window placement, size, and focus when using nc-ng is pretty much the only outstanding issues that I consider regressions from nedit classic. |
Beta Was this translation helpful? Give feedback.
-
Hi, I came up with an AppleScript solution to my needs. I invoke nedit-ng with a script
and the AppleScript script
It seems to work well for my fairly narrow needs:
I'll give it more testing and see how it goes. I haven't considered things like detached tabs, running with more than one nedit-ng window open, opening files from the File menu, subtleties of nedit-ng in "client" vs. "server" mode. Edit: Of course you can raise a nedit-ng window by clicking on the icon in the Dock(but .. only if the Dock is visible). Also with Cmd-Tab to cycle through active apps. Also F9 to show all windows. My nedit habits are a bit locked in to the command line. Ciao, GE. |
Beta Was this translation helpful? Give feedback.
-
@grege2 this MAY be fixed on the current master. could you give it a try and let me know? |
Beta Was this translation helpful? Give feedback.
-
Hi, I've given it a brief testing and looks good. Any use of "nc-ng" from the command line raises an existing window and does the right thing, ie.
Also works ok with "detached tabs", the correct window is raised, containing the necessary tab. I don't work this way much, I'm not a good tester for that. I don't have a dual-screen with several edit windows open. When there are several windows open, from detaching tabs, there's a choice for where to open a new file. It seems to go in the most recently created window. Also some random closing of windows doesn't break things, nedit knows it doesn't have "tab n = file xxx" any more and opens and raises a new tab fine. Also it's much quicker than my AppleScript interlude. That was quick enough, maybe 1/4 of a second, a little variable, not a problem, but juuuust long enough for a few brain cells to wonder "is this thing going to work?", but native nc-ng is now immediate. So, looking great, thanks. I should use it in anger for a couple of days to shake out anything else. (And, why am I playing with my coding hobbies on Xmas Day ??? Oh well .. I do have a beer and a pile of Xmas lunch leftovers .. ) ( beer's gone, I'll get the Shiraz ..) |
Beta Was this translation helpful? Give feedback.
-
I can see some discussion back in the Issues, about whether nedit-ng or nc-ng pops to the front when opened, or what "detached tabs" should do, etc. But I thought I'd open a new discussion since the Mac build is changing a bit recently.
So, in nedit-X/Motif, any new file added to the nedit "open files" seemed to pop the whole window to the front. But with nedit-ng it just stays put, sometimes hidden behind other windows. No confirmation that anything happened at all in fact, a bit strange. This is when say using "nc-ng firstfile", and opening an additional file with "nc-ng newfile".
I've tried to manually attach a "bring window to the front" action purely in some kind of Mac magic, but no luck so far.
Would nedit-ng be able to raise itself to the front of the window stack, when a new tab is opened and populated?
(I have a nagging feeling that somewhere back in the Issues there's someone who specifically -doesn't- want that, you just never know what folks want).
Anyway, comments welcome.
Ciao, GE
Beta Was this translation helpful? Give feedback.
All reactions