Title: Feature request: path completion with pathlib objects · Issue #10427 · ipython/ipython · GitHub
Open Graph Title: Feature request: path completion with pathlib objects · Issue #10427 · ipython/ipython
X Title: Feature request: path completion with pathlib objects · Issue #10427 · ipython/ipython
Description: So, I love how ipython can path-complete strings to dig through your folders. But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to access sub-paths. Would it be possible to hav...
Open Graph Description: So, I love how ipython can path-complete strings to dig through your folders. But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to acces...
X Description: So, I love how ipython can path-complete strings to dig through your folders. But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to acces...
Opengraph URL: https://github.com/ipython/ipython/issues/10427
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: path completion with pathlib objects","articleBody":"So, I love how `ipython` can path-complete strings to dig through your folders.\r\nBut I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to access sub-paths.\r\nWould it be possible to have ipython to be able to path-complete on a pathlib.Path folder?\r\nSo, I would like to be able to do something like this:\r\n\r\n```python\r\nfrom pathlib import Path\r\n\r\nroot = Path(\"/abc/myfolder\")\r\n\r\nf1 = root / \"f342\u003cTAB\u003e\"\r\nf2 = root / \"f569\u003cTAB\u003e\"\r\n```\r\n\r\nHope this is understandable? With \u003cTAB\u003e I mean I press the TAB key at that point, to have ipython complete that string part of the full path.\r\n\r\nCheers!\r\n","author":{"url":"https://github.com/michaelaye","@type":"Person","name":"michaelaye"},"datePublished":"2017-04-06T19:55:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/10427/ipython/issues/10427"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c9306bb2-5181-48e6-0c85-0aa31f9d6d49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8770:39FFB3:1D86F8B:2AAF293:6A4D00CB |
| html-safe-nonce | 22c76a4b1d3f748afc67b56d9c62332b90ad2366c280e50fe45f9ee6f3fd570d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzcwOjM5RkZCMzoxRDg2RjhCOjJBQUYyOTM6NkE0RDAwQ0IiLCJ2aXNpdG9yX2lkIjoiNzY2NTYyMzg0NjM0MjQ5NDE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8753f605642a9c093a57843505c49e7f2a5cbfb2e4e62c73ff3a302ebe385674 |
| hovercard-subject-tag | issue:220013766 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/ipython/10427/issue_layout |
| twitter:image | https://opengraph.githubassets.com/218f140eb6ad0e7b89b64c40d4ef3950fbdae39f3f3b1c50a15dc7699e019667/ipython/ipython/issues/10427 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/218f140eb6ad0e7b89b64c40d4ef3950fbdae39f3f3b1c50a15dc7699e019667/ipython/ipython/issues/10427 |
| og:image:alt | So, I love how ipython can path-complete strings to dig through your folders. But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to acces... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michaelaye |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width