nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] add position history blacklist regex ?


From: Mike Frysinger
Subject: [Nano-devel] add position history blacklist regex ?
Date: Tue, 19 Jan 2016 15:08:00 -0500

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).

there's no real metadata here for nano to try and be smart about it.
git will open/truncate the file before filling it with data, so it's
not like we could watch the inode.  maybe the only way out is to add a
new config option where people can define a regex to filter out these
paths ?
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]