Basil/2 0 Report post Posted September 24, 2004 I have changed my DN OSP to NDN, so I have got lots of questions: 0. Official FAQ/DOC location? (URL) 1. How to make a shadow for buttons like DN? I found "Shadow X/Y" params in Configuration but I don't know how to operate them. 2. How to launch a program in separate window like shift-Enter in FAR? (instead of using "start" in cmd-line) 3. How to include files without ext in color group? ("*.;" doesn't work) 4. How can I make ALL of my files sorted by ext, but with exe's and arc's first? 5. I need "AND" search in text files (for example, I need to find words "file" and "error" SIMULTANEOUSLY in ONE line). So can I do it with NDN's regular expressions? (I know, it has an "OR" find, but what about "AND"?) 6. When I changing disk, my NDN always shows the root of disk. How can I make NDN to show PREVIOUS (last accessed) directory on this disk? Param "Auto change directory" do nothing with with. Wbr, Basil Starostin. Share this post Link to post Share on other sites
AngelsHolocaust 0 Report post Posted September 26, 2004 hi! good decision 0. there is no up-to-date FAQ/DOC, i dont have time to write one 1. what shadows do you mean? do you mean the color? 2. all keys regarding ENTER are used already in NDN you can assign SHIFT+ENTER in OPTIONS.EXTENSION_FILE with this code: *( @start !.! ) 3.ouh, a little bug: write this *;*, apparently only the second mask is parsed correctly 4.im not an expert with FILE EXTENSIONSm but i will try to explain it correctly ALT-S: sort by extension; [X] sort by group index OPTIONS.FILE_MANAGER.HIGHLIGHT_GROUPS give the EXE/ARCHIVE groups the smallest index values (>0) 5. sorry, im no RegExp guru, maybe another user of the forum can help you? 6.i dont know why always the root directory is shown it should work correctly Stefan/AH Share this post Link to post Share on other sites
Garl 0 Report post Posted September 28, 2004 try use (word1).*(word2) to find in text "word2" after "word1" Share this post Link to post Share on other sites
Basil/2 0 Report post Posted September 28, 2004 > 1. what shadows do you mean? do you mean the color? Original DN had a shadowed buttons (they looked like they having a shadow). I guess, they were made BY COLOR (due to text-mode), so you are right - color. > 2. all keys regarding ENTER are used already in NDN > you can assign SHIFT+ENTER in OPTIONS.EXTENSION_FILE with this code: > *( @start !.! ) Good, it works; but it doesn't work with NDN command line. >6.i dont know why always the root directory is shown >it should work correctly Ok, I'll try to locate this bug more exactly. > 3, 4 Thanks a lot, it helps. Share this post Link to post Share on other sites
Basil/2 0 Report post Posted September 28, 2004 try use (word1).*(word2) to find in text "word2" after "word1" Thanks, it works (usually I know searching words order). Share this post Link to post Share on other sites
Garl 0 Report post Posted September 28, 2004 >1. How to make a shadow for buttons like DN? >I found "Shadow X/Y" params in Configuration but I don't know how to operate them. >>Original DN had a shadowed buttons (they looked like they having a shadow). I guess, they were made >>BY COLOR (due to text-mode), so you are right - color Options - Configuration -Interface... Shadow X: Shadow Y: Attrib.: attrib it is Color of Shadow :) Share this post Link to post Share on other sites
Basil/2 0 Report post Posted September 29, 2004 Yes, I have found it! The option "Show Dialog Markers" disables buttons shadowing! Turning this option off solved the problem - shadows appear. P.S. Will it be the first article in "NDN knowledge base"? ;) Share this post Link to post Share on other sites
Elfy 0 Report post Posted October 6, 2004 6.i dont know why always the root directory is shown it should work correctly Really??? It works? I think this feature was broken many years ago... And I can't use it. Are you sure? Share this post Link to post Share on other sites
AngelsHolocaust 0 Report post Posted October 6, 2004 Hi! no, sorry, it actually didn't work i used some code from DNOSP to support this in NT+ OS's and in the next versions of NDN Stefan/AH Share this post Link to post Share on other sites
Basil/2 0 Report post Posted November 18, 2004 Another REG-EXP question, 2Garl primarily: How can I find a string (line), where "XX" is present, and "YY" doesn't?! Share this post Link to post Share on other sites
Garl 0 Report post Posted November 18, 2004 Thinking... 35% ñîmðlåtåd... Share this post Link to post Share on other sites
Garl 0 Report post Posted November 18, 2004 "^[^yy]+xx[^yy]+$" (line) or "[^yy]+xx[^yy]+" (string) Have Fun Share this post Link to post Share on other sites
dandv 0 Report post Posted November 20, 2004 "^[^yy]+xx[^yy]+$" (line) or "[^yy]+xx[^yy]+" (string) Have Fun Hi Garl, How in the world did you come up with this regexp ?! Did you actually test it ?! To set things straight: 1. The regexp you suggested is pure crap, both in theory and practice. NDN uses PCRE, and according to the Perl 5 regular expression syntax (http://www.perldoc.com/perl5.8.0/pod/perlre.html), what you wrote is crap because: [^yy] is a negated character class, so one 'y' is enough: [^y] [^y]+ will prevent things like "yzxx" from matching, which, according to the asker, SHOULD match same goes for the second [^yy] oddity due to some weird bug in NDN, this regexp doesn't work; I reported the bug at http://forums.muxe.com/index.php?act=ST&f=24&t=329 2. The correct regexp is ((?!yy).)*xx((?!yy).)* which can successfully be tested agains the sample file I posted at http://forums.muxe.com/index.php?act=ST&f=24&t=329 3. Read perlre :-) 4. For some heavy-weight regexp usage, visit my Proxmail page (URL in the signature). Hope this helps Basil/2. Dan Dascalescu Share this post Link to post Share on other sites
Garl 0 Report post Posted November 20, 2004 sorry i am not Perl guru :( Share this post Link to post Share on other sites
Basil/2 0 Report post Posted November 22, 2004 ((?!yy).)*xx((?!yy).)* I used so: ((?!10035).)*pktfail((?!10035).)* to find strings like 00:00:39.533 ERROR! SOCK PKTFAIL 9987 006F1470,SS,195.133.81.72:9999,WSALE=10035. 00:00:39.533 ERROR! SOCK PKTFAIL 9987 006F1470,SS,195.133.81.72:9999,WSALE=10042. The result is, hm, untypical: NDN (both editor/viewer) searches ALL strings with "pktfail", but it selects (dedicates by color) up to "WSALE=" in "0035" strings and up to "WSALE=10042." otherwise. Share this post Link to post Share on other sites
AngelsHolocaust 0 Report post Posted November 22, 2004 Hi Basil! if you add $ to the end of the search pattern then it only selects lines without 10035 ((?!10035).)*pktfail((?!10035).)*$ Stefan / AH Share this post Link to post Share on other sites
Basil/2 0 Report post Posted November 23, 2004 if you add $ to the end of the search pattern then it only selects lines without 10035 Yeah, it works! Thanks a lot! Reg. exps are not so easy like program languages with their AND, OR and NOT, but are enough powerful. It was one of the reasons why I changed OSP to NDN - more comfortable searching in logs. Share this post Link to post Share on other sites