Spyder: Improvements to the Ouline Explorer

Created on 1 Oct 2018  路  7Comments  路  Source: spyder-ide/spyder

  • [x] Order of files in the Outline Explorer should be synced with the order of the files in its corresponding EditorStack (PR #8015).
  • [x] Add an option to alphabetize the order of the files (PR #8015).
  • [x] Add an option to show the root file item of files that are not Python files (#7982).
  • [x] Add a way to highlight the currently focused file as suggested in https://github.com/spyder-ide/spyder/pull/7962#issuecomment-425751960 (PR #9219)
  • [ ] Add a fuzzy search widget to filter by file names
  • [ ] Add the ability to change the order of the root file item in the Outline Explorer and to sync the changes with the tabbar of the corresponding EditorStack.

Related Issues : ~#885~, #1986, #2549, #3014, #7053, #7976

Epic Outline Explorer Enhancement future

All 7 comments

https://github.com/spyder-ide/spyder/pull/7968#discussion_r221500554 by @CAM-Gerlach:

Of course, the outline explorer is still ordered alphabetically, rather than the order of the tabs in the Editor. Presumably out of scope for now, but if/when you make that change, if would be nice to have the option to either alphabetize it or make it follow the order of the editor, since both could potentially be useful depending on one's workflow.

Also, to note, the outline explorer only show Python files, so it isn't a true file switcher for more general cases. Perhaps, as a longer-term idea, we could have an option to show them (just the files without the outlines, of course).

https://github.com/spyder-ide/spyder/pull/7962#issuecomment-425751960 by @ccordoba12 :

My recommendation is to highlight the current file and class/method/cell/function by making the selected element to have a different background color, like VSCode does:

seleccion_015

I'd also like to add another suggestion here: Add a fuzzy search widget to filter by file names.

@jnsebgosselin

I found two more that would/could be solved here.

1986 and #2549

And if this is meant to be a "catch all" issue maybe #7976

Update:
"Add a way to highlight the currently focused file" was added in PR #9219 and can now be considered as completed.

@jnsebgosselin Maybe parts of PR #9384 would be useful to adapt for the outline explorer fuzzy search, e.g. the widget itself and the fuzzing code? Perhaps even use unified fuzzing code across our various fuzzy searches (variable explorer, outline, file switcher, completion of possible, etc.)?

Unambiguous filenames:
Screenshot from 2019-07-31 14-03-07

Was this page helpful?
0 / 5 - 0 ratings