Discussion:
[notepad-plus - Open Discussion] File extension eg. .txt
(too old to reply)
SourceForge.net
2007-05-21 10:06:28 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4322105
By: nobody

Hi,

i install and test notepad++ today for my first time (V 4.1.2). It looks and
feel very nice. Good job!

A simple problem:

I want to save a simple .txt file. I opend the "save as..." menu and choose
a filename (eg. "test"). Then i change below in the menu the file extension
to .txt an save it. But everytime i do so, there is no extension on the saved
file. The name of the file is only "test" without an extension...

What is my mistake?

Thanks for an answer...

______________________________________________________________________
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
2007-05-22 00:48:35 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4323531
By: nobody

Do you see any other .txt files? Is Windows set to hide known file extensions?

______________________________________________________________________
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
2007-05-22 08:06:50 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4323856
By: nobody

Hi,

no, this is not the problem. I check this first. And if i save a text-filfe
with the windows notepad, everything is ok. It must be a "problem" with notepad++.
I install an test it in a vmware box...but i hope this is not the point...also,
i test it with other extensions (e.g. .xml) and there is the same problem...

______________________________________________________________________
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
2007-05-23 05:29:02 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4325981
By: coder775

The "Save as type:" field just filters the file list to display files of the
indicated type. For now, it doesn't check to see if a valid file type has been
appended; it just writes the file with the explicit name given, without
modification.

Maybe in a later version. --Joel

______________________________________________________________________
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
2007-05-23 08:32:24 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4326173
By: nobody

Hi,

OK...thank's for this information. So, this is my first wish for a future function
of n++.

;-)))

______________________________________________________________________
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
2007-06-07 17:24:59 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4350457
By: nobody

Joel,

The functionality of "Save as Type:" isn't to 'validate the file' extension,
nor is it to be used simply as a filter to see what else is in the directory.
If a user accidently types an existing file name, the system will ask re: replace.
The actual function that more users use "Save as Type:" for is to append an
extension.

Since every single other application (not just text editors) operates correctly
by adding the selected extensin, users have (like me) are forced to change habits
for this one app (not easy to do when 100% of all other applications don't require
this) or continuously do a "Save as..." and remember to redo it.

My point being that while it isn't much 'harder' to type .php or .js onto the
end of a filename while saving it than to go to the save as type drop-down,
the habituation of users to other apps makes this big time annoying.

But alas, since it took some major digging to even find this thread, I guess
i am in the minority.

Dave



______________________________________________________________________
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
2007-06-20 10:00:52 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4371028
By: nobody

Yes, at the moment you have to type in the extension you want. It would be useful
if it had the normal (or expected) functionality and saved the file as the type
you select in the "Save as Type" list.

Q: The number of extensions that would have to be offered would create a huge
list, how can this problem be solved?

A: You could limit the size of the list by only showing whats relevant to the
currently selected language. E.g. If you were editing a document with the language
set to HTML then when you go to save it, it shows HTML (.html) and Any File
(.*). This stops the list of available extensions from being two pages long
:). For user-defined languages, it could use the extension that has been associated
with it and any type.


On another note, why does N++ always seem to start at it's directory when you
try to save something. Can it start wherever you saved the last file?

______________________________________________________________________
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
2007-06-24 18:33:45 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4378478
By: nobody

Why not put a default file type (like .txt) in preferences and have it be put
in as the Save File as box? Or let people choose their 10 most used file extensions
(in preferences) and then pick one. I can't believe that many people would use
more than that many file types. Or, you could probably go to 20. This is off
the top of my head and is a first impression. I'll think about it more
and repost.

Bob

______________________________________________________________________
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
2007-09-13 16:27:31 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4516911
By: nobody

If when saving, you type the filename with the extension in quotes, it will
work

Example: "filename.txt"

I look forward to this being fixed in future releases.

Aside from this, N++ is awesome.

______________________________________________________________________
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
2007-09-13 23:28:00 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4517634
By: nobody

I usually copy and paste the filename. Then, I have to type in .txt. Who wants
to type in two more characters ("") and move the cursor around? If you can think
of a way without more key strokes, let me know. They should fix the problem.

Bob

______________________________________________________________________
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
2007-09-27 12:45:31 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4539928
By: nobody

I agree completely with this. N++ is a very very nice editor that I use daily
and this is my major annoyance with it.

With all respect, it doesn't sound very complicated to fix. All that it has
to do is to check check after "Save As..." if there is a file extension entered
after the file name, and if not, add the default extension for the document
type.

