Spyder: Bookmarks for Spyder Editor

Created on 17 Feb 2015  Â·  21Comments  Â·  Source: spyder-ide/spyder

_From [email protected] on 2012-01-15T11:12:30Z_

Hallo,

The spyder editor should support bookmarks like the VIM-editor or the editor in MATLAB.
Both bookmark-systems differ in the way you set and access the bookmarks and have their own charm.

MALAB:
In Matlab all bookmarks were set with the same bookmark-keyboard-shortcut (Ctrl-F2). This bookmarks can then be cycled trough by pressing a different shortcut like F2.
A short description (including pictures) about the behaviour of the bookmark-system can be found here http://blogs.mathworks.com/desktop/2007/06/15/scroll-less-with-editor-bookmarks/ This variant is better if you have only two or three bookmarks because you do not have to worry about remembering the specific shortcuts for different locations.

VIM
In VIM it is possible to set several bookmarks which can be accessed (moved to) separately.
See http://www.thegeekstuff.com/2009/02/how-to-add-bookmarks-inside-vi-and-vim-editor/ Especially if you use bookmarks a lot it is better to have specific jump-locations so you do not have to cycle trough all of them.

Thanks in advance,
HoWil

_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=910_

6–10 stars Editor Ux-usability Enhancement future

Most helpful comment

it is very low on the priority

Since this feature has not been requested by many users (yet), yes it is indeed not a very high priority, but with this growing interest I can assure you that this is definitely going to be included in Spyder 4.0 or in the Master Branch in a couple of months.

The thing is that we are decoupling several parts of the Spyder API and widgets to make them more extendable and that work is currently happening with the editor so we can better support code folding and now this feature.

Thanks for using Spyder and suggesting how to make it even better :-)

All 21 comments

_From ccordoba12 on 2013-02-13T09:21:58Z_

We'll consider them for 2.3

Labels: Cat-Editor MS-v2.3

_From pierre.raybaut on 2013-05-11T05:42:37Z_

Labels: -MS-v2.3 MS-v2.4

_From [email protected] on 2013-09-07T07:58:26Z_

An easy way to implement this would be to replicate most of the functionality that already exists for breakpoints, namely:

1) Setting or clearing bookmarks by double-clicking on the margin of the editor (Ctrl-double-click or something else to differentiate from breakpoints)
2) Have a window that shows the bookmarks. Double-clicking on an item takes you to the bookmark.

All one would have to add would be a key combination that would jump to the next bookmark.

No matter how but I really think that is very important implement it, asap ...

@goanpeca, what do you think?

I do not see as so important to be honest, users could use the outline explorer and special comments to have quick access "bookmarks". Overloading functionality on the linenumber does not sound so good...

....
# --- Bookmark 1     This will appear in the outline explorer
.... 
# --- Bookmark 2      This will appear in the outline explorer

We could provide a "Special comments" view to create a better experience


@ccordoba12 , PR #2885 #2861 and #2184 are waiting :smiling_imp:

Em 29/12/2015 02:10, Gonzalo Peña-Castellanos escreveu:

I do not see as so important to be honest, users could use the outline
explorer and special comments to have quick access "bookmarks".
Overloading functionality on the linenumber does not sound so good...

....

--- Bookmark 1 This will appear in the outline explorer

....

--- Bookmark 1 This will appear in the outline explorer


@ccordoba12 https://github.com/ccordoba12 , PR #2885
https://github.com/spyder-ide/spyder/pull/2885 #2861
https://github.com/spyder-ide/spyder/pull/2861 and #2184
https://github.com/spyder-ide/spyder/pull/2184 are waiting
:smiling_imp:

—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/910#issuecomment-167715391.

I see, but those are not the same thing ..., what you propose is to use
a workaround to solve this issue and I have proposed to implement one
way useful, easy and quick to get some places in our code ... just is it
... no matter how but when, because in my opinion this is very useful
... just compare this kind of command with some another IDE ... When you
use the best tool for your work, it ends better and faster than before ...

Ademir Francisco da Silva
Skype ...: Ademir_Francisco_da_Silva
[ CMC ] God will do me justice


Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

Em 29/12/2015 09:57, Ademir Francisco da Silva escreveu:

Em 29/12/2015 02:10, Gonzalo Peña-Castellanos escreveu:

I do not see as so important to be honest, users could use the
outline explorer and special comments to have quick access
"bookmarks". Overloading functionality on the linenumber does not
sound so good...

....

