Questions tagged [completion]

refers to TAB completions (or other keystroke shortcuts) to selecting the target element from a list of many. Often useful for menus, navigations, searching, jumping, folding, and other forms of "narrowing" the list of available choices.

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

Multi-directory tab completion for find-file?

I am frequently diving through many layers of directory hierarchies (thanks, Java) to find files named like this… java/test/com/company/thing/test/testy/testier/testier/Tester.java The main issue ...
0
votes
0answers
11 views

How can helm be configured to return a nil result when the user cancels?

This function selects one of the items in projectile's project list, but when I cancel the select using Ctrl-G an item is still returned. Whatever candidate the selection is on is returned even if the ...
0
votes
0answers
19 views

Code completion for structure with preprocessor selection statement

I'm using Rtags and Irony as backends for company. They work but with some glitches. For example, given this code segment: #include <stdio.h> #include <signal.h> int main() { struct ...
2
votes
2answers
48 views

Display summary information on command when running Meta-x

Since I'm new to GNU Emacs (version 26.1 running on Debian Stable) I'd like to get some information when invoking a command using Meta-x. Currently I'm only able to see a list of possible completions ...
1
vote
2answers
49 views

completion-ignored-filenames?

Is there a way to do ignore whole file names the same way as 'completion-ignored-extensions' ignores filename extensions? For example, I would like to blacklist __pycache__/, so that if the default ...
1
vote
0answers
44 views

Completion modes are too intrusive. Is there an abstract API to fine tune usage per mode?

So I'm looking for coding technique / code organization to make completion system pluggable for particular my mode, choice shouldn't affect other modes or preferences. At the moment I use completing-...
0
votes
1answer
115 views

Using company mode to complete sentence

As I understand, company mode can help complete the word, but not a sentence. I would like to complete a fragment of sentence. I would like to complete fragment e.g. "portal and hepatic doppler&...
1
vote
0answers
24 views

How to define interactive function that will not auto-complete?

If I do this: (defun foo-bar-baz () (interactive) (message "foo-bar-baz")) And then M-x foo-baz RET (note no "bar") then completion matches foo-bar-baz and it executes. Is ...
1
vote
1answer
26 views

Completion with help

I'm using completing-read to get an argument for an interactive command. The argument is a non-intuitive word (required for my application), so the completion list looks like this: Possible ...
0
votes
1answer
54 views

Emacs company-css, where is the completion of css values?

Company-mode completion seems a little weak in emacs. Is it my configuration? Property completion seems simple enough: strong { color: red; /* <= color is the property */ } Where red is the ...
0
votes
0answers
24 views

Notmuch - configure preferences for address completion

When hitting TAB in notmuch to complete email addresses, I often get a long(ish) list of possible completions, forcing me to cycle through it looking for the correct one. Is there a way to order the ...
1
vote
1answer
57 views

Replace a character with a string as it is typed

I would like to do the following: activate some mode so that whenener I type the $ character in my buffer, it immediately gets replaced by <m>. Even better: when I type $ it puts <m></m&...
1
vote
0answers
33 views

Custom keyword list for auto completion M-/?

I make use of M-/ for auto-completion. Is it possible to supply a custom list of frequently used keywords (e.g. for a niche programming language) to be loaded at Emacs startup? I could save the ...
1
vote
1answer
32 views

How to disable “/” 's default behavior on the F interactive mode?

