111 Commits

Author SHA1 Message Date
08ad7b207f Add 'ignore_missing_dirs' option to not show warnings when a directory is missing 2025-02-14 23:20:06 -05:00
My Arcana
1d7920e799 Add support for = and newline in project paths (#162) 2024-12-01 19:57:03 +00:00
My Arcana
9fc8428e2c Get basename of path, robust and cross-platform (#161) 2024-11-26 22:40:43 +00:00
My Arcana
404252879b Escape shell argument for git (#163) 2024-11-26 21:12:13 +00:00
My Arcana
70ca6d3ca5 Add type annotations to utils (#166)
* Add definition file types.lua

* Add type annotations to utils.lua

* Correct base_dir type annotation
2024-11-26 21:09:16 +00:00
My Arcana
7dea0d37dc Add installation section to README (#164) 2024-11-19 19:44:19 +00:00
My Arcana
34dfa6daa8 Add add_project_path action (#160) 2024-11-19 15:44:24 +00:00
Bruno Hammerschmidt
796200876b Added the possibility to change the default mappings (#157) 2024-09-09 12:10:50 +01:00
sentanos
a44032fb38 Add hide workspace option (#158) 2024-09-09 12:09:41 +01:00
l4zygreed
1aaf16580a Switchable and configurable change_project_dir scope (#142)
* feat/cd_settings: configurable cd scope

* Add test coverage for local/tab cd

* feat/cd_scope: update tests

---------

Co-authored-by: Cameron Daniel <cam.daniel@gmail.com>
2023-12-01 21:01:18 +00:00
lytex
5460c6c60d add option to use both title and path searching (#140) 2023-11-06 09:41:21 +00:00
lijinglin
7c64b181dd fix sync_with_nvim_tree (#132) 2023-04-27 15:42:46 +01:00
Gerry Hernandez
fa081e35ba Add ability to change default action (#121)
This PR allows the user to configure Telescope Project to invoke any
arbitrary function as the result of a project being selected. Existing
behavior remains unchanged and the user must opt-in to this
configuration option. See README for documentation.
2023-03-23 16:06:03 +00:00
ANGkeith
8e8ee37b72 support configurable search by field for telescope finder (#122) 2022-12-23 14:21:07 +00:00
Ever
687f130f2f add two-segment display_type (#123) 2022-12-23 14:20:07 +00:00
narodo
ff4d3cea90 added command to add project by cwd (#118)
Co-authored-by: Immanuel Narodoslawsky <inarodoslawsky@snapchat.com>
2022-10-10 13:51:21 +01:00
Vladimir
a0dec67dec feat: add setting to enable/disable sync with nvim tree plugin (#117)
Co-authored-by: Vladimir Antoscenco <vladimir.antoscenco@tekoway.com>
2022-10-02 07:24:20 +01:00
Vladimir
91e9a9737b hotfix: fix property access on already installed plugin with projects (#115) 2022-09-16 06:08:59 +01:00
Tony
879d97a839 Use gsub to remove ansi-rgb term output after getting git_root from vim.fn.systemlist (#104)
* Substitute ansi-color coding sequence generated from `vim.fn.systemlist` when getting directory from `try_and_find_git_path`

* Substitute ansi-color coding sequence generated from `vim.fn.systemlist` when getting directory from `try_and_find_git_path`
2022-09-16 05:12:58 +01:00
Vladimir
39a9f4532e feat/order: fix order by recently opened, add order by setting (#112) 2022-09-16 05:10:39 +01:00
lijinglin
9cb1d68e06 fix: move focus to previous buffer after nvimtree.open() (#114) 2022-09-13 13:34:59 +01:00
Vladimir
b991a2ac48 Add nvim-tree open functionality (#110)
Co-authored-by: Vladimir Antoscenco <vladimir.antoscenco@tekoway.com>
2022-09-08 21:27:20 +01:00
Diego Frias
dc9a1977d1 fix: config example in README (#107)
Add missing curly brace
2022-08-07 21:17:29 +01:00
Zeng
8cd22b696e fix: parse pathes ended with '/' correctly (#102)
Co-authored-by: bekaboo <kankefengjing@gmail.com>
2022-06-12 14:04:40 +01:00
Iker Urdaniz
4658d78523 fix: file_browser (#88)
fix: file_browser
2022-04-28 21:22:17 +01:00
Iker Urdaniz
d924c4ea1c feat: theme (#87) 2022-04-28 21:21:28 +01:00
tiagovla
d317c3cef6 fix: keep insert mode nvim 0.7 (#86) 2022-01-23 18:55:25 +00:00
matu3ba
ad33c9eb67 feat: workspaces (#74)
* create workspaces file

* add workspace numbers to project lines

* add action to change a project's workspace

* add keymapping to change workspace

* separate workspace mappings

* add workspace key mappings to README

* fix luacheck as recommended in

* fix test cases and make them more robust

- add a few assertions
- use `tostring` for the title to make it usable for plenary paths and
  regular paths defined as strings (from test cases)

* workspaces are shown on default

Co-authored-by: chrislaidler <cjjlaidler@gmail.com>
2021-11-20 07:43:15 +00:00
Adelar da Silva Queiróz
50ae840e22 Little fix on the README (#70) 2021-10-22 22:04:57 +01:00
Luke Kershaw
348f5c77fc fix: don't use deprecated actions (#69) 2021-10-10 21:05:00 +01:00
jens1205
6f63c15efc fix: match on string representation of path as before (#59) 2021-08-03 09:59:38 +02:00
Christopher Laidler
e02e9b7ea7 Update README.md
Fix PR mistake
2021-07-19 09:08:49 +01:00
Dhananjay
a6a890ae89 Show hidden files in selected project (#55) 2021-07-18 20:36:09 +01:00
oskarskog
2e286e9323 Allow multiple base dirs in config (#48)
* Allow multiple base dirs in config

* Use plenary.scandir instead of find

* change error message to reduce confusion

Co-authored-by: Christopher Laidler <43636691+claidler@users.noreply.github.com>
2021-07-05 19:20:08 +01:00
Christopher Laidler
10179a6ab4 Merge pull request #46 from oskarskog:fix/auto-discover-projects-mac
Fix find command for OSX
2021-07-05 08:35:46 +01:00
Christopher Laidler
0b0666e926 Merge pull request #47 from oskarskog:fix/close-file-after-saving-project
Close file handle after saving projects
2021-07-05 08:23:06 +01:00
Oskar Skog
145e96868e Close file handle after saving projects
This fixes an issue where auto-discovered projects don't show
up in the projects list the very first time the project function
is run.
2021-07-03 13:41:05 +03:00
Oskar Skog
519e895a90 Fix find command for OSX
OSX's find command doesn't have the `-printf` flag
2021-07-03 11:13:52 +03:00
chrislaidler
6a1c607b9f use ctrl+a for adding projects as ctrl+c is already used 2021-06-22 08:48:03 +01:00
Logan Connolly
a2878a94bd Merge pull request #40
* refactor: filter out projects whose paths don't exist

* refactor: mark finder title that path is missing

* fix: compare paths not title because it mutates

* refactor: write helper function for changing paths

* Merge branch 'nvim-telescope:master' into feat/filter_missing_project…

* Merge branch 'feat/filter_missing_project_paths' of github.com:logan-…

* test: add test for safe change directory
2021-06-22 08:40:13 +01:00
chrislaidler
f865ad180e fix CR renaming in insert mode 2021-06-20 13:51:10 +01:00
Christopher Laidler
f356eac480 add insert mode mappings (#41) 2021-06-19 21:37:38 +01:00
Christopher Laidler
d5bd0f016c Revert "feat: handle missing project paths (#37)" (#38)
This reverts commit 46401464d9.
2021-06-15 19:05:42 +01:00
Logan Connolly
46401464d9 feat: handle missing project paths (#37)
* feat: add utility for removing missing projects

* test: add test for checking that projects was updated

* docs: update setup docstring

* refactor: also filter out missing projects in get_projects()
2021-06-15 19:01:16 +01:00
Harry Gallagher
8b6ba1dc26 Fix errors in #35 (#36)
* use plenary.strings instead of telescope.util for strdisplaywidth

* widths.dir -> widths.display_path

* move base_dir check to update_git_repos
2021-06-15 08:52:35 +02:00
Logan Connolly
4038a73667 Feat/Add Project Scanner (#34)
* feat: support base_dir option for searching for git repos

* style: fix indentation

* fix: only close file if exists

* fix: explicitly set to false if base_dir not set

* refactor: always initialize project file

* refactor: separate project extraction and project writing

* fix: iterate with pairs and no arg for io.lines

* refactor: restructure, test, and lint

* refactor: use standard telescope file structure

* refactor: utilize utility functions for actions module

* refactor: support max_depth arg for recursive searching

* chore: add Makefile for linting and testing

* test: add utils general tests

* refactor: do not need file_exists function

* test: add tests for creating, writing and reading projects

* chore: move location of tests

* test: add tests for git project scanning

* test: do not need minimal_init.vim now

* test: clean up tests

* refactor: update git projects on setup
2021-06-14 19:31:55 +01:00
Luke Kershaw
3ba1950531 Feat/refactor picker refresh (#32)
* Refactor refreshing the picker after add/delete/rename project

* Tidying and add some comments explaining functions
2021-05-31 20:33:53 +01:00
Christopher Laidler
292f51fdad Update README.md 2021-05-11 19:28:41 +01:00
Christopher Laidler
743ce9ad00 Update README.md 2021-05-11 19:27:05 +01:00
Christopher Laidler
de7b6e3f16 Feature/sort project by access time (#28)
* sort projects by access time

* minor format change

* check for null values and expand paths
2021-05-11 19:21:33 +01:00