question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add completion of filenames in the Editor

See original GitHub issue

Dear Spyder dev Team,

I remember that Spyder used to complete filenames in strings in earlier versions, just as matlab does (provided that the the file is in the current working directory). However, it doesn’t seem as this is still possible in the most recent Spyder (3.2.6, 3.2.8) versions, at least on Ubuntu…

How to recreate:

Open Spyder on some directory that contains files e.g. \mytest.py \mytest_data.csv type “mytest_<tab>” Spyder won’t complete the filename to “mytest_data.csv” neither in the shell nor in the Editor…

Package Versions

  • Spyder version: 3.2.8
  • Python version: 3.5.4
  • Qt version: 5.6.2
  • PyQt5 version: 5.6
  • Operating system: Linux 4.13.0-36-generic

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.21.1 (OK)
numpy >=1.7      :  1.14.1 (OK)
sphinx >=0.6.6   :  1.7.1 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
psutil >=0.3     :  5.4.3 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.8.2 (OK)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Aug 17, 2021

No, it is not possible, as I clearly said above. You need to use a Spyder project.

0reactions
daduccicommented, Aug 17, 2021

Ah ok, I see it now. Do you think it would e possible, instead, to use the current “working directory” (i.e., the directory used for files and IPython consoles) as the path to be used for relative paths? This value is always available also in case a project is not created. I am just wondering as my typical “use case” is to open .py files from the file explorer (Fider.app in my case) with Spyder and execute the code inside it cell by cell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to auto-complete filenames in sub-directories when ...
use Down to “drill down” into the subdirectory and start completing filenames below; use Up to “move up” into the parent directory and ......
Read more >
In Vim tab-completion of file names doesn't work
1 Answer 1 · I like adding each file's directory to my path as I edit, adding it to the BEGINNING of the...
Read more >
Vim filename completion - Arabesque - Tom Ryder
Pressing Tab will complete the filename to the first match, and subsequent presses will not elicit any list of possible completions that might ......
Read more >
find, :edit) display file names with relative paths? : r/neovim
Where Filename.txt is completed by pressing tab and then you manually appending | file afterward and pressing enter. However, a better way would...
Read more >
Customizing Filename Completion in TCC - Take Command
You can customize filename completion for any internal or external command or alias. This allows TCC to display filenames intelligently based on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found