Discussion:
[notepad-plus - Open Discussion] RE: Unprofessional
(too old to reply)
SourceForge.net
2005-12-17 08:52:23 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3480679
By: nobody

Unfortunately, I do have to agree with the author of the thread. Because of
security reasons now I use FAR Manager both at work and at home, and when I
started using FAR, I also stopped using Npp, as I just couldn't figure out a
way to get it to open both a single file or a file list as the external editor
(Context menu si strictly forbidden and also non-existant. File association
is also a bad idea, as I have to load all sorts of different file types). So
now I'm using FAR's internal editor, which is not as feature-rich, but still
it has syntax highlighting, and can be extended in features through FAR's plugin
system.

______________________________________________________________________
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
SourceForge.net
2005-12-17 09:59:07 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3480717
By: theratpm

I'm using FAR for ages. And it desn't stop me from using Notepad++ too.
FAR has a nice internal editor, and i use it sometimes - when i need to make
a quick change, or i need to see actual bytes of a file. But for most of the
coding - i use Notepad++.

Now, i can not tell you how to open multiple files from FAR using external editor
- i don't think FAR supports that (but i might be wrong). However, it is possible
to open single file from straight into Notepad++. Heres the settings i use:
In "Options"->"Viewer settings", i have set External viewer to open on Alt-F3,
and the command line looks like this: "C:\Program Files\Notepad++\notepad++.exe"
"!\!.!"
Now, anytime i need to open a file in Notepad++, i hit Alt-F3...

PS: if you found something in FAR documentation, that talks about file lists,
and how to pass them to external applications - could you please tell me on
what page you found it. I think i could improve my experience with FAR even
more! :)

______________________________________________________________________
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
SourceForge.net
2005-12-17 22:51:05 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3481311
By: nobody

!& is for "list of selected files" (found by "Special symbols" help page)
Don't get me wrong, I still use NPP, but just not as much as before, and at
this rate I'll probably actually stop using it, someday soon, as this is a major
flaw in the application (what good is a pleora of features, if you can't load
a file on which to use them?) If I can find the time, maybe I'll also try to
find the mood to do some modifications myself to the source and post them.

______________________________________________________________________
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
SourceForge.net
2005-12-18 01:34:20 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3481433
By: theratpm

try the command "echo !&" in the "External editor/viewer" field.
You will see, that it doesn't work as expected - !& expands to the filename
(no path, no extension) of the file that is currently under the cursor (selection
is ignored).

However, with a little knowledge of windows batch commands, i wrote this command
line:
FOR /F "tokens=*" %i IN (!@!) DO start "C:\Program Files\Notepad++\notepad++.exe"
"!\%i"

I think it should be possible to work on it a little, so that it ignores the
selected directories. But in overall - it works as expected! So, dude - Stop
bitching 'bout Notepad++ and start using it! :)

Note to others: It is always useful to do some "if /?", "for /?", "start /?",
"call /?", "set /?" etc., when you need some batch script. :)

Good luck!

______________________________________________________________________
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
SourceForge.net
2005-12-18 03:19:35 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3481489
By: theratpm

Ok, here is the updated command line:
@for /F "tokens=*" %i in (!@!) do @if not exist !\%i\ start "dummy" "C:\\Program
Files\\Notepad++\\notepad++.exe" "!\%i"

Note: it ignores any selected directories. It doesn't require you to select
anything - it will open the file under the cursor. It... It is almost perfect!
:)

IMPORTANT: Everytime you execute this command, FAR will create temporary file,
with the list of selected files in it. So, i would recomend to execute the following
command periodically (on system shutdown, or startup etc.):
del /Q "%TEMP%\FTMP*"

Note2: At least on my system - all temp files that FAR creates are named like
this:
%TEMP%\FTMP####.###

So, as i was saying - stop bitchin' m'kay?! :)
Just use the command to open the list of files.

PS: it *might* be possible to extend that command even deeper, and force it
to open all files in the selected directories, but i already spent too much
time perfecting the last command, it's late, and i'm too sleepy to do anything...
Good night! Sweet dreams!

______________________________________________________________________
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
SourceForge.net
2005-12-19 10:01:26 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3482899
By: nobody

So that's how things get done around here? Someone finds a bug, then someone
else tries to find a workaround, instead of trying to fix it. Thank you very
much for giving me a reason to completely stop using NPP. Good night to you too!

______________________________________________________________________
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
SourceForge.net
2005-12-19 12:23:03 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3483061
By: theratpm

Excuse me?!
I think i made it pretty clear - it was a bug in FAR manager, not Notepad++!
FAR was failing, to pass a list of selected files to the "external editor/viewer"
on a command line. However, it's ability to make a temporary file with that
list works perfectly. So i posted a workaround, how to make FAR Manager to open
every single file from that temporary list file.
Are you saying i was supposed to fix the bug in FAR?! FAR is shareware, closed
source software. What else could i do?!

______________________________________________________________________
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
SourceForge.net
2005-12-20 00:49:26 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3484817
By: donho

So just don't use it.
Nobody forces you to use it.

Don


______________________________________________________________________
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
SourceForge.net
2005-12-20 15:14:25 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3485707
By: nobody

DID it ever occur to you that your computer settings are jacked up? Just from
reading it seems as though most people have it working just fine. For me I have
never seen a problem with NP++ and never had this error you are stating. Great
job Don HO. Thanks for taking the time and effort to create a great free
product!

[quote]I *DID* use the .reg, and I did associate Notepad++ with my files. But...
It works to load the first file, but every file after that says something different,
depending on which document tab is currently selected in N++...

On some tabs it might say: [/quote]

______________________________________________________________________
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

Continue reading on narkive:
Loading...