coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.44k stars 431 forks source link

Bookmarks for faster navigation #300

Open dstd opened 9 years ago

dstd commented 9 years ago

Don't know why most of Mac's editors and IDE's has no such a feature, but it quite useful.

1024jp commented 9 years ago

What do you expect with this function? Could you give me an example (screenshot / app name)?

dstd commented 9 years ago

Function is simple - quick jump to specific line of the file with shortcut. It could be done via JumpNext/JumpPrevious (like most apps that I've seen), or by Ctrl-1,2,..,0 (like Borland Pascal).

Applications example: Visual Studio, AppCode, Notepad++ (blue dots on the screenshot - bookmarks).

1024jp commented 9 years ago

Ah hah, ok, I can imagine it might be useful. I'll consider implementing this after I solve the current to-do's.

gingerbeardman commented 2 years ago

From: https://github.com/coteditor/CotEditor/issues/1225#issuecomment-980482762

Bookmark could be saved to file using xattr (extended attributes).

Other text editors use xattr to store cursor location with a file, and CotEditor already uses it to store encoding type with a file.