I use interactive mode with Ivy and Dired for interactively creating new files, like so: (evil-local-set-key 'normal (kbd "t") (lambda (file) (...
1
vote
0answers
46 views

Why is completion not working?

I have emacs installed on two machines, with both installs using a similar spacemacs config. On both, C-M-i is bound to the command complete-symbol. I am editing different org files on the machines, ...
0
votes
1answer
34 views

Can I navigate Bookmark+ bookmarks like I can with e.g. helm-bookmark?

I am experimenting with Bookmark+ and would like to be able to navigate to a bookmark using a similar workflow to that which I currently use to navigate bookmarks. For example, previously in order to ...
0
votes
1answer
48 views

Is there a way to have ivy display a tooltip for the function at point?

Ie, suppose I press M-x org-agenda and ivy says there's 131 matches, of which I recognize maybe 10. It'd be useful to say, after a .2 second delay, display a tooltip for the function at point. Is ...
1
vote
3answers
59 views

imenu to copy the target instead of jumping to it?

Is it possible to use imenu (or another package) to copy the target (specified by a regex) rather than jumping to it? This is an effort for tackling the question: How to list or autocomplete pandoc-...
0
votes
1answer
64 views

Completion of sentences stored in a file

I know this question is similar to completion of a sentence rather than word but I ask anyway since I suggest another way of storing what is supposed to be auto-completed. Suppose I stored some ...
0
votes
1answer
59 views

Emacs completion through symlink (OSX)

I have a symlink on my Desktop that points to my Dropbox folder. Clicking on this link takes me through to Dropbox, which is located elsewhere. But if I try navigating to ~/Desktop/Dropbox using Emacs,...
0
votes
0answers
38 views

How to suggest org-link description when completing?

I have a custom org link created using org-link-set-parameters. If I use org-insert-link and complete it will use the :complete function from the parameters to get the link. However I haven't found a ...
2
votes
0answers
27 views

How to merge the completions of two completion-at-point-functions?

In company-mode, you can merge completions by listing them together in a list. I would like to do a similar thing, where if I have two completion-at-list-functions setup, instead of trying one after ...
0
votes
0answers
17 views

SLIME fuzzy completion does not return me to the original buffer (Mac OS X)

I've noticed an annoying problem when using SLIME under Mac OS X (Catalina 10.15.4). I have fuzzy completion configured and when a completion buffer pops up and I make my selection (by pressing Tab), ...
4
votes
1answer
336 views

Icomplete and Ido: Why are both in the codebase?

My question is pretty simple, and that is why Ido and Icomplete are both available in emacs. I find it very strange that the two modes exist together, seeing that they both do what is essentially the ...
4
votes
1answer
85 views

Escape Swiper even when match is required

Swiper automatically moves to the next location that matches your current input. You can press RET to return to the main buffer when the search is successful. When you type in a word that does not ...
1
vote
1answer
40 views

How to prevent the completion window from hogging up nearly whole frame (-3 lines)?

One or the other of the various Emacsen has been, at different times, my one and only editor on all *nix systems¹. I usually use one X window per buffer, so I can arrange windows side by side, or use ...
0
votes
1answer
30 views

Is it possible to do word completion on `isearch` shell?

I want to apply word completion on isearch shell. When I press tab ^I shows up on the shell instead of completing the word and show up a window for suggestions. => Is it possible to complete a word ...
0
votes
0answers
13 views

Autocompletion in R files set `truncate-lines` to `t` (spacemacs)

I use the ess layer in spacemacs to work with R files. After an autocompletion, the variable truncate-lines is set to nil. Furthermore, during the time the complexion box is on the screen, the lines ...
1
vote
0answers
90 views

Matlab-shell autocompletion error

For some reason emacs matlab-shell is returning an error when running autocompletion. The debugging output for a completion of "load Da[TAB]" is shown below. The closest thread that I've ...
0
votes
1answer
49 views

Configure the delay before window showing command completions is shown

When I start entering a command and pause, this helpful window pops up at the bottom: When I don't pause, it doesn't show up. But sometimes, it takes more time to complete a command that I know, e....
1
vote
1answer
31 views

Help; how use Persistent Sets of Completion Candidates for search?

I want to use a set of files inside my directory ~/Dokumente to search for changes in title, content. So I saved such a set of file names persistently, using C-} during file-name completion with ...
0
votes
1answer
32 views

Completing underscored words without making _ a word character

I would like to use evil-complete-previous (or whatever) to complete strings_such_as_this, which is by default not possible. It is possible after (modify-syntax-entry ?_ "w"), but this has the ...
0
votes
1answer
108 views

Can icomplete mode be enabled selectively, only for certain commands?

I'd like to use icomplete-mode for certain commands, but not for everything. Is there a way to enable it for just a list of commands I specify?
1
vote
2answers
135 views

How to change the company complete backend based on the current syntax?

I would like to have natural language completion (company-ispell for e.g.) but only when editing comments. How should the company back-end be swapped out when editing commensts?
1
vote
1answer
92 views

