Send Notepad-plus-plus mailing list submissions to
        notepad-plus-plus@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Notepad-plus-plus digest..."


Today's Topics:

   1. [notepad-plus - Help] delete remove duplicate     line word sort
      length (SourceForge.net)
   2. [notepad-plus - Help] RE: Help deletin dupe       words/lines and
      sorting (SourceForge.net)
   3. [notepad-plus - Open Discussion] RE: What is      langs.model.xml?
      (SourceForge.net)
   4. [notepad-plus - Open Discussion] RE: Notepad++    v5 RC
      (SourceForge.net)
   5. [notepad-plus - Open Discussion] RE: smart        highlighting
      (SourceForge.net)
   6. [notepad-plus - Open Discussion] RE: Feature      Request: Read
      Only flag (SourceForge.net)
   7. [notepad-plus - Help] Sort words by length and    alphabetical
      order (SourceForge.net)
   8. [notepad-plus - Open Discussion] RE: Feature      Request: Read
      Only flag (SourceForge.net)
   9. [notepad-plus - Help] Sort words by length and    alphabetical
      order (SourceForge.net)
  10. [notepad-plus - Help] RE: Sort words by length    and
      alphabetical order (SourceForge.net)
  11. [notepad-plus - Help] RE: Help deletin dupe       words/lines and
      sorting (SourceForge.net)


----------------------------------------------------------------------

Message: 1
Date: Fri, 04 Jul 2008 14:37:25 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] delete remove
        duplicate       line word sort length
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5073738
By: fool4uanyway

