Skip to content

Instantly share code, notes, and snippets.

@dantheobserver
Created August 9, 2018 23:43
Show Gist options
  • Save dantheobserver/06b5a067f05e4de41afe7d6caf3526b4 to your computer and use it in GitHub Desktop.
Save dantheobserver/06b5a067f05e4de41afe7d6caf3526b4 to your computer and use it in GitHub Desktop.
;; WIP - cycle through buffers only within the existing project
;; MVP
;; * cycle forward and backward
;; *start *next .------- skip ------\ *next
;; --> #<buffer p1> -> #<buffer p2> -/ #<buffer notAproj> `-> #<buffer p3> -.
;; \________________________________________________________________________/
;; if buffer is not a project buffer, do normal buffer nav.
;;
;; Nice to have
;; Possible to only navigate to buffers that aren't open in other split windows
(defun in-project? ()
(projectile-project-p))
(defun cycle--project-buffers ()
"Lists project buffers, nil if current buffer doesn't
represent a project"
(ignore-errors (projectile-project-buffer-files)))))
(defun cylce--all-invisible-project-buffers ()
"Get a list of all project buffers that aren't visible"
)
(defun cycle-forward ()
(let* ((project-buffers (cycle--project-buffers)
project-buffers))))
(defun cycle-backward ())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment