GithubHelp home page GithubHelp logo

jrosdahl / iflipb Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 7.0 81 KB

iflipb.el - interactively flip between recently visited buffers

License: BSD 3-Clause "New" or "Revised" License

Emacs Lisp 100.00%
buffer-cycling emacs emacs-lisp

iflipb's People

Contributors

daemianmack avatar hkey avatar jacg avatar jrosdahl avatar kkatsuyuki avatar lionel- avatar pierre-rouleau avatar tarsius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iflipb's Issues

Configuring mini buffer display

Is there a way to customize how the buffer list appears in the mini buffer? I think more visual differentiation would be a good idea, maybe by customizing separators, colors, word space, etc.

iflipb-current-buffer-face appears in Ibuffer

Steps to reproduce:

  1. Call iflip-next-buffer to make some buffer the current iflipb buffer
  2. M-x ibuffer

After doing so, the name of the current iflipb buffer will be shown using iflipb-current-buffer-face inside Ibuffer. I've been able to reproduce this on Emacs 28.1, with iflip as the only external package installed.

new buffers are appended to the end, not the start

hi, there!

I'm relatively new to emacs so if you have an tips for how I can debug this kind of thing on my own in the future I'd love to hear your input :)

when I open a file, replacing the currently opened file in my emacs buffer - either with C-x C-f (spacemacs/helm-find-files) or with helm-projectile-find-file, it becomes the last file in my iflipb stack. That is to say, if I am viewing file A, open file B, then execute iflipb-next-buffer, it takes me to the file before A, and then iflip-previous-buffer takes me back to A. But B is way back at the end.

thanks so much for your help :):)

Window-local buffer lists

Hi!

I often create multiple windows with the intention of using different sets of buffers in each.

So it would be really great if this package could be configured so as to, for each window, start with the buffers most recently displayed in that window, and then show the rest from the global list.

I'm not sure which data to use as the basis for this feature, but there is the quit-restore window parameter, and alternatively it could just use its own history (based on which buffers I switched from and to with iflipb in each window).

Allow user to execute kill-buffer without resetting iflipb state

Where it says:

(not (or (eq last-command 'iflipb-next-buffer)
          (eq last-command 'iflipb-previous-buffer))))

I found it useful to change it to this:

[ something that also checks if last-command is kill-buffer ]

This facilitates cleaning up my buffer list, since I often see a buffer I don't need anymore when I cycle the list using iflipb. With my improvement, I can kill it without losing my place in the list.

(Edited: the first version of the above code was incorrect, but please see below)

Atomic vs. Iterative iflipb-next-buffer

Hi,

I really love the package.
I have a improvement request as similarly discussed in the Wiki: https://www.emacswiki.org/emacs/iflipb

atomic flip
I want to be able to switch between the two most recently used buffers by pressing C-tab and then releasing both key.
Then if I hit C-tab again I get back to the before buffer.

iterative flip
Holding down C and pressing tab repeatedly I can switch between all last recently used buffer.

At the moment I have something like this:

(defun iflipb-atomic-flip () 
  (interactive) 
  (iflipb-next-buffer nil) 
  (iflipb-select-buffer 1))
 
(bind-key* "C-`" 'iflipb-atomic-flip)
(bind-key* "<C-tab>" 'iflipb-next-buffer)
(bind-key* "<C-iso-lefttab>" 'iflipb-previous-buffer)

Do you see a way to combining them into a general C-tab?

~ For Frodo

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.