Thanks for an otherwise brilliant editor.


______________________________________________________________________
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
2007-09-29 11:35:23 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4543692
By: nobody

Hi,

i'm a regular user of N++, currently i'm using 3.7. i'm also wondering if i
can set my default extension when saving. (save as). thanks!

______________________________________________________________________
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
2007-09-29 16:10:20 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4543880
By: nobody

Hi,

I'm a regular user of NPP, currently using 4.1.2. This would be a time saving
addition to NPP. I am wondering why it can't be added to NPP?

Thanks.

______________________________________________________________________
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
2007-10-01 06:14:07 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4545324
By: nobody

Let's look at this from a programmer's perspective.
1. You have a text box for the file name.
2. You have a drop down list box for the extension.
3. You enter the file name in the text box.
4. You choose the extension from the the drop down list box.
5. You click Save.
6. The program concatenates (joins together) the file name and the extension
into the final file name.
7. The program SAVES the file with the new (concatenated) file name to disk.
8. It's magic.
This seems like pretty simple stuff. Why can't this be done?

______________________________________________________________________
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
2007-10-01 13:05:52 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4545807
By: harrybharry

Because GetSaveFileName (Win32 api) doesnt really specify any way to do this.
According to the specifications, you can give a default extension (that gets
appended when the user gives no extension) and a list of extensions the user
can choose from, but nothing to retrieve what extension the user has chosen.
This means that either the default gets appended (no solution here, you dont
want to append .txt to a file that has to be .cpp) or nothing because the user
doesnt type anything and selects something from the list.

But, I jsut googled around on the matter and it seems that if you were to supply
a dummy extension, GetSaveFileName actually DOES append the selected extension
of no extension is given (if an extension is given, nothing is done), so the
solution (here it comes Don) would probably be

<snippet FileDialog.cpp>

char * FileDialog::doSaveDlg()
{
_ofn.lpstrDefExt = ""; // Dummy default here
...
fn = ::GetSaveFileName(&_ofn)?_fileName:NULL;
...
_ofn.lpstrDefExt = NULL; // No default extension
}

</snippet FileDialog.cpp>

I tried and it seems to work.

______________________________________________________________________
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
2007-10-03 19:11:36 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4550691
By: nobody

i to would like to be able to choose a Save as type

______________________________________________________________________
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
2007-10-04 19:34:19 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4552568
By: nobody

I would like to see this implimented as well. You have no idea how many times
I would love to be able to SET the default extension and filetype in options,
but alas, I cant. I even select NORMAL TEXT FILE from the drop down list and
no .txt is added. I pray that the developer adds this to Notepad++. It is much
needed.

______________________________________________________________________
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
2007-10-07 12:34:35 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4556341
By: nobody

I agree with you harrybharry, the explanation from one of the programmers, that
the change would take a lot of work and code is simply rubbish! How you demonstrated
here is it in no way complicated and one of the basic functions of every text
editor. Thank for god it's open source, so we can hope that somebody will come
on one day and completes the code at this point.

______________________________________________________________________
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
2007-10-07 18:37:44 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4556638
By: nobody

I wish to have Save as add default extension 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
2007-10-15 18:29:38 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4569738
By: nobody

I want to thank whomever implemented the Save as functionality to Npp. It is
a huge step forward to a great editor.

BOB

______________________________________________________________________
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
2007-10-17 07:15:06 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4573309
By: nobody

I also want to thank whomever did this long awaited work, but it seems that
Don isn't content with the stuff and somebody else hast to finish it.

______________________________________________________________________
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
2007-10-17 12:08:47 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4573749
By: donho
Post by SourceForge.net
I also want to thank whomever did this long awaited work,
but it seems that Don isn't content with the stuff and somebody else hast
to finish it.

It seems that you don't get it at all :
"whomever" is me.

And yes, I don't like the new behaviour, it gonna be changed in the next
version.

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
2007-10-18 06:39:30 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4575361
By: nobody
Post by SourceForge.net
"whomever" is me.
LOL

______________________________________________________________________
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
2007-10-18 07:42:12 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4575448
By: codenexus

Hehehe... I love it.

I came across this quote and I have been looking for a place to use it... :)




It's not the critic who counts, not the man who points
out how the strong man stumbled, or when the doer of
deeds could have done better. The credit belongs to the
man who is actually in the arena; whose face is marred
by dust and sweat and blood; who strives valiantly; who
errs and comes short again and again; who knows the
great enthusiasms, the great devotions and spends
himself in a worth cause; who at the best, knows in the
end the triumph of high achievement; and who at the
worst if he fails, at least fails while daring greatly,
so that his place shall never be with those cold and
timid souls who know neither victory or defeat.

