[ nedit-Bugs-1899031 ] 'nc -do "new()"' opens rarly on the current
desktop
SourceForge.net
noreply at sourceforge.net
Fri Feb 22 06:26:00 CET 2008
Bugs item #1899031, was opened at 2008-02-21 19:56
Message generated for change (Comment added) made by ajbj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1899031&group_id=11005
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Program
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bert Wesarg (lebert)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'nc -do "new()"' opens rarly on the current desktop
Initial Comment:
two scenarios:
1st:
* start nedit on desktop 1
=> new Untitled
* switch to desktop 2
* execute 'nc -do "new()"'
=> new Untitled_1 in window from desktop 1
2nd:
* start nedit on desktop 1
=> new Untitled
* switch to desktop 2
* execute 'nc'
=> new Untitled_1 in window from desktop 2
* switch to desktop 1
* modify Untitled
* execute 'nc'
=> new Untitled_2 in window from desktop 1
* switch to desktop 2
* execute 'nc -do "new()"'
=> new Untitled_3 in window from desktop 1
Note: it doesn't matter, if you focus the window on the current window (if any), the -do macro is always executed from the last created document (I assume)
----------------------------------------------------------------------
Comment By: Tony Balinski (ajbj)
Date: 2008-02-22 06:26
Message:
Logged In: YES
user_id=618141
Originator: NO
I wouldn't add a new option to the command line. The principle of least
surprise would open a new window on the current workspace: that is what
should occur IMO. You type something in, you expect to see a result
directly. If the command concerns a window in another workspace (you're not
calling "new()"), that window should probably be brought into the current
workspace too (especially with a raise_window() macro call) - though I can
see more likelihood of this not being what you want...
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2008-02-21 20:00
Message:
Logged In: YES
user_id=122956
Originator: YES
here is one idea to solve this:
add a -desktop option to nedit/nc, and try to do all things on this
desktop with the commands from the command line. nc can scan the command
line and cann add a -desktop option with the current desktop if the option
is missing
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1899031&group_id=11005
More information about the Develop
mailing list