Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filenames]

The tag has no usage guidance.

1
vote
1answer
15 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). ...
1
vote
0answers
62 views

Automatically loading a bibliography file depending on buffer filename

I use org-mode to write a paper, with RefTeX as minor-mode to insert quotations from a BibTeX (.bib) file. RefTeX needs to be told which .bib file to use. This is done by assigning a value to reftex-...
0
votes
2answers
65 views

Org links file name encoding issue

Inspired by John Kitchin's presentation of org-links features in Org-mode 9, I tried to implement a simple functionality for "file" links. Since I am working on several machines, I wanted the link ...
0
votes
0answers
60 views

org-agenda column view: displaying abbreviated FILE property

I would like to display file names in my global TODO list in column view without directories and extensions. (setq org-columns-default-format "%TODO %FILE %ITEM") followed by C-catC-cC-xC-c leads to ...
0
votes
1answer
31 views

How to sort a list of files/directories by hierarchical depth?

I am working on implementing my own feature request -- http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31601 -- to give wdired the ability to handle a dired- buffer that contains an arbitrary list of ...
3
votes
2answers
68 views

How to test if absolute path is a root file/directory

Q:  How to test whether an absolute path is a root file/directory (e.g., at the first level of the hard drive)? I see a few possibilities depending upon whether the file is on Windows or Unix/Linux. ...
1
vote
1answer
102 views

Magit diff with --name-only?

I am browsing the differences between two branches of a repository via git diff --name-only branch1 branch2 I also use the --name-status option sometimes, since I may need to see what sort of ...
-1
votes
0answers
64 views

How can I disable shortened file-buffer names?

When I open a file with a long name emacs shortens the name and appends ~1. DriverBase.hpp is named in buffer as DRIVER~1.HPP. I tried using (require 'uniquify) (setq uniquify-buffer-name-style '...
3
votes
2answers
112 views

Why does thing-at-point not consider plus as a filename character?

Why does thing-at-point not consider + as a filename character? For example: (defun my-get-filename-at-point () (interactive) (message (thing-at-point 'filename t))) and consider the cursor ...
1
vote
1answer
50 views

string splitting (renaming files)

new user here. I am wondering- can somebody walk me through how to do the following: In a given directory I have files that look like this fluc_sk2_556.png even_sk2_922.png I would like, with ...
1
vote
1answer
50 views

File mode name with -mode suffix or not?

I am not sure when I should name file x-mode.el and when x.el. Note that because of established practice mode writer should put (provide 'x) or (provide x-mode) to the end of file and end-users load ...
8
votes
1answer
357 views

How do I unexpand a file name?

Given ~/foo/bar, I can get /home/sds/foo/bar using expand-file-name. However, given /Users/sds/foo/bar, how do I get ~/foo/bar? Use case: I want to copy a file between computers and they have ...
4
votes
2answers
81 views

Increment file name and create a new version of the file

Assume that I am working with a file whose name contains a unique version number for example myfile_03.tex or 03jhcjh.tex and so on. Currently I create a new version of the file by C-x C-w and ...
0
votes
1answer
207 views

Can I exclude .git/COMMIT_EDITMSG from file-name-history?

Is there a way to exclude .git/COMMIT_EDITMSG files from file-name-history? Now that I'm authoring commits with Magit, those commit message files are often the most recent entries in file-name-history,...
2
votes
2answers
125 views

file-truename and tramp

Is these a function that behaves like file-truename on local files, but does not add the /protocol:host: prefix on remote files? Currently if I run (file-truename "./file.ext") while in a remote ...
1
vote
2answers
428 views

How to get completion to ignore filename extensions

It's possible to ask completion to not suggest files with particular file extensions, by: (setq completion-ignored-extensions (append completion-ignored-extensions (quote ...