Commit Graph

157 Commits

Author SHA1 Message Date
Lin Sun 95c66b9010 layers/+completion/helm: use default helm fuzzy function, not depend on the helm-flx 2022-10-19 20:16:17 +02:00
Lucius Hu 7706f0ffd2
helm: remove unnecessary setting on xref-show-xrefs-function
For `helm` users, we set `xref-show-xrefs-function` according to Emacs version.
This is a two-fold unnecessity:
- We now only support Emacs version > 27, so `hellm-xref-show-xrefs` should not
be used anyway.
- `hem-xref` already set this variable according to Emacs version. See
[here][ref].

This commit removes this.

ref: ea0e4ed8a9/helm-xref.el (L192-L197)
2022-08-04 18:50:26 -04:00
Maxi Wolff ee95121e6b
[helm] Fix dangerous implementation for helm-use-fuzzy
This variable caused Spacemacs to set all helm sources
to use fuzzy matching independently of whether this
was supported by the source.

This handling was very dangerous as using fuzzy for an
incompatible source can have all kind of side effects
causing unique bugs which will never be fixed by the
source package authors.

Therefore I have changed the implementation to
activate fuzzy matching via helm variables instead,
which should make sure we only activate this for
compatible sources.

If sources are found which do not longer do
fuzzy matching, the individual source should be
improved to support this feature and declare it's
compatibility towards helm.

We cannot fix helm in Spacemacs, instead the respective
package must be patched. Everything else is a maintenance
nightmare!

Fixes #15124
2022-06-19 19:43:04 +02:00
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
Maxi Wolff 39b9def6d5
Fix variable is void warnings at startup
which were caused by invocing
evilified-state-evilify-map in the init section.
2022-05-29 15:04:18 +02:00
Daniel Nicolai f4b04bcf22 Add obsoletion notification evilified-state-evilify 2022-05-29 14:05:07 +02:00
Bryce a69aba732a
Fix function quote warning (#15446)
* Fix function quote warning

Change `'` to `#'`, resolves #15443.

* Fix quoting in `helm-spacemacs-help.el`, add docstrings, fix action

These changes hopefully fix #15443

- Add docstrings to the lambdas
- Change selected action for `<S-return>` to the sixth action, to install the
  layer. This change makes the action conform to the removed comment.

  > `;; Add layer`

* squash! Fix function quote warning, fix helm action

- Resolve #15443
- Add docstrings to lambdas
- Fix index of helm action for layer install (the actions are zero-indexed)
2022-05-11 19:40:19 +02:00
Dan Kessler d79b12e7b4
Replace alist helm sources with proper helm sources (#15364) 2022-04-04 14:51:01 -04:00
Dan Kessler 75c30eed0d
[helm] fix typo in helm-ls-git (#15411) 2022-03-16 15:59:54 -04:00
Alfonso Montero d66548fd04
[completion] Fix readme markup. (#15410) 2022-03-16 15:10:42 -04:00
Lucius Hu 1541eed6bd fix messed up keybindings in helm-ag-map 2022-01-12 13:14:44 +01:00
Lucius Hu d7f9eb6342 Update minimum supported emacs version to 27.1 2022-01-01 14:32:46 +01:00
Rodrigo Virote Kassick 889f33216e helm-find-files-history requires prefix argument
Calling spacemacs/helm-find-files with prefix would cause an error
instead of popping helm-find-files-history before helm-find-files
2021-11-02 22:05:12 +01:00
duianto 431dfd5ad9 [docs] Update completion layer install notes
The other completion layers, need to be:
- removed
- commented out
- or listed before the active completion layer
2021-07-26 15:49:42 +02:00
Thanh Vuong 6121a5807b [compleseus] new completion layer consult embark orderless selectrum/vertico
Built on consult embark orderless selectrum/vertico.

It's been working ok. Basic features are in, let's merge it and let our community
improve it togegher :)
2021-07-26 10:48:20 +02:00
Dominik Schrempf 54cb40b9ca [helm] Add `S-RET` keybinding for helm modes to open in other window
Remove `C-o` keybinding from helm-bookmarks.

Add `S-RET` keybinding to open file/buffer/bookmark in other window for
helm-files helm-buffers and helm-bookmarks.

Advantage: Consistent behavior. It is pretty cumbersome to use the persistent
action provided by helm to open files/buffers/bookmarks in the other window.
2021-05-17 22:07:28 +02:00
Daniel Nicolai b3c78297fb Add describe evil ex-command functionality
For introspection purposes it can be nice to have this functionality. Also this
function can be used to discover which ex-commands are available.
2021-04-15 22:03:59 +02:00
syl20bnr 97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Ivan Yonchovski 599a9bb278 [helm] avoid duplicates in `helm-M-x' history 2021-02-20 22:00:26 +01:00
Ivan Yonchovski 1d0cd56c17 Revert to default value of helm-swoop-speed-or-color
- having font-lock enabled for swoop buffers is really slow
2021-02-20 21:59:35 +01:00
Thanh Vuong ae65f3cedd
Fix #14213 remove dash and ht from core libs
- delete dash and ht in core
- reimplemented all ht functions we need in `spacemacs-ht.el` and use them
- add dash to spacemacs-bootstrap
2021-02-07 22:22:39 +01:00
Daniel Nicolai dc7b04dc66 Implement C(-S)-tab buffer switch in Helm layer
Equivalent to PR #14287 for ivy-layer
2021-02-03 22:36:50 +01:00
duianto a82d2292b6 [base] Fix void helm-use-fuzzy
problem:
The spacemacs-completion layer defines the variable:
helm-use-fuzzy

But the spacemacs-base distribution doesn't use the
spacemacs-completion layer by default.

helm-use-fuzzy is used in the helm layer.

When a helm buffer is opened, for example: `SPC SPC`
Then a warnings buffer opens:
>Error (use-package): helm/:config: Symbol’s value as variable is void: helm-use-fuzzy

solution:
Make sure that helm-use-fuzzy is bound and true.
2020-12-30 20:54:00 +01:00
Keshav Kini ca7e66ba98 Revert helm-ag/helm-grep binding of RET to default
Currently 'helm-ag-mode-jump-other-window is bound both to RET and to C-o (its
original default binding), while 'helm-ag-mode-jump isn't bound at all (its
original default binding is RET).  This commit removes our customization so that
both 'helm-ag-mode-jump-other-window and 'helm-ag-mode-jump have bindings in the
mode.

The same change is also made for the analogous helm-grep functions, for the same
reason.
2020-11-27 19:19:36 +01:00
Lucius Hu 3c35407968
Minor changes on `helm` layer (#14088)
* Added `helm-ag-success-exit-status` when using `rg`

It's been advised by the upstream of `helm-ag` to set
`helm-ag-success-exit-status` to `'(0 2)`.

This commit adds this.

ref: https://github.com/emacsorphanage/helm-ag#helm-agel-with-other-searching-tools

Signed-off-by: Lucius Hu <lebensterben@users.noreply.github.com>

* Use `magit-status-setup-buffer` instead of `vcr-dir`

This is suggested by the package itself.
Ref: 4da1a53f2f/helm-ls-git.el (L184-L189)

Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2020-10-26 23:11:54 +01:00
Boris Sergeyev 3e033e39f6 [helm] helm-swoop, ignore `helm-full-frame' and `pop-up-windows'
because current implementation does not support full-frame usage:
see https://github.com/syl20bnr/spacemacs/issues/2157
2020-10-22 19:49:49 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Nicholas Kirchner 516da8dfbd [helm] Add the helm-org package so that helm-spacemacs-faq works
There is a (require 'helm-org) directive in helm-spacemacs-faq.el
which is triggered by the key sequence 'SPC h f'.
2020-09-08 11:03:55 +02:00
Ivan Yonchovski 182bf1fe15 Do not enable fuzzy matching for locate if it is not wanted 2020-09-04 22:46:03 +02:00
syl20bnr 52ec07bb44 [core] Fix installation of unused layer dependencies after SPC h SPC
Fix bug where layer dependencies of all layers (even the unused ones)
are installed after SPC h SPC and then SPC f e R
2020-08-29 21:51:52 -04:00
duianto 5150ac6c50 [helm] Hide helm-ff-cache-mode mode-line indicator 2020-07-18 09:40:14 +02:00
Maximilian Wolff d4a590a2fd
[helm] Fix helm with universal argument 2020-07-12 10:18:25 +02:00
Miloš Mošić d4634b5711 Fix incf causing an error message
This was the only place where `incf` was used instead of `cl-incf`,
it fixes the "Symbol’s function definition is void: incf" error
2020-06-24 23:15:53 +02:00
Maximilian Wolff c7ed2fc597
[helm] Provide fuzzy matching for Helm-M-x
Following the advice from duianto #13100 we are
setting completion-styles for helm-M-x to include
the emacs version specific fuzzy strategy as last
resort.

Before no fuzzy matching occured within command
searches.
2020-05-11 12:36:56 +02:00
duianto 27178f23e9 Fix helm-spacemacs-help-faq, SPC h f
The function: helm-org-get-candidates was removed upstream.

Improvements:
Recenter the target candidate.

Reversed the helm headings list, to match the order of the
questions in FAQ.org, so that the Common questions are
listed first.

Removed the : (colon) after the heading: How do I
in FAQ.org, to match the other parent headings.
2020-01-25 17:37:47 +01:00
Richard Kim 278be41010 [helm] Created spacemacs/helm-dir-do-grep to fix issue #13167
This is used if someone does not have ag, pt, rgrep, etc.
2020-01-20 15:53:20 +01:00
Zach Latta 1d2a1fa6e4 Fix capitalization of GitHub
Change instances of "Github" to "GitHub".
2020-01-20 09:14:12 +01:00
Jacek Swierk cefcce2caa
[helm] Fix rg interaction with its config file
If a user uses ripgrep persistent configuration file that sets options
helm overrides the argument parser for ripgrep might incorrectly parse
the command line used by helm.

The problem is encountered whenever an argument option occurs multiple
times and the last one is of this form: '--arg value' or '-a v'. If that
last argument is followed by the positional argument (input) then its
value will be treated as the input resulting in error due to too many
positional arguments.

In other worlds, this would fail to be parsed correctly:
    rg --max-columns=10 --max-columns 20 input
    rg --max-columns 10 --max-columns 20 input

While this works as expected:
    rg --max-columns=10 --max-columns=20 input
    rg --max-columns 10 --max-columns=20 input

The solution would be to use arguments in the form of '--arg=value'
which will never be treated as a positional argument.

Fixes #10953
2020-01-02 23:18:36 +01:00
duianto 68a2f37670
Fix helm-find-files-edit action `C-c C-e` 2019-12-20 18:39:11 +01:00
kimr da80634370
converted cl to cl-lib 2019-12-14 20:20:51 +00:00
Brian Wignall 4df6c9035f
Fix typos 2019-12-05 22:23:04 +01:00
duianto 979f4db640
[helm] Fix searching in projects with C-s from SPC p p
Fixes #11878

The issue seems to have been caused by helm making sure that
the functions that are called with: helm-exit-and-execute-action
are actions.

Ensure action is available before running it
d6dfb8f1e3
2019-12-05 22:17:11 +01:00
duianto 6649e78f3e
Document helm and ivy colors/faces key bindings
Helm:
SPC C l   calls helm-colors
SPC h d F calls spacemacs/helm-faces

Ivy:
SPC C e   calls counsel-colors-emacs
SPC C f   calls counsel-colors-faces
SPC C w   calls counsel-colors-web
SPC h d F calls counsel-describe-face

Thanks Miciah for the SPC h d F suggestion.
2019-12-03 22:21:42 +00:00
Maximilian Wolff dd7a5d98be
Revise helm recompile package action and bind recompile-elpa
The newly introduced function to compile an elpa package
was very much redundant with the existing recompile-elpa function.

I have adapted recompile-elpa so that it can be used for the helm action too.

In addition I have bound recompile-elpa to `SPC c C-c` to allow users to
easily recompile their entire elpa directory if the need arises.

I have also removed the error handling in the helm action in favor of
standard error reporting via the *Compile-Log* buffer.
2019-11-24 02:07:15 +01:00
Gia Thanh Vuong 94de754504
[core] [helm] add action to recompile an elpa package
How to use: `SCP h p` select package then `F3` or `C-z` and choose `Recompile`

Motivation: Some packages when compiling need other packages to be loaded first.
The pacakage maintainers should make sure of this requirement but sommetimes
they don't. It also doesn't help when Spacemacs is lazy loading and compiles
updated pacakges on startup. So the manual fix for this problem is recompile the
package once Spacemacs has fully loaded. This requires user go to the package
install location to delete elc files and then do a `spacemacs/recompile-elpa`.
This commit will do that chore for them.

This will make fixing the problem with `org-plus-contrib` or `dumb-jump` update
every now and then easier.
2019-11-23 23:40:50 +01:00
duianto 5bcc96e9a9 [helm] Add helm-ls-git-ls to SPC g f f
The HELM Lsgit buffer has three sections:
- Git status (files: modified, deleted, etc.)
- Buffers in git project
- Git files
2019-10-28 21:26:04 +01:00
deb0ch 6857914441 completion: add command for unfiltered buffers list under SPC b U 2019-09-08 10:19:10 -04:00
deb0ch 22713541f8 completion: filter helm-mini with useful/useless buffers regexp 2019-09-08 10:19:10 -04:00
Junxuan 6b2f849efd update helm-xref to set the correct xref-show-xrefs-function
helm-xref currently provides two functions and the user is expected
to use the correct one based on their emacs version. The lazy loading
logic has to be updated to set the correct xref-show-xrefs-function.
2019-08-05 20:34:04 +02:00