--- Bookmark 1 This will appear in the outline explorer

....

--- Bookmark 1 This will appear in the outline explorer


@ccordoba12 https://github.com/ccordoba12 , PR #2885
https://github.com/spyder-ide/spyder/pull/2885 #2861
https://github.com/spyder-ide/spyder/pull/2861 and #2184
https://github.com/spyder-ide/spyder/pull/2184 are waiting
:smiling_imp:

—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/910#issuecomment-167715391.

Have you ever tried it with a text file, for example? Just simple, it
doesn't work ... or then fix the code explorer, the question here is
what is better and simple to do ... Think about it ... But anyway,
thank for your precious tip ...

Ademir Francisco da Silva
Skype ...: Ademir_Francisco_da_Silva
[ CMC ] God will do me justice

Ademir Francisco da Silva
Skype ...: Ademir_Francisco_da_Silva
[ CMC ] God will do me justice


Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

The fact that this feature is not in the Roadmap probably means that it is very low on the priority list and has little chance to be implemented? That's a pity.

If I should ever find myself having advanced a lot in Python/GUI programming - any hints of where to start on a feature like this? If I understand correctly, the two approaches mentioned here would either be using the breakpoint framework or that of the Outline Explorer / special comments. I guess the second approach would be easier to implement? Just finding the right regular expression, parsing the name/title of the 'bookmark' and adding it to the project outline in the appropriate location.

Thanks for your answer ...

Em 29/09/2016 10:09, Christopher escreveu:

The fact that this feature is not in the Roadmap
https://github.com/spyder-ide/spyder/wiki/Roadmap probably means
that it is very low on the priority list and has little chance to be
implemented? That's a pity.

If I should ever find myself having advanced a lot in Python/GUI
programming - any hints of where to start on a feature like this? If I
understand correctly, the two approaches mentioned here would either
be using the breakpoint framework or that of the Outline Explorer /
special comments. I guess the second approach would be easier to
implement? Just finding the right regular expression, parsing the
name/title of the 'bookmark' and adding it to the project outline in
the appropriate location.

Ademir Francisco da Silva
Skype ...: Ademir_Francisco_da_Silva
[ CMC ] God will do me justice


Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

it is very low on the priority

Since this feature has not been requested by many users (yet), yes it is indeed not a very high priority, but with this growing interest I can assure you that this is definitely going to be included in Spyder 4.0 or in the Master Branch in a couple of months.

The thing is that we are decoupling several parts of the Spyder API and widgets to make them more extendable and that work is currently happening with the editor so we can better support code folding and now this feature.

Thanks for using Spyder and suggesting how to make it even better :-)

Wow !!! Definitely I'm very happy now ...

Em 29/09/2016 10:51, Gonzalo Peña-Castellanos escreveu:

it is very low on the priority

Since this feature has not been requested by many users (yet), yes it
is indeed not a very high priority, but with this growing interest I I
can assure you that this is definitely going to be included in Spyder
4.0 or in the Master Branch in a couple of months.

The thing is that we are decoupling several parts of the Spyder API
and widgets to make them more extendable and that work is currently
happening with the editor so we can better support code folding and
now this feature.

Thanks for using Spyder and suggesting how to make it even better :-)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/910#issuecomment-250471789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABrL8sK6DLUFwHwR3KgselDL3JntqXUpks5qu8J4gaJpZM4DhQT3.

Ademir Francisco da Silva
Skype ...: Ademir_Francisco_da_Silva
[ CMC ] God will do me justice


Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

@ccordoba12 Is anyone working on this? I would like to have this feature very much in Spyder. I actually use break points as a way to put bookmarks since I don't use the debugger much...

Nop, there's none working on it. Would you like to give it a shot?

Yes, I will do it.

I think it is indispensable !
@jnsebgosselin how do you think about the Bookmarks ?

It can be enumerable (0 to 9) and swap between the opened files (like android studio) ?
This feature is helpful in android studio !

Did anything over come of this discussion? This is the only thing I miss about the Matlab and Visual Studio editors when I'm working in Spyder, and it would be fantastic to find a way to do this, even if there's some kind of hack that creates an experience _kind of_ like this.

Are Spyder Bookmarks still in preparation?
Any idea when we might see them?
This is really the only feature that I miss on Spyder .....

They'll be added in Spyder 5, to be released in a year or year and a half.

They'll be added in Spyder 5, to be released in a year or year and a half.

Thanks for your reply!

Was this page helpful?
0 / 5 - 0 ratings