Commit Graph

43 Commits

Author SHA1 Message Date
Farbod Salamat-Zadeh
6b1579741a fix: git stash entry formatting (#1452) 2021-12-06 21:20:37 +01:00
Pranav Rao
3309526566 feat(worktrees): added support for bare repo git operations (#1370) 2021-11-13 14:09:47 +01:00
Simon Hauser
f31ef36293 fix: opts.git_command for files, commits, bcommits (#1374) 2021-10-24 08:30:31 +02:00
Anthony Nichols
5f0ccf1346 feat: support <pattern> for git-for-each-ref (git_branches) (#1248) 2021-09-16 11:58:59 +02:00
thibthib18
b4d6eb9a23 feat: git merge branch action (#1220) 2021-09-10 08:50:58 +02:00
Phelipe
79c2ded6a8 fix(picker): incorrect git stash picker command (#1195)
* fix: should not use git log command in git stash picker

* Update lua/telescope/builtin/git.lua

Co-authored-by: tami5 <65782666+tami5@users.noreply.github.com>
2021-09-02 06:06:05 +03:00
TJ DeVries
4d691fdc23 fix: Should not block on git commands (#1176) 2021-09-01 16:15:37 +02:00
James Trew
f039f60a99 chore: separate commit date & time in git_branches (#1111) 2021-08-12 15:30:10 +02:00
Joshua Cao
5ff6f9ad07 fix: git_bcommit use absolute path for current file (#1059) 2021-08-03 11:04:07 +02:00
Joel Palmer
b742c50bf1 feat: add git reset action for git commits picker (#999) 2021-07-30 00:16:45 +03:00
Simon Hauser
79644ab677 chore: use stylua for formatting (#1040)
* chore: stylua job and config

* reformat with stylua
2021-07-23 11:42:37 -04:00
Simon Hauser
6ac5ee0854 feat: cycle previewers with commit and bcommit already using it (#528)
- new git previewers
- jump to line in bcommit previewer
- vimdiff for bcommits
- dynamic preview window titles
- more previewers documentation

Cycle previewers are not mapped yet. So you need to setup yourself:
```lua
require('telescope').setup {
  defaults = {
    mappings = {
      i = {
        ["<C-s>"] = actions.cycle_previewers_next,
        ["<C-a>"] = actions.cycle_previewers_prev,
      },
    },
  }
}
```

Co-authored-by: Thore Strassburg <thore@weilbier.net>
2021-06-14 21:50:46 +02:00
JINNOUCHI Yasushi
0c1bc129da chore: use plenary.strings and remove strings functions from utils (#690)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-06-14 20:47:33 +02:00
Jose Alvarez
5b6b23a3a2 fix: correctly check output of git worktree command (#882) 2021-06-01 23:27:32 +02:00
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
PolarMutex
0d6cd47990 fix checking for git dir in a bare repo (#757)
* fix checking for git dir in a bare repo

* revert last change and look for worktree

* fix lint error

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

Co-authored-by: Brian Ryall <brian.ryall@udri.udayton.edu>
Co-authored-by: Github Actions <actions@github>
2021-04-22 13:23:42 -04:00
William Boman
3adeab2bed fix: support multiple clients in lsp code actions (#722)
* fix: support multiple clients in lsp code actions

* no goto

* reduce diff a bit

* use displayer, also include lsp client name for each entry

* review comments
2021-04-20 17:48:29 -07: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
Kyoichiro Yamada
d367eb4fd8 fix(git_branches): use the quoted fields instead of json-formatting and fix regressions with #695 (#704) 2021-04-07 17:00:38 +02:00
Kyoichiro Yamada
2e03f67de9 picker(git_branch): show committer, upstream and date (#695)
* wip: rich finder for branches

for: https://github.com/nvim-telescope/telescope.nvim/issues/569

* fix some diagnostics
2021-03-29 21:04:25 +03:00
Jesse Leite
a7fa60411e Fix prompt titles. Closes #OCD. (#675) 2021-03-21 12:44:08 +07:00
elianiva
569ebd43e7 feat: add expand_dir opts for git_status (#591)
* feat: add expand_dir opts for git_status

* make -u as the default
2021-03-02 19:41:01 +07:00
Simon Hauser
b08f65c5fd feat: better display for git_branches (#586) 2021-03-01 22:36:37 +01:00
ThePrimeagen
50ae42b158 feat: delete mappings for git_branches (#578) 2021-03-01 22:18:36 +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
Tom
49650f5d74 feat: allow git_* to use vim pwd over git root (#563)
with opt use_git_root = false
Examples:
- Telescope git_files use_git_root=false
- Telescope git_commits use_git_root=false
- Telescope git_status use_git_root=false
2021-02-27 12:04:30 +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
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
Massimo Redaelli
9f58834d04 feat: allow to list files in git submodules (#329)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-16 12:07:21 +01:00
Simon Hauser
e08a5b1331 feat: show git log for remote branches (#428) 2021-01-15 09:27:46 +01:00
JINNOUCHI Yasushi
95264ada79 fix: git_branch only remove remotes/origin part (#423) 2021-01-12 09:06:16 +01:00
Cedric M'Passi
9503603f88 feat: Add highlight to builtin.git_status (#388) 2021-01-04 23:04:58 +01:00
tamago324
e555cd375f feat: all entry_makers are now overridable and icons for builtin.buffers (#364) 2020-12-27 17:15:52 +01:00
Simon Hauser
c276db06e2 Feat: Opt in vim buffers for previewers (#298)
Enable with:
require('telescope').setup {
  defaults = {
    file_previewer = previewers.vim_buffer_cat.new,
    grep_previewer = previewers.vim_buffer_vimgrep.new,
    qflist_previewer = previewers.vim_buffer_qflist.new,
  }
}
2020-12-09 16:58:22 +01: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
YIQUN
319e8ed892 Fix: cwd detection of builtin.git_ (#264) 2020-11-19 09:03:08 +01:00
YIQUN
e16712f22e Fix: set_opts_cwd function will only call git once (#256) 2020-11-17 11:35:06 +01:00
YIQUN
5863e49773 Fix: check if opts.cwd is a git directory, not opts (#252) 2020-11-17 08:21:58 +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