> As for sorting the words beggining with accentuated chars I thinks it's still
easier
> to do it manually (they're still just a few).

If there are only a few accents, I suppose you could also manually "remove"
them, then do a correct sorting, and later manually re-place the accents. (My
suggestion above would lead to a pseudo-order, just making sure an accented
a would be sorted prior to a b, but would still keep an order between 
differently
accented a's.)

The number of lines doesn't matter.

I meant to say that in the number example, the numbers were only short, but
for numbers as well as for words, it really doesn't matter how long they really
are.
You just have to make sure that you prefix all (other) words with a number of
spaces equalling the length of the longest line (minus the length of the 
shortest
line).

Then you may be able (if the longest word isn't tremendously long) to remove
all _extra_ spaces by a regular expression that will only keep the last #X 
characters
of the line. All words will be equally long then, with "short" words prefixed
by space characters, making sure they will appear on top of the sorted list.
After sorting, you can simply remove all prefix space characters.


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 2
Date: Fri, 04 Jul 2008 15:57:59 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Help deletin
        dupe    words/lines and sorting
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5073869
By: frmariam

Yeah I kind of got that part about prefixing the words with blank spaces (or
anything but letters)according to the longest word.

My problem is how do I prefix the words (I mean every single one at once...
with simple operations) with the correct neumber of spaces... All I'd have to
do next is replacing the " " by nothing...

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 3
Date: Fri, 04 Jul 2008 16:25:29 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: What
        is      langs.model.xml?
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5073913
By: nobody

Not exactly, langs the the file that specifies the syntax highlighters 
properties.
Remove it and it will horribly fail :).
You have to keep atleast langs.xml for proper functioning.

BTW its nativeLang.xml (optional) for translation

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 4
Date: Fri, 04 Jul 2008 17:20:30 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++       v5 RC
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074005
By: beholder4096

Here is some more anomalous behavior:
1. Start NPP with no file opened (the default new1 will be only) 
2. hit tab several times
3. hit enter
4. hit backspace several times to get back to the beginning of the line.
5. hit enter. 

See? I expected the caret to move right to the beginning of the next line, not
create some more "tabs" and jump at their end in the next line.
But perhaps this is an intentional behavior, however for example Win32Pad has
similar tab-handling without this.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 5
Date: Fri, 04 Jul 2008 18:29:54 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        smart   highlighting
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074109
By: nobody

Yes!! I really support this request. I'm new in Notepad++ and like the function,
however I always work with 10-30 MB log files, that is hundreds of thousand
lines. So the feature is really slow. If we can just enable the highlight only
for the visible lines and keep updating as we are navigating across the files,
I believe it will be very fast.

Cheers //Edo

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 6
Date: Fri, 04 Jul 2008 18:03:54 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Feature Request: Read Only flag
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074070
By: nobody

OK, I think I word my request not clear enough :( and i do misunderstand the
function of Clear RO Flag. What I want is to be able to assign a shortcut to
check & uncheck file's read only buffer. Currently it doesn't seem possible
as I can't find the command in the shortcut mapper.

I am one of the person that think the mouse is something that obstruct the 
efficiency
and using it simply slow me down. I rather to use keyboard and do the shortcut
keys combination than perform mouse operation.

Cheers //Edo

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 7
Date: Fri, 04 Jul 2008 19:27:11 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] Sort words by
        length and      alphabetical order
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074184
By: fool4uanyway

OK, I'll try to rewrite the complete instruction to suit your purpose.

1. Prefix words with an excessive amount of space characters (0's would also
do).
2. Remove unwanted space characters using the regex mode of the replace dialog.
3. Sort the words.
4. Remove remaining prefix space characters.
5. Voila, done, list sorted by length and alphabetically!


1. Prefix words with an excessive amount of space characters (0's would also
do).

Each line contains a single word, right? There are several ways to do insert
text at the beginning of each line. Let's use the block selection mode to select
a 0-character width column at the start of each line:

Move the to the beginning or end of the file: Ctrl+Home or Ctrl+End.
Hold down the Shift key while pressing the other combination: Ctrl+End
or Ctrl+Home.
While holding the Shift key, move the cursor to the right twice to make sure
you'll see the next effect.
While still holding down the Shift key, also press the Alt key and move the
cursor to the left once. You'll see the line selection change into a columnar
block with a width of 1 column.
While holding down Shift and Alt key, move the cursor to the left once more.
You'll see no selection, which "indicates" a columnar block of width 0.

Press ALT+C to open the Column Editor dialog.
Select "Text to insert".
Enter a number of space characters matching the longest line/word's length.
Press OK.

All words will now be prefixed by the necessary number of space characters,
but most lines will be longer now than the previously longest line. We will
remove this part of the prefix in the next step.


2. Remove unwanted space characters using the regex mode of the replace dialog.

This uses regular expression mode in either (CTRL+H or CTRL+R) Find/Replace
dialog.
Check the regular expression checkbox and uncheck any other undesired option
(Selection, wrap). Move the cursor to the top of the file: Ctrl+Home.

In the Find field, enter:
^_*(.....)$

_ represent a spache character: type a space character in the dialog
Use as many dots (.) as the length of the longest word. (More doesn't hurt,
but isn't necessary.)

In the Replace field, enter:
\1

(Find the first and) replace all occurrences.

This will search and find all occurrences, but telling the replace engine to
keep only the last "\d" number of digits. The prefix of the remaining number
of space characters won't be placed back, so in effect will be removed.

_* means: any consecutive string of space characters with a minimum of zero
(none)


3. Sort the words.

Select all lines/text: Ctrl+A.

Menu_____ : TextFX
Submenu__ : TextFX Tools
Option___ : +Sort ascending (make sure it is checked, you may have to "check"
this twice!)
Option___ : Sort lines case insensitive (at column)


4. Remove remaining prefix space characters.

Now the list is sorted, but there are still prefix space characters.
These can be easily removed by applying the following regex in the Find field
and the replace string in the Replace field.

Find field:
^_+(.)

Replace field:
\1

Reminder: _ represents a space character, type a real space character in the
dialog.

This will search for any string of space characters from the beginning of a
line, including the first non-space character, and re-place only that non-space
character.

_+ is used, because it would make no sense to search for zero space characters
(no prefix te remove).
+ means: a string of at least one consecutive space characters


5. Voila, done, list sorted by length and alphabetically!

You're welcome. I'll gratefully accept any reward.


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 8
Date: Fri, 04 Jul 2008 19:31:31 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Feature Request: Read Only flag
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074192
By: nobody

Im not sure why these commands didnt make it into the shortcutmapper, they 
should
be there.
I'll take a look into it.

-Harry

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 9
Date: Fri, 04 Jul 2008 19:52:03 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] Sort words by
        length and      alphabetical order
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074219
By: fool4uanyway

Here's a somewhat simpler solution.

It uses the Simple Script Plug-In. You may have to download it.

The really simple script is as follows:

PadLeft( " ", 55 )
Sort()
TrimLeft(" ")

Unfortunately, when I add a space character between the ( and " on the last
line, the script won't validate correctly. This prevents me from writing nice
looking code, at least in my view.

This simple script also does the trick. It really is simple.

But the explanation above also gives you an idea about what Notepad++ is capable
of, so what YOU are capable of.


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 10
Date: Fri, 04 Jul 2008 19:55:03 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Sort words by
        length  and alphabetical order
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074222
By: fool4uanyway

Of course, the number 55 represents the length of the longest word/line. Enter
the correct number here.

The preceding messages tells you I re-wrote the other instructions:

> This will search and find all occurrences, but telling the replace engine
to keep
> only the last "\d" number of digits.

Of course, this should have been: only the last number of "." characters.


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 11
Date: Fri, 04 Jul 2008 20:00:00 +0000
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Help deletin
        dupe    words/lines and sorting
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5074235
By: frmariam

Man you are awesome! Thanks a whole bunch (I can see you went through a lot
of work to do it).

This has got to be one of the kindest gestures I ever received from any user
in any forum I've ever been.
You surely made it easy for me (compensating for the noobness or language
barrier).


Once again I really apreciate this


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

------------------------------

_______________________________________________
Notepad-plus-plus mailing list
Notepad-plus-plus@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus


End of Notepad-plus-plus Digest, Vol 26, Issue 10
*************************************************

Reply via email to