Questions tagged [completing-read]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
78 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. ...
2
votes
3answers
52 views

How can I ask a user to choose from a list of options, while showing her a long list with extra metadata?

I'm writing a package which connects to a remote server for a game. I want to show the list of players, along with their score, and let the player choose one of the players. I thought of using ...
2
votes
1answer
58 views

Read a sentence with completion for words from a collection

Suppose we have a collection of descriptions like this: ("procedural" "functional" "high-level" "low-level" "statically-scoped" "dynamically-scoped") Suppose that we have a database of programming ...
0
votes
2answers
86 views

Using thing-at-point as initial input for bookmark-jump with bookmark+ and helm mode

I am using bookmark+ and helm mode. Debugging a large Fortran code base, I have created some bookmarks that has the same name as some of the Fortran subroutines. Now, I would like to put the cursor ...
1
vote
1answer
118 views

Accept unmatched input in completing-read when using helm

In helm, when executing following code: (let ((things (list "a" "aa" "aaaa"))) (completing-read "Thing: " things)) ... how can I exit the minibuffer and return "aaa"?
1
vote
2answers
268 views

Using ido completion for selecting a repository for magit

I like to use ido for completing file paths and helm for all other things. I have tried setting magit-completing-read-function to magit-ido-completing-read. This doesn't change magit-status behaviour ...
2
votes
1answer
18 views

How can I modify the prompt of another command?

How can I modify the prompt of another interactive command without copy-pasting too much? Can I override only the interactive form?
1
vote
2answers
412 views

How can I create custom menu prompts in elisp?

I have two elisp functions: $ cat ~/myelisp/myoptions.el (defun get-my-name (arg) "Prompt user to enter a string, with input history support." (interactive (list (read-string "Enter your ...
0
votes
1answer
93 views

defun completion and region

Is it possible to write a function with completion that act on region? A mix of: (defun function-style (style) (interactive (list (completing-read "Style: " styles-list))) ... And (...
3
votes
1answer
213 views

Completing read a directory or an element from a list

I'm making some functions to interact with Mercurial. Many Mercurial commands take a repository as an argument, and that argument can be specified either by a path to the root of the repository or by ...
0
votes
1answer
77 views

Complete using match in middle of string - work with pop-up list?

I'm trying to use auto-complete to match in the middle of a string (after the characters ::). I'd like to typing a then hit tab and have the list of candidates appear 'in full' e.g. fruit::apples, ...
0
votes
1answer
231 views

Configure helm--completing-read-default to pick the top match

I have the variable completing-read-function set to helm--completing-read-default. When an external package invokes completing-read, this gives helm-based completion. However, the default item picked ...