Theodore Roosevelt


Keep coding Don. :-) Thanks for being willing to constantly try new things
with Notepad++.

______________________________________________________________________
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
2007-10-18 08:44:28 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4575516
By: nobody
Thanks for being willing to constantly try new things with Notepad++.
As long as it's also for other users interesting!!! Otherwise it would result
in half-hearted coding for a relatively small group.


______________________________________________________________________
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
2007-10-18 11:35:12 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4575733
By: nobody

First off, thanks to the devs for this wonderful program.

My comment is about this newly added feature (auto-add extension) in 4.4. It
is very annoying cause it actually makes things more complicated. I think it's
so much easier to just type the extension than to browse throught a (long!)
drop-down list. Also, if I prefer to type the extension, I want the save-as
dialog to override the default selected type of txt, but this is not the behaviour.
As I result I went back to 4.3.

I hope the extension override will be included in the next release.

______________________________________________________________________
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
2007-10-18 13:23:04 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4575922
By: codenexus

Mmmm I think the problem is wording change requests could be done better. I
think there are a few times we (as the non-devs) come across as very demanding
instead of going.

"Hmm ok that was an interesting try but perhaps we should do it this way?"

We could be far more constructive in other words. Oh yes and help out once
and a while. :)

For the number two most active project on SourceForge last week there seems
to be quite a bit of moaning in the forums and not much other help otherwise.

PS I'm not a dev or speak for them in any way. It is only imho. :)



______________________________________________________________________
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
2007-10-18 15:10:32 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4576110
By: nobody

Is it annoying in v4.4, when trying to save a file named as web.config for asp.net,
np++ always saves it as web.txt even All files (*.*)is selected in the dropdown?

______________________________________________________________________
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
2007-10-20 12:08:39 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4579525
By: donho
Post by SourceForge.net
I came across this quote and I have been looking for a place to use it... :)
Thank you for your quotation, CodeNexus.
I can tell you that it really spurs me on.

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
2007-10-23 04:56:00 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4583468
By: nobody

I am also having trouble with 4.4

I have been using this editor for a long while now (couldn't give a date of
version, you'll just have to take my word ;)

The new auto-extension feature can be very annoying, At the moment i'm trying
to write something in C++, using extensions .cpp, .h, .template, and for makefiles,
no extension at all. Maybe an easy fix is to have the option to turn the
auto-extension mode off, It's never bothered me having to type in an extension
when i save.

Apart from that, a great editor, hope to keep using it for a long time to come.

______________________________________________________________________
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
2007-10-23 16:01:51 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4584315
By: nobody

Like wehn we save the file, could we please get the option
like in the normal notepad, to save it as itf-8 etc?
just an idea. Now pelase fix it! xD
Cheers /Medda


______________________________________________________________________
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
2007-10-24 14:38:16 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4586119
By: nobody

I dont understand is there is a work around or not. Using v 4.4. Whenever I
save a file it takes the first extension of the file type chosen in the drop
down, no matter what I type. For example, if I choose HTML, it will only save
as htm, even if I type file.html in the text box. In my case I use different
extension and would rather just type the extension in. Is there a way to have
it just take the full filename I tyoe and ignore the drop down?


Thanks.
RJL

______________________________________________________________________
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
2007-10-24 16:20:57 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4586294
By: donho

https://sourceforge.net/forum/message.php?msg_id=4584190

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
2007-10-27 15:30:30 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4591528
By: nobody

set it yourself, just add .txt yourself and it will save it to txt...

______________________________________________________________________
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
2007-11-02 11:04:53 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4601760
By: nobody

There is NO .tpl support now... Nightmare... I want to save it as filename.tpl
No chance! First, there is no .tpl in the dropdown, and even if i choose *.*
it puts .txt at the end. So I have to change the .txt manually. Too many people
here want this function. But for me this is the biggest bug in NP++

And please, understand that .tpl means "template" which is almost pure .html
So add a simple html colors to a .tpl files

How is it possible?

An advanced editor which does not know what a ".tpl" file is :O

______________________________________________________________________
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
2007-11-02 13:19:56 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4601895
By: donho
Post by SourceForge.net
An advanced editor which does not know what a ".tpl" file is :O
An advanced user like you don't even know how to add a extension in an advanced
editor? :0

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

Continue reading on narkive:
Loading...