xeft
- Description
- Deft feat. Xapian
- Latest
- xeft-3.3.0.20230913.220528.tar (.sig), 2024-Apr-24, 100 KiB
- Maintainer
- Yuan Fu <casouri@gmail.com>
- Atom feed
- xeft.xml
- Website
- https://sr.ht/~casouri/xeft
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
Usage: Type M-x xeft RET, and you should see the Xeft buffer. Type in your search phrase in the first line and the results will show up as you type. Press C-n and C-p to go through each file. You can preview a file by pressing SPC when the point is on a file, or click the file with the mouse. Press RET to open the file in the same window. Type C-c C-g to force a refresh. When point is on the search phrase, press RET to create a file with the search phrase as the filename and title. Note that: 1. Xeft ignores search phrases shorter than three characters, unless they are CJK characters. 2. Xeft only looks for first-level files in ‘xeft-directory’. Files in sub-directories are not searched unless ‘xeft-recursive’ is non-nil. 3. Xeft creates a new file by using the search phrase as the filename and title. If you want otherwise, redefine ‘xeft-create-note’ or ‘xeft-filename-fn’. 4. Xeft saves the current window configuration before switching to Xeft buffer. When Xeft buffer is killed, Xeft restores the saved window configuration. On search queries: Since Xeft uses Xapian, it supports the query syntax Xapian supports: AND, NOT, OR, XOR and parenthesizes +word1 -word2 which matches documents that contains word1 but not word2. word1 NEAR word2 which matches documents in where word1 is near word2. word1 ADJ word2 which matches documents in where word1 is near word2 and word1 comes before word2 "word1 word2" which matches exactly “word1 word2” Xeft deviates from Xapian in one aspect: consecutive phrases have implied “AND” between them. So "word1 word2 word3" is actually seen as "word1 AND word2 AND word3". See ‘xeft--tighten-search-phrase’ for how exactly is it done. See https://xapian.org/docs/queryparser.html for Xapian’s official documentation on query syntax. Further customization: You can customize the following faces - `xeft-selection' - `xeft-inline-highlight' - `xeft-preview-highlight' - `xeft-excerpt-title' - `xeft-excerpt-body' Functions you can customize to alter Xeft’s behavior: - `xeft-filename-fn': How does Xeft create new files from search phrases. - `xeft-file-filter': Which files does Xeft include/exclude from indexing. - `xeft-directory-filter': When `xeft-recursive' is t, which sub-directories does Xeft include/exclude from indexing. - `xeft-title-function': How does Xeft find the title of a file. - `xeft-file-list-function': If `xeft-file-filter' and `xeft-directory-filter' are not flexible enough, this function gives you ultimate control over which files to index.
Old versions
xeft-3.3.0.20230724.143339.tar.lz | 2023-Jul-25 | 19.1 KiB |
xeft-3.3.0.20230322.153950.tar.lz | 2023-Mar-23 | 19.1 KiB |
xeft-3.3.0.20230320.231326.tar.lz | 2023-Mar-22 | 18.8 KiB |
xeft-3.3.0.20230220.134753.tar.lz | 2023-Feb-20 | 18.6 KiB |
xeft-3.3.0.20230204.153932.tar.lz | 2023-Feb-05 | 18.5 KiB |
xeft-3.2.0.20230130.144533.tar.lz | 2023-Jan-31 | 18.0 KiB |
xeft-3.2.0.20230128.194519.tar.lz | 2023-Jan-29 | 17.5 KiB |
xeft-3.2.0.20230117.85821.tar.lz | 2023-Jan-17 | 17.2 KiB |
xeft-3.2.0.20230115.191153.tar.lz | 2023-Jan-16 | 17.2 KiB |
xeft-3.2.0.20230110.24221.tar.lz | 2023-Jan-14 | 17.2 KiB |