Commit Graph

142 Commits

Author SHA1 Message Date
Kyoichiro Yamada
d5aa53dcd3 create new action: git switch (#798)
* create new action: git switch

If the branch already exists in local, switch to that.
If the branch is only in remote, create new branch tracking remote and switch to new one.

* fix a point of review

* fix a point of review: map to git-switch action

* Revert "fix a point of review"

This reverts commit 017ce424a3adfe1b3712a421385cfc3f4258a0fb.

* undocument header comment
2021-05-11 01:55:41 -07:00
Amirreza Askarpour
9fd242db26 feat: add git_stash picker (#800) 2021-05-11 10:20:57 +02:00
caojoshua
e2907fc0f2 feat: jumplist picker and jump to row/col on existing buffers. (#813) 2021-05-09 11:05:12 +02:00
Ben Smith
6fd1b3bd25 docs: Git actions docs fix (#787)
* Removed function headers for git actions

* [docgen] Update doc/telescope.txt
skip-checks: true

* [docgen] Update doc/telescope.txt
skip-checks: true

* Added TODO & comments instead of removing headers

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Github Actions <actions@github>
2021-04-23 14:16:44 -04:00
Volodymyr Kot
712de3e182 feat: add search history picker (#769)
Co-authored-by: Volodymyr Kot <vkot@palantir.com>
2021-04-23 18:24:09 +03:00
TJ DeVries
c6980a9acf docs: add other actions modules (#792)
* docs: add other actions modules

* [docgen] Update doc/telescope.txt
skip-checks: true

* fixup

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Github Actions <actions@github>
2021-04-22 17:08:22 -04:00
Lars Haalck
f2c3f724ad Fix: open files with the same name (#697) (#741)
* Fix: open files with the same name (#697)

* Fix: fire vim.cmd if command is not edit (#760)
2021-04-15 09:30:56 -04:00
Ben Smith
c5f0d05835 git(action): create and checkout branch (#755)
* added git action for creating and checking out a new branch, added basic docstrings for git actions

* Added confirmation for creation of new branch, changed default mapping
to <c-u>

* Switched back to `<c-a>` default mapping for now
2021-04-14 12:31:05 +03:00
Thiago Medeiros
0944c4a88f Fix git rebase input message (#720) 2021-04-03 22:48:42 -04:00
Christopher Laidler
812fae1d71 fix: related to #13 telescope-project, enter insert mode on prompt close (#637)
* fix: related to #13 telescope-project, enter insert mode on prompt close

* fix: related to #13 telescope-project, enter insert mode on prompt close

* revert changes made in error

* fix PR issue

* fix: undefined variable do_close

* use action_state as actions is deprecated

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Github Actions <actions@github>
2021-03-17 04:50:06 +07:00
tami5
284f38c575 feat & fix: Command History Picker (#656) 2021-03-14 20:05:56 +03:00
elianiva
c8cc024ebf feat: add add_to_qflist, add_selected, and smart_add (#636)
* feat: add `add_to_qflist`, `add_selected`, and `smart_add`

* refactor: use local function
2021-03-12 11:00:15 +07:00
fdschmidt93
559bf36e73 feat: add completion to pre-filtering (#626)
Works by pressing `<C-l>` in insert mode. Supported are all builtins that have prefiltering. Means:
- lsp_workspace_symbols
- lsp_workspace_diagnostics
- lsp_document_symbols
- lsp_document_diagnostics
2021-03-09 21:04:21 +01:00
oberblastmeister
1c80a92d40 fix: error using dictionary as a string when running send_to_qflist (#622) 2021-03-07 08:50:57 +01:00
elianiva
6e941e0ece feat: define scroll speed + smart_send to qflist (#610)
* smart send to qflist

* Previewer scrolling for half window height

* Start doing cleanup in readme

* feat: add ability to define the scrolling speed

* move scrolling action to action.set

* docs: added more docs for actions

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Co-authored-by: Github Actions <actions@github>
2021-03-05 20:13:48 +07:00
TJ DeVries
11674ac021 feat: multi selection. Only integrates with send_selected_to_qflist (#551)
This will not yet work with select actions. More work is needed in that case.

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-27 21:06:04 +01:00
Simon Hauser
ca92ec1a83 fix: a lot of small things and adds more customization for caret (#554)
Attention:
prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one.
The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you.

Feat:
- prompt prefix does no longer always end with space
- selection_caret configurable. Default: `> `
- result_prefix configurable. Default: `  `
- more actions for git_branches
  - <c-t> does track the branch
  - <c-r> does rebase branch
  - also added delete branch action but not configured. See readme on how to do that

Fixes:
- fix docgen ci
- Better error for lsp_workspace_symbols
- better formatting for CONTRIBUTING.md
- move from systemlist to plenary.job
- git branch now supports checkout on remote branches
2021-02-27 16:26:25 +01:00
oberblastmeister
84732d1d78 fix: goto_file_selection performance issues, do not reload buffer if it is already loaded (#541) 2021-02-27 16:01:02 +01:00
elianiva
8b3d08d7a6 fix: scroll misbehaving + fixed jump to middle (#547)
* fix: scroll misbehaving + fixed jump to middle

* add test

* fixx

* fix nil
2021-02-24 21:40:11 +07:00
Hubert Pelczarski
67b0661537 feat: adds M mapping in normal mode (#544) 2021-02-24 03:35:52 +01:00
Simon Hauser
10627e889e feat: advanced normal mode (#463)
Add <count>j and k to normal mode and H and L to jump at top and bottom of displayed results
2021-02-24 02:41:00 +01:00
Simon Hauser
4dd35ef0e1 feat: file browser & refresh interface (#290)
and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status
2021-02-23 22:10:19 +01:00
TJ DeVries
d7c02e3b52 feat: Action improvements (#472)
* feat: replace_map

* feat: Add action_set and action_state

* fix: Move all actions.get_ to action_state.get_

* fix: replace all internal references of _goto_file_selection_edit

* feat: add some docs

* fix: lint

* feat: actions.select

* remove mentions and usage of goto_file_selection APIs

* feat: special case attach_mappings to be overridable and defaultable

* Having goto_file_selection mappings will cause a error

as well as replacing deprecated goto_file_selection methodes

For config and replacing use this instead:
- actions.select_default
- actions.select_horizonal
- actions.select_vertical
- actions.select_tab

Only replacing:
- actions.set.edit -- for replacing all select functions

* adds actions.state.select_key_to_edit_key

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-22 11:30:57 -05:00
Simon Hauser
3a7fa41857 fix: all git builtin respect cwd now (#517) 2021-02-09 18:25:57 +01:00
Tae Sandoval
d6ce595aba feat: Open quickfix list on it's own action (#497)
Given that Telescope has a picker for quickfix items, opening its
window automatically isn't that useful, so this commit removes the call
from send_to_qflist and send_selected_to_qflist. Some users may prefer
the old behaviour though so a new action open_qflist was created.

To open quickfix with one key, you can do this:
```
       ["<C-q>"] = actions.send_to_qflist + actions.open_qflist,
```

Co-authored-by: Tae Sandoval <tssm@users.noreply.github.com>
2021-02-04 15:03:40 -05:00
anott03
5995a8be8f Undo #465 (#469)
We have broke all extension that do some sort of goto_file_selection:replace

Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897
Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213
2021-01-27 17:22:11 +01:00
anott03
ccbb7f5638 fix: move to actions.select as default action (#465) 2021-01-25 19:20:01 +01:00
elianiva
099910dcd9 fix: escape filename for previewer and action (#456) 2021-01-23 19:35:29 +07:00
TJ DeVries
8783bea06e feat: quickfix (#293)
* feat: quickfix (not implemented)

* [WIP]: Wed 09 Dec 2020 11:11:30 PM EST

* somewhat working linked list impl

* getting closer

* might be working

* might be working for real

* works and implemented basic example

* dont forget to close prompt

* fix descending and add more tests

* test fixes

* fix test

* more logging

* Fix some more tests

* Fix logging messing up tests

* fix: lint

* fix: multi select stuffs
2021-01-11 13:29:37 -05:00
oberblastmeister
f750159203 feat: add actions.get_current_line (#391) 2021-01-05 08:50:44 +01:00
Senghan Bright
6a403ddf98 add selected command to cmd-history (#383) 2021-01-04 07:09:55 +01:00
Cedric M'Passi
5a65c676af fix: normal mode toggle issue 2020-12-21 22:23:34 +01:00
Simon Hauser
df6b762b31 Feat: symbols json picker (#303) 2020-12-10 09:22:46 +01:00
Simon Hauser
141dc6d55e ci: Add luacheck ci job (#317)
* Add luacheck ci job

* Fix most of the linting issues

* fixup: lint

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-09 15:46:41 -05:00
Mike Hartington
424b98df15 fix: add back filetypedetect on edit (#283)
* add back filetypedetect on edit

* chore(): apply feedback
2020-12-03 00:37:07 -05:00
TJ DeVries
8d97b2dbdd fix: abstract and remove param 2020-12-01 12:47:43 -05:00
tami5
f3caae5dda fix: builtin runner insert issue (#266)
closes #262 , adds new parameter to action.close. Users know can have more control over the mode after action.close is called.
2020-12-01 14:03:14 +03:00
Cedric M'Passi
6edbd1db5f feat: Make tab toggle between git add and git restore in builtin.git_status() (#289)
Very useful functionality to use git_status for. Now users can add a file or restore it by <tab>

authored by: @cempassi
2020-11-27 14:15:02 +03:00
Simon Hauser
863328a96d feat: Buffers rework (indicators and sorting) (#208) 2020-11-23 10:11:46 -05:00
Senghan Bright
124655608f Register finder (#275)
builtin: Registers finder. view and edit vim registers.
2020-11-23 11:07:53 +01:00
Simon Hauser
8117263027 feat: Add git builtins (#240)
Conni2461 is a great coder and contributor :)
2020-11-16 15:10:26 -05:00
TJ DeVries
985856946e feat: Allow overriding actions from mappings (#248) 2020-11-16 10:58:30 -05:00