Programmed completion in minibuffer

I can read a string in the minibuffer, with completion, using completing-read: (completing-read "Chose one: " '("Han Solo" "Chewbacca" "Lando Calrissian")) I would like to use my own completion ...
2
votes
2answers
102 views

completion of a sentence rather than word

I use emacs-org for my "non-programming" work. I need a completion framework. Present completion framework like completion.el, dabbreav, pabbrev and company provide single word completion. I need ...
0
votes
1answer
40 views

Company-mode complete custom matches not necessarily prefix

If I type character a, can completion-at-point be used to show possible matches from this list a ɑ æ ɐ ɑ̃, even without matching a prefix?
0
votes
0answers
25 views

How to prevent `TAB` from adding a newline for each new address (To/Cc), in Gnus + BBDB?

When I'm adding a comma and a new address at To or Cc or Bcc in Gnus, there is a new line added when completing the address. I end up with: My Address <address@example.com>, Another Address <...
0
votes
0answers
27 views

No filename completion with Eglot and R

Using ESS with emacs I have automatic filename completion. So, when I am withing "./" and hit TAB, it shows me a list of files and directories within that directory. However, after installing eglot ...
1
vote
3answers
56 views

Can I Jump to bookmark using a pattern?

Using Spacemacs, if I SPC f r to search for recent files I am prompted for a pattern. I can enter e.g. a value of our which will match a file named Journal.org. However if I do C-x r b to jump to a ...
0
votes
1answer
45 views

Is there some completion plugin that can display the details of the currently selected item below the completion list?

When you use a dialog such as with C-x b, C-x C-b or C-x k the columns are usually not long enough, especially with long file names and directories. Is it possible to have a detail view below the ...
1
vote
1answer
43 views

Autocomplete files/paths while typing in any mode or fundamental mode, like bash does at prompt

After opening up an empty file named ~/work/aback using emacsclient -nw ... . I type in ~/huTAB in the body of the file. how can I get autocompletion candidates shown? In this case, any files/...
1
vote
3answers
47 views

Howto cache completing-read inputs

Is there a simple framework for making previous inputs of completing-read persistent across emacs restarts? For instance if I start with: (completing-read "test:" '("a" "b") nil nil) and enter "c" ...
1
vote
0answers
20 views

completion-kill-region breaks rectangle-mark-mode

When using dynamic completion, rectangle-mark-mode is broken, in so far as C-w no longer respects just killing the rectangle but instead kills the usual full (non-rectangular) region. M-w on the ...
0
votes
1answer
56 views

How to automatically press the Tab key to execute minibuffer-complete after executing imenu?

I first set up this key binding : (global-set-key (kbd "<f4>") (lambda () (interactive) (other-window -1))) When I use imenu I always have to perform the following steps: Step 1: Press M-x ...
2
votes
0answers
230 views

company doesn't pop up completion list automatically

I'm trying to get company mode to automatically trigger the pop-up with a list of possible completion. Unless I'm doing this wrong this is not the default behaviour? Current I have to run M-x company-...
1
vote
1answer
41 views

How can I make emacs respect “completion-ignored-extensions” when I hit TAB in the “Find File” buffer?

When I hit C-x C-f to open the "Find file" thing, I can hit TAB to open up a buffer called *Completions* that lists the possible filenames with the given prefix. Sometimes I have a bunch of backup ...
1
vote
1answer
56 views

how enable emacs bookmark plus autocompletion

How do I make the C-x j j prompt dynamically autocomplete? So when I try "qu" emacs autosuggest "query.rb" from my bookmarks , without me having to press tab. Dynamic autocompletion works when I do C-...
0
votes
1answer
115 views

How to refresh dabbrev candidates displayed by company after each save

I've been using Ivy Irony Company for some time and it works great on all libraries I included in my C++ program so far, but I've noticed Ivy rarely auto-completes my user defined classes, objects, ...
2
votes
1answer
225 views

How to tell Ivy to use completing-read-default for specific command? (org-tags-view, in particular)

Ivy (+swiper +counsel) is very cool and I use it constantly for an ever growing number of tasks. But there are some cases in which the requirements of a certain completion task defeats Ivy's logic. ...

1
2 3 4 5