Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: remember position #21

Closed
ulno opened this issue Jan 14, 2018 · 6 comments
Closed

Feature request: remember position #21

ulno opened this issue Jan 14, 2018 · 6 comments
Assignees

Comments

@ulno
Copy link

ulno commented Jan 14, 2018

It would be nice if tilde could remember the last position (line and column) editing a file. So If you re-open a file, you are back at the line you were editing before (this of course should be overwritten by specifying a edit position at the command line).

@ulno ulno changed the title Feature request: remeber position Feature request: remember position Jan 14, 2018
@gphalkes gphalkes self-assigned this Feb 10, 2018
@ulno
Copy link
Author

ulno commented Dec 4, 2018

Maybe it would be enough to give tilde an option to just dump a list of all open files and the cursor position in them on closing to stdout or stderr?

@gphalkes
Copy link
Owner

This has been implemented in commit 9a74b20 and will be part of the next Tilde release.

However, I'm not 100% happy yet with the functionality: although the cursor position is restored, the view position is not restored. This means that although the cursor is visible after loading, it will likely be on the last visible line, rather than on the screen position where it was before. Of course this can't be done anyway if the screen size is different, but if the screen size is the same, the result of closing and then opening a file should be a no-op. So I'll leave the bug open to remind me to implement this part as well.

@Eucyon
Copy link

Eucyon commented Dec 1, 2019

I don't get it running.
Version: 1.0.3
~/.config/tilde/config:

%terminals {
	name = "xterm-256color"
	key_timeout = 100
	color = false
}
make_backup = true
hide_menubar = false
parse_file_positions = true
disable_primary_selection_over_ssh = false
restore_cursor_position = true
save_recent_files = true

What's wrong?
Thank you!

@gphalkes
Copy link
Owner

gphalkes commented Dec 1, 2019

Sorry, the feature has not been released yet. The 1.0.2 and 1.0.3 releases only included fixes for important bugs. You will have to wait a little while longer to use the feature.

@Eucyon
Copy link

Eucyon commented Dec 1, 2019

Thank you, I am looking forward.

@gphalkes
Copy link
Owner

This has now been released as part of version 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants