profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/redguardtoo/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Chen Bin redguardtoo working Sydney http://blog.binchen.org C developer in China, Javascript developer in Australia

redguardtoo/emacs.d 1938

Fast and robust Emacs setup.

redguardtoo/find-file-in-project 364

Quick access to project files in Emacs

redguardtoo/evil-nerd-commenter 320

Comment/uncomment lines efficiently. Like Nerd Commenter in Vim

redguardtoo/elpa-mirror 271

Create local emacs package repository. 15 seconds to install 115 packages.

pashinin/workgroups2 253

Workgroups2 - Emacs session manager

redguardtoo/evil-matchit 235

Vim matchit ported into Emacs

redguardtoo/cpputils-cmake 187

Easy real time C++ syntax check and intellisense if you use CMake

redguardtoo/counsel-etags 138

Fast, energy-saving, and powerful code navigation solution

redguardtoo/eacl 79

eacl - Emacs auto complete lines by grepping project

redguardtoo/cliphist 47

Read clipboard history from Parcellite/Clipit on Linux and Flycut on OS X

issue commentpurcell/emacs.d

The order of company candidates is incorrect in Emacs lisp mode

Hi, @purcell
Now we have changed the completion style to (setq completion-styles '(basic partial-completion orderless)) globally, this also affect the completion in minibuffer. Now the behavior is like this: before

I think it is better to set minibuffer completion-styles to use only orderless to get a better experience.
something like this would work.

    (defun sanityinc/use-orderless-in-minibuffer ()
    (interactive)
    (setq-local completion-styles '(orderless)))
  (add-hook 'minibuffer-setup-hook 'sanityinc/use-orderless-in-minibuffer)

Now it the behavior is like this: after

Eason0210

comment created time in a minute

issue commentcompany-mode/company-mode

Company based real imcremental at-the-point drop-down menu for lsp-mode, ispell, and yasnippet.

I don't understand your meaning at all. As I've said, each completion only and must be triggered by M-x company-ispell, regardless which buffer I'm in.

hongyi-zhao

comment created time in 12 minutes

issue commentcompany-mode/company-mode

Company based real imcremental at-the-point drop-down menu for lsp-mode, ispell, and yasnippet.

OK, so does completion work fine in this buffer?

But it doesn't offer dictionary completions in latex buffers? If so, you have a place in your config where you set up a buffer-local value of company-backends in latex buffers. When you find it, you can add that snippet to the function that's executing there.

hongyi-zhao

comment created time in 37 minutes

issue commentcompany-mode/company-mode

Company based real imcremental at-the-point drop-down menu for lsp-mode, ispell, and yasnippet.

The first 10 lines of that buffer are not visible, and they are the most imporant.

hongyi-zhao

comment created time in an hour

issue commentcompany-mode/company-mode

Company based real imcremental at-the-point drop-down menu for lsp-mode, ispell, and yasnippet.

And what does it say after you evaluate (push '(company-capf :with company-ispell) company-backends), which you said didn't help?

hongyi-zhao

comment created time in an hour

startedcaptn3m0/pystitcher

started time in 3 hours

push eventxahlee/xah_emacs_init

Xah Lee

commit sha 026848165ba4e7d9ebb8a5826502d08f0362b84f

not dead yet

view details

push time in 4 hours

push eventcompany-mode/company-mode

Dmitry Gutov

commit sha ccdf6c52e29d3b2b8876db607ab62de314499686

And reindent #1118

view details

Dmitry Gutov

commit sha 1fd1b363eee68e4cdcf0e610005c0bdbf9940604

Edit the docstring #1118

view details

push time in 4 hours

push eventcompany-mode/company-mode

Dmitry Gutov

commit sha b3c2a3a1bddc59a451772a8c4cbde2fd2df2dcbb

Touch up the NEWS entry #1118

view details

push time in 4 hours

push eventcompany-mode/company-mode

YE

commit sha 32386cc98743a96e65d002d2cbec82280f1c7a0c

Refactor and make obsolete company-complete-number

view details

Dmitry Gutov

commit sha 0c2a8e5f8d27c700369500e72afd533b88ecff3b

Merge pull request #1118 from yugaego/complete-nth Rename and document company-complete-number

view details

push time in 4 hours

PR merged company-mode/company-mode

Rename and document company-complete-number

Initially discussed in #1104.

Main points and questions:

  • I could eventually test keypad behavior (hurray!) and got these results on Company's master:

    • M-<kp-%d> completes candidates both with active-map and search-map.
    • <kp-%d> does not. Since search-map explicitly binds <kp-%d> to print numbers, I suppose it'd be quite natural to intent <kp-%d> to work the same way with active-map.
    • Related commit: 43756857.
  • #177 evil mode compatibility is still a question. (But company-complete-number is still in the code.)

  • In the code, I had to put company--add-quick-access-keys function definition before its invocation. With the definition located after invocation, I've spent hours trying to make it work with funcall/quoting, but got either a la "Symbol's function definition is void" errors or no bindings. I suppose the underlying concepts are not fully clear to me yet. Could you hint me how to fix this issue?

  • If there's no restricting conventions or use-cases, maybe rather use company--bind-quick-access-keys? (With probably company--unbind-quick-access-keys counterpart according to what you'd suggested before.)

  • company--add-quick-access-keys doc string is planned to be extended after keys customization is fully implemented. Actually, this commit could be stabilized but postponed for merge, used as a (at least mostly) certain foundation for the next layers of quick-access related changes. Please let me know what would be a preferred approach.

  • Moved company-active-map to ;;; keymaps section to have related definitions closer to each other. (Could be a separate commit for better clarity of the changes history.)

Thanks!

+34 -17

4 comments

2 changed files

yugaego

pr closed time in 4 hours

pull request commentcompany-mode/company-mode

Rename and document company-complete-number

Looking good, thanks! :+1:

I imagined the layout where company--complete-nth would be basically inlined in company-complete-tooltip-row, but this way works too, and it's probably more explicit when we use it the new command later.

yugaego

comment created time in 4 hours

fork mame/minitest

minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.

http://docs.seattlerb.org/minitest/

fork in 7 hours

startedstreetcomplete/StreetComplete

started time in 9 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

What does M-x company-diag say?

hongyi-zhao

comment created time in 9 hours

startedfacebookresearch/AugLy

started time in 9 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

Wonderful. See below:

image

But once I hint RET to insert the result at the point, I must re-run M-x company-ispell again.

hongyi-zhao

comment created time in 9 hours

pull request commentcompany-mode/company-mode

Add company-complete-nth for quick-access bindings

Hi Dmitry, Here's what I've got after working with the code.

These (all?) important points supported:

  • No backward compatibility breaking changes.
  • Names and documentation better (I think) reflect what the function does.
    • Aligns well with the renaming 'numbers' to 'quick-access' term.
  • Extracting company--complete-nth is not necessary, but prepares addition of company-complete-quick-access.
yugaego

comment created time in 9 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

Does M-x company-ispell work?

hongyi-zhao

comment created time in 10 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

I tried with it, but noting appeared.

hongyi-zhao

comment created time in 10 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

Something like this should work:

(push '(company-capf :with company-ispell) company-backends)

Or without :with, if you're fine with only using these two backends in all your buffers.

hongyi-zhao

comment created time in 10 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

From installed dictionaries. Only this is meaningful for document writing. We can't expect all input words are existed in the buffer, obviously.

hongyi-zhao

comment created time in 10 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

Meaning completions from words-in-buffers? Or from installed dictionaries?

hongyi-zhao

comment created time in 10 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

Another issue: can I have a drop-down menu for normal writing/typesetting, just as we have for command completion with company, which is triggered by the threshold of a specific minimum input character number, say, 3, and then incrementally narrowed down as the input sequence increases. See here for detailed discussion.

hongyi-zhao

comment created time in 10 hours

issue commentcompany-mode/company-mode

How to display regexp-filtered results on the incremental drop-down menu?

That's up to the backend. The language server, probably (if you're using lsp or eglot).

hongyi-zhao

comment created time in 11 hours