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

Qualify duplicate names with path information #115

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 9 comments
Closed

Qualify duplicate names with path information #115

GoogleCodeExporter opened this issue Aug 24, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

This is an enhancement request that I feel would greatly improve PyScripter
and put it ahead of other editors without negatively affecting the UI. In
cases where multiple file names are open that have the same base name (e.g.
object.py), PyScripter should prefix those names with as much path
information as is necessary to distinguish them, up to some reasonable
limit. For instance, say you have two files open: \temp\foo\bar.py and
\temp\test\bar.py. The first is the "bar" module and the second is the test
script for the bar module. Rather than displaying "bar.py" for both file
tabs as is done currently, PyScripter would instead display "foo/bar.py"
and "test/bar.py".

I realize PyScripter displays the full path when you mouseover the
filename, but I still waste plenty of time bouncing the mouse between tabs
to find the correct file. 

Original issue reported on code.google.com by blaker...@gmail.com on 30 May 2007 at 8:22

@GoogleCodeExporter
Copy link
Author

I'm not sure this is very useful. It fixes one inconvenience of working with 
many
many tabs, but there are still many.

I believe the correct fix for this problem is to have a dialog "jump to window" 
that
lists all the open files and filter them on-the-fly as you type (similar to the
CTRL+G "Function List" dialog, but used to select one open file).

In your case, you would type "obj" and see all the open files matching "obj" 
(with
the substring obj within any part of their full path). At that point, it's easy 
to
press UP or DOWN to select the correct file and ENTER to activate it.

Original comment by giovanni...@gmail.com on 1 Jun 2007 at 10:31

@GoogleCodeExporter
Copy link
Author

How about if I change the Files menu when you right click on the tabbar to show 
full
path information.  In addition I could display the full name in the PyScripter 
title
which was another old standing request from someone.  Would that resolve the 
issue?

Original comment by pyscripter on 2 Jun 2007 at 2:13

@GoogleCodeExporter
Copy link
Author

giovannibajo's suggestion is a good one--I've been thinking of filing it 
myself--but
I think it's separate from this issue. I still want to be able to see which 
file is
which at a glance (I often have 3 or 4 __init__.py's open), either because I'm 
using
the mouse or because I want to Ctrl+Tab to the file I want. It will often be 
faster
and easier for me to Ctrl+Tab right to the file (if I know which one I need) 
than to
type "__i" and use the arrow keys.

Kiriakos: I don't think full path information should be displayed; that would 
quickly
overwhelm the tabbar. Unless by "full path" you meant what I was describing 
here,
which is designed to take as little space as possible while still providing
identifying information.

I still feel that my original proposal is the best way to solve this particular
problem, but it'd still be useful if it were only activated on some sort of 
click or
other gesture.

I disagree that this is not a useful mechanism. This:

[foo/__init__.py]   [bar/__init__.py]    [baz/__init__.py]   [hi/__init__.py]

is a hundred times easier to navigate than this:

[__init__.py]    [__init__.py]    [__init__.py]    [__init__.py]

Original comment by blaker...@gmail.com on 2 Jun 2007 at 4:19

@GoogleCodeExporter
Copy link
Author

Sorry I meant to display the full path in the PyScripter window title bar.

Original comment by pyscripter on 2 Jun 2007 at 9:40

@GoogleCodeExporter
Copy link
Author

Original comment by pyscripter on 17 Jun 2007 at 1:26

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

@blaker...:
If it is specifically __init__.py you are concerned about, then maybe a feature 
like PyDev's would work: there is an option to display the package name instead 
of __init__.py.

e.g.
    [__init__.py]   [__init__.py]    [__init__.py]   [__init__.py]
becomes
    [foo]   [bar]   [baz]   [hi]

I think this change isn't very shocking to users who are not unhappy with the 
current situation, as it's clearly more explanatory and in 99% of cases the 
__init__.py files are going to be the only tabs in the editor(s) without 
extensions on them. 

I suggest this alternative because I think your idea would use up a lot of tab 
real estate.

Original comment by theman.t...@gmail.com on 21 Jan 2012 at 3:18

@GoogleCodeExporter
Copy link
Author

Nice idea.  Might implement this.

Original comment by pyscripter on 22 Jan 2012 at 12:59

@GoogleCodeExporter
Copy link
Author

Implemented in version control.  New IDE option "Display package names"

Original comment by pyscripter on 7 Mar 2012 at 1:45

@GoogleCodeExporter
Copy link
Author

Original comment by pyscripter on 7 Mar 2012 at 2:55

  • Changed state: Fixed

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

No branches or pull requests

1 participant