Code Monkey home page Code Monkey logo

Comments (6)

jrblevin avatar jrblevin commented on August 16, 2024

Thanks for this suggestion. I can see your point, however, it's not clear that this should be the default behavior. Certainly not when one might have several windows open at once.

Given your workflow, when you're ready to open a file taking up the full frame you currently have two options (and both are short):

  1. C-o, C-x 0
  2. RET, C-x 1

from deft.

xin-jin avatar xin-jin commented on August 16, 2024

Yes. I do know how to delete-other-windows. But an option or function to do this automatically would be nice.

I know how to bind a key to do RET and C-x 1 together, but do not know how to just close the window deft created. Do you think it possible?

from deft.

jrblevin avatar jrblevin commented on August 16, 2024

Maybe (delete-window (other-window 1))?

from deft.

xin-jin avatar xin-jin commented on August 16, 2024

Now I realize that a better option may be to use something like other-window-scroll-buffer to show a file in another window (I know little about lisp, but company-mode has a function company-show-doc-buffer that does this). Currently, deft-open-file-other-window seems to occupy one of the windows (and will not revert back to the original buffer when it is done).

What do you think?

from deft.

xin-jin avatar xin-jin commented on August 16, 2024

Hmm, I take that back. I guess one better behavior of deft-open-file-other-window could be to create a new window rather than to occupy an existing window, or probably a new function like deft-open-file-new-window?

from deft.

jrblevin avatar jrblevin commented on August 16, 2024

I'm closing this for now because I'm not sure what to do about this, if anything. If anyone would like to discuss specific ways to improve window handling with respect to C-o and RET while browsing files, feel free to comment here or submit a pull request.

from deft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.