Comments (3)
Currently, no, but I'd be happy to add such a feature. Please also see the discussion in #22.
I'm not an expert on window management, so I don't quite know what the right "Emacs way" to implement this is. For example, I wouldn't quite know how to implement (1) above. If you're able to submit a patch, I will certainly take a look.
from deft.
Thanks for the quick response! I don't know any Elisp (or any other programming languages) sadly. I'll be sure to have a look at #22.
from deft.
Emacs has a general mechanism for deciding how windows are split and/or reused. See How display-buffer works in the Emacs manual for more. You can tune this behavior by customizing display-buffer-alist
-- see Choosing a Window for Display.
The display-buffer-alist
lets you define rules for how to display buffers based on the buffer name. That may not help here because your deft buffers can have arbitrary names. However you can use this same mechanism to define your own variations of deft-open-file-other-window
. For example, here's a command that will open the file in a window below the current window.
(defun my-deft-open-file-below ()
(interactive)
(let ((display-buffer-overriding-action
(cons
'(display-buffer-reuse-window
display-buffer-use-some-window
display-buffer-below-selected)
nil)))
(deft-open-file-other-window)))
This works by temporarily changing the default display action list before calling `deft-open-file-other-window. The specified action list is:
- If the buffer is already displayed somewhere, reuse that window.
- Otherwise use an existing window.
- Otherwise split to create a new window below the current one.
from deft.
Related Issues (20)
- Deft hangs on emacs 28 HOT 12
- Right to left text in file causes wrong alignment of date and time stamp in Deft file browser.
- Second search can not jump to accurate position
- Support custom filters? HOT 1
- How to make the title and content not on the same line๏ผ HOT 2
- How to make deft work with files without file extension?
- docu for `deft-file-naming-rules` missing HOT 1
- How to use `deft-file-naming-rules` with `usepackage` HOT 1
- Display file at point when using deft-find-file HOT 1
- Adding optional Xapian support HOT 12
- Incongruity between default file type and default summary generation
- Super slow
- Fix to make deft faster (also on older emacsen) HOT 3
- configure list of files and format to new notes
- deft--org-complete is generating broken links HOT 1
- Executing shell commands on files
- New file names
- Org-rifle vs deft HOT 1
- creating new files with Deft using prompt for title HOT 4
- deft-find-file: how to disable defaulting to "find-file" and instead use deft-new-file-format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deft.