Questions tagged [ffap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

why does flap prompt me instead of taking me straight to the file?

Why does ffap prompt me instead of taking me straight to the file? there's no ambiguity, the file simply exists. for example ~/work/notes.txt looks like I'm not the only one with the issue
3
votes
1answer
50 views

Offer a nonexistent file in ffap

How can I get ffap to offer a non-existent file? I'm in a buffer with point inside something that looks like some/directory/structure/a_long_file_name.ext, where a directory some/directory/structure ...
1
vote
1answer
34 views

Don't offer non-file-name as a file name in find-file

When opening a file with find-file, the default entry in the minibuffer is the current directory. If I press Down, I see the name of the current file (if the current buffer is visiting a file). ...
0
votes
1answer
84 views

ffap.el currently ignores file path with whitespace. How can I change this behaviour?

When I invoke ffap on the file path that include whitespace, such as "/path/to/dir name/filename.txt", ffap.el stop searching file path before the "/path/to/dir" part. I've checked the ffap.el, but ...
1
vote
1answer
313 views

Combine find file at point and find file in project

I'm very new to customizing Emacs, and haven't written Elisp commands before. I'm struggling to find a command and key binding that combines find-file-at-point and find-file-in-project (or similar), ...
1
vote
2answers
97 views

How to get a string under quotes surrounding the cursor in elisp?

I am trying to write a function that opens a file under the cursor. I need to get the string between quotes that is surrounding the cursor in my elisp function so that I can use that string to call ...
2
votes
0answers
49 views

Make helm-find-files work with `\input{file}` in latex files

If the cursor is on file of a line \input{file} in a latex file, helm-find-files doesn't recognize that I want to open file.tex, however calling ffap does. If I write \input{file.tex} it also works ...
3
votes
1answer
48 views

Force ffap to ignore '<' and '>' in file names

I am using find-file-at-point and it stubbornly selects incorrect file name string in NXML mode: String where I have cursor on the file name: <include>my-file.ext</include> and when ...
8
votes
4answers
467 views

How do I disable ffap (find file at point) when the first two non-space characters in a line are '//'?

In Verilog/C/C++, comments can begin with //. Here's an example comment, //This is a comment I like to use the find-file-at-point feature. If my cursor is on the file name in `include "some_file.v"....