From f13707fd1defa4129b26c8921dd1709682c439a5 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg You have the autoindent feature turned on. Hit Meta-I to turn it off, paste your text, and then hit Meta-I again to turn it back on. In nano 2.3.0, cursor-position history was introduced, and both history files now reside under a .nano directory in your home. nano was trying to move this file into the new location so it could continue to use it. This means that if you try and use an earlier version of nano, it will be unable to see your current search history. To fix this, run the following commands: mv ~/.nano/search_history ~/.nano_history4.14. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?
4.15. On startup I get a message that says "Detected a legacy nano history file". Now older nano versions can't find my search history!
-
-
- ln -sf ~/.nano_history ~/.nano/search_history
In nano 2.3.0, cursor-position history was introduced, and both history files now reside in a .nano subdirectory in your home directory. A newer nano will move an existing search-history file to this new location so it can continue to be used. This means that if you then try and use an earlier version of nano, it will be unable to see your current search history. To fix this, run the following command:
+ln -sf ~/.nano/search_history ~/.nano_history
+The "migration service" (moving the search-history file to its new location) will be deleted from nano in early 2018.