FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

editor: saving bookmarks in the editor along with saving the file

Open AVBL opened this issue 2 years ago • 0 comments

Description of the new feature or improvement

Настройки: ╔════════════════════════════ Редактор ═════════════════════════════╗ ║ [x] Сохранять закладки ║

Во время редактирования файла можно устанавливать закладки. Если при редактировании добавлять/удалять строки между сохранённой позицией и началом файла, закладки корректируются и потом сохраняются при выходе из редактора. В идеальной ситуации всё окей и проблем нет, но ситуации бывают разными - а именно, фар может быть завершён без выхода из редактора (крах фара, зависание системы, жёсткое выключение компьютера) и при следующем запуске фара и открытии файла в редакторе позиции закладок будут не соответствовать содержимому, если оно ранее редактировать И сохранялось.

Моё предложение: сохранять закладки не только при выходе из редактора, но и при сохранении файла (F2).

google translate: Settings: ╔════════════════════════════ Editor ═════════════════════════════╗ ║ [x] Save bookmarks ║

You can set bookmarks while editing a file. If you add/delete lines between the saved position and the beginning of the file while editing, the bookmarks are corrected and then saved when you exit the editor. In an ideal situation, everything is ok and there are no problems, but the situations are different - namely, the FAR can be closed without exiting the editor (the FAR crash, the system freezes, the computer hard shuts down) and the next time you start the FAR and open the file in the editor, the bookmark positions will not match the content if it was previously edited AND saved.

My proposal: save bookmarks not only when you exit the editor, but also when you save the file (F2).

Proposed technical implementation details (optional)

No response

AVBL avatar Jun 21 '23 12:06 AVBL