[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] add position history blacklist regex ?
From: |
Mike Frysinger |
Subject: |
Re: [Nano-devel] add position history blacklist regex ? |
Date: |
Thu, 21 Jan 2016 12:45:01 -0500 |
On 20 Jan 2016 10:35, Benno Schulenberg wrote:
> On Tue, Jan 19, 2016, at 21:08, Mike Frysinger wrote:
> > one thing i've noticed with the new filepos feature is that it does not
> > play well with files that are, by design, temporal. for example, when
> > committing w/git, it will always use the filename .git/COMMIT_EDITMSG.
> > or when rebasing, it will always use .git/rebase-merge/git-rebase-todo.
> > the content of these files is never the same, so resuming position is
> > not only pointless, but actually kind of bad as you almost always want
> > the cursor to start at (0,0).
>
> How about setting EDITOR="nano +1" in .bashrc?
i'll try that. i can't think of cases where the system is running via
$EDITOR and i don't want it to start at 0,0. thanks!
> That solves the issue for me with git and svn commit messages.
> Are there any other files where you don't want nano to remember
> the cursor position?
not off the top of my head.
-mike
signature.asc
Description: Digital signature