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
add minimap option #536
add minimap option #536
Conversation
I think the warning should be fixed. |
yes, you do not have to review this right now, because I am still working on it. |
17 commits behind master, please, can you rebase it? |
@sc0w done |
I basically did a tab->priv->view_map_frame = gtk_frame_new (NULL);
map = gtk_source_map_new();
+ GtkCssProvider *provider = gtk_css_provider_new ();
+ gtk_css_provider_load_from_data (provider,
+ "textview { font-family: Monospace; font-size: 1pt; }",
+ -1,
+ NULL);
+ gtk_style_context_add_provider (gtk_widget_get_style_context (map),
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ g_object_unref (provider);
gtk_source_map_set_view (GTK_SOURCE_MAP(map), GTK_SOURCE_VIEW(tab->priv->view));
gtk_container_add (GTK_CONTAINER(tab->priv->view_map_frame), map);
gtk_widget_show (tab->priv->view_map_frame); to PlumaTab. |
It works fine, although |
From my point of view, I think that the |
Any news or progress? |
Sadly I do not have a lot of time at the moment. It seems to me, that it is very complicated to add the show/hide option to the Moving the show/hide option into the Menu the difficulty for me is the following: The overview map is created in the That said I would prefer the setting in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does work, though the conflicts with master need to be addressed before it can be merged. Pluma with this applied can optionally display a small-resolution overview of the entire file
Should it be merged? I think it is fully functional, despite it does not use I don't know when I have time to move the show/hide option from |
github says: |
The question still remains if you consider this PR or if I should close it and try to implement the minimap with the show/hide option in the |
more improvements can be done in future PRs, it isn't reason to block this PR. I will review the code/behavior again with your latest changes since my latest review. |
@sc0w done |
For me the overview is too small. It should be possible to resize them (left from the scrollbar), so this isn't really usable for me with or without my glasses. But this isn't a blocker by me. A menu entry would be great, because it's a similar UI element like sidebar and others, but this can be done in another PR if someone wishes this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and runs fine.
the behavior with drag & drop inside the minimap is a little weird working with long files (50k lines) for example copy paste this log into pluma: https://api.travis-ci.org/v3/job/701187611/log.txt I only notice this warning in the logs...
...but I think it can be fixed with more similar warnings in other PR. |
@mbkma |
@raveit65 The new PR will make this PR easier. I can rebase this PR after new PR is merged. |
@mbkma |
@mbkma |
@sc0w Yes, but I suppose that this is a problem from GtkSourceView, because it happens in older versions of Gedit (which still have the minimap) as well. |
Works for me like before. Ready to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no new warnings in the logs
Edit: I think it is done now, I fixed remaining issues, taking another approach for implementing the minimap.
Fixes #440