Skip to content

Find and insert python import statements from across your codebase

Notifications You must be signed in to change notification settings

Dotrar/telescope-python-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Telescope: Py Imports

This extension will look in your codebase for import statements, and allow you to put them in the codebase easily.

Screenshot:

image

How to use

Import normally, ie for vim-plug:

Plug 'dotrar/telescope-python-imports'

and load extension to your telescope setup

telescope.load_extension("python-imports")

Then bind to a key:

I prefer to use ctrl-y while in insert mode, and "fi" for normal mode.

Note if called while in insert mode, it will keep you in insert mode

local python_imports = require('telescope').extensions['python-imports']

-- example keymaps
vim.keymap.set('i', '<c-y>', python_imports.search)
vim.keymap.set('n', 'gy', python_imports.search,)

About

Find and insert python import statements from across your codebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages