Mario Blättermann | 23 Jun 20:43 2016
Picon

Confined vs. restricted mode

Hi all,

while translating the nano interface into German, I'm stumbled upon
"confined". The appropriate string has been derived from "restricted"
by Gettext. I was wondering what's the difference between those?

Best Regards,
Mario
Benno Schulenberg | 26 Feb 10:45 2016
Picon

Re: How to disable syntax coloring?


On Wed, Feb 24, 2016, at 19:48, Earn Saengchote wrote:
> Unfortunately, making an alias only disables the syntax highlighting
> [during] a session. The syntax highlighting is still enabled if I restart
> my laptop. I cannot use the sudo command because I am on my
> university’s ssh [...]

There is a fourth solution.  Add the following two lines at the
end of your .nanorc file:

syntax "all" ".*"
color yellow "^$"

That syntax will match /all/ files, and will only
colour lines that have nothing between start and
end -- meaning that it will colour nothing.

Benno

--

-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
                          unladen european swallow

_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
https://lists.gnu.org/mailman/listinfo/help-nano
Romel Jacinto | 26 Feb 00:21 2016

Nano Windows binary download - Hash available?

Are file hashes (SHA1 or perhaps SHA256) available for the Windows
binary .zip downloads?

I looked for them on nano-editor.org [1] but maybe I'm looking in the
wrong place.
I'm a bit cautious these days and like to check file integrity if
possible.

[1] http://www.nano-editor.org/dist/v2.5/NT/

Thanks.

--

-- 
Romel
Benno Schulenberg | 25 Feb 10:10 2016
Picon

Re: How to disable syntax coloring?


You didn't keep the CC.  First learn to do as instructed.

On Wed, Feb 24, 2016, at 23:06, Earn Saengchote wrote:
> I’m sorry, but can you demonstrate how to make the alias
> in my .bashrc or .profile? I am taking into to c programming
> at my Uni and am not as experienced in UNIX.

Come on!  Google!  "alias in .bashrc"

http://www.thegeekstuff.com/2010/04/unix-bash-alias-examples/

That is: if you /have/ a .bashrc, if bash is your shell.

Benno

--

-- 
http://www.fastmail.com - The way an email service should be

_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
https://lists.gnu.org/mailman/listinfo/help-nano
Benno Schulenberg | 24 Feb 21:56 2016
Picon

Re: How to disable syntax coloring?


(Please keep the CC.)

On Wed, Feb 24, 2016, at 19:48, Earn Saengchote wrote:
> Unfortunately, making an alias only disables the syntax highlighting
> after a session. The syntax highlighting is still enabled if I restart my
> laptop. I cannot use the sudo command because I am on my
> university’s ssh and they do not allow users to use sudo commands.
> Is there another way around this?

Make the alias in your .bashrc or .profile after ssh'ing into
your uni's ssh account.  Then re-login, and the alias should
be always set.  You can check with 'type -a nano'.

If not, you will have to get in the habit of typing
nano --ignore or nano -I instead of plain nano.

Benno

--

-- 
http://www.fastmail.com - Access all of your messages and folders
                          wherever you are

_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
https://lists.gnu.org/mailman/listinfo/help-nano
Earn Saengchote | 23 Feb 04:03 2016
Picon

How to disable syntax coloring?

Hello, how do I disable syntax coloring on nano? I am using OS X.
Thank you
Benno Schulenberg | 15 Nov 18:18 2015
Picon

Re: exit without saving


On Fri, Nov 13, 2015, at 13:23, Mike Brown wrote:
> Benno wrote:
> > I was thinking of ^Q (Quit), but sounds too much like quitting
> > the entire program.
> 
> That's what I'm asking for.

Well, not quite: when nano has multiple files open, the ^R reject
key would not quit the program but just close the current buffer.

> ...^X
> 
> "aw crap! I'm being asked for a filename to save, must not have permission to 
> edit not-mine.txt after all!"

But most of the time you would be wanting to save the edits
you made, no?  To then 'sudo cp' them to the actual file.

But never mind that.  :)  I think a discard-buffer key is a
good idea.

Benno

--

-- 
http://www.fastmail.com - A fast, anti-spam email service.
Benno Schulenberg | 13 Nov 10:50 2015
Picon

Re: exit without saving


Hello Mike,

Thanks for your feature suggestion.

On Fri, Nov 13, 2015, at 08:11, Mike Brown wrote:
> Feature request:
> 
>    Meta-T  -  toggle -t / --tempfile command line option

Unfortunately, Meta-T is already taken.  Also, I don't like the
idea of having a toggle for this: if someone, during furious
typing, accidentally toggles this on without noticing, then
decides to discard the changes with ^X N, types ^X...
Aaargh!!

>    At the write file prompt, allow a control key to exit
>    without saving, e.g. ^X or ^Y.

Yes, I like that one.  I wouldn't use ^X though (too close
to ^C, too easy to discard the file when you just meant to
cancel the save), nor ^Y (feels too much like "Yes, save").

I was thinking of ^Q (Quit), but sounds too much like quitting
the entire program.  ^A (Abandon), ^D (Discard), ^K (Kill-it)
are already used for editing the filename.  So I would suggest
^R (Reject, Rubbish) or ^J (Junk-it).

> The goal is to make it easier to exit a 'nano -t' session without saving,

(Continue reading)

Mike Brown | 13 Nov 08:11 2015

exit without saving

Feature request:

   Meta-T  -  toggle -t / --tempfile command line option

or

   At the write file prompt, allow a control key to exit
   without saving, e.g. ^X or ^Y.

The goal is to make it easier to exit a 'nano -t' session without saving, e.g. 
as I often need to do when I press ^X and suddenly get a write file prompt 
because I'm not a user with permission to edit the file given on the command 
line. (I realize I could tell nano at that point to write to /dev/null, but it 
would be better to have a key combo that would exit without saving.)

This was asked about by someone in 2004, as well:
https://lists.gnu.org/archive/html/help-nano/2004-01/msg00006.html
higuita | 31 Oct 06:04 2015
Picon
Gravatar

block comment

Hi

	I would like to know if nano can do comment block operations, like
	selecting several lines and then "comment out" all those
	lines. We can do the ident with meta-{  and meta-}, but is there
	any way to comment?

	If not, then this is one feature request (shift-meta-(key) could
	setup what is the comment character or start/end of comment)

Thanks in advance
higuita
--

-- 
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
           -- Hermann Goering, Nazi and war criminal, 1883-1946
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
https://lists.gnu.org/mailman/listinfo/help-nano
Matthew Hebley | 28 Oct 21:31 2015
Picon

How to change nano background color

I upgraded from nano to nano 2. Now the background always reverts from 
my shell background to black even if I turn off the rc file (nano -I).

How do I make nano 2 use the same background color as my shell?

Or, how do I set the background color in nano2?

Best regards

Matthew

Gmane