Skip to content

Commit

Permalink
Merge pull request #179 from armindarvish/develop
Browse files Browse the repository at this point in the history
remove consult-gh-default-orgs-list from README
  • Loading branch information
armindarvish authored Dec 24, 2024
2 parents 34cb2de + 392d6e3 commit 7197855
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#+title: consult-gh - Changelog
#+author: Armin DArvish
#+author: Armin Darvish
#+language: en

* Development
Expand Down
11 changes: 4 additions & 7 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,9 @@ In the screenshots below, I am generally using vanilla Emacs and a minimal conf
(consult-gh-dashboard-action #'consult-gh--dashboard-action) ;;open dashbaord items using default actions for issue/pr
(consult-gh-default-interactive-command #'consult-gh-transient)
:config
;; set default org list
(setq consult-gh-default-orgs-list (consult-gh--get-current-orgs t))
;; add a hook to update default org ist after switching accounts
(add-hook 'consult-gh-auth-post-switch-hook (lambda (&rest args)
(setq consult-gh-default-orgs-list
(consult-gh--get-current-orgs t))))
;; optionally set favorite orgs
;; (setq consult-gh-favorite-orgs-list '("minad" "oantolin" "karthink" "alphapapa" "systemcrafters"))

(add-to-list 'savehist-additional-variables 'consult-gh--known-orgs-list) ;;keep record of searched orgs
(add-to-list 'savehist-additional-variables 'consult-gh--known-repos-list) ;;keep record of searched repos
)
Expand Down Expand Up @@ -362,7 +359,7 @@ Here is a screenshot showing making anew repository from scratch:
[[https://github.com/armindarvish/consult-gh/blob/screenshots/screenshots/consult-gh-repo-create.gif]]


*Pro Tip*: Consider using =consult-gh-repo-create= as your default function for defining new projects in other workflows for example with =projectile= or =project.el=. I personally use [[https://github.com/armindarvish/consult-omni][consult-omni]]'s =consult-omni-projects= for finding and switching to projects and I have customized that package to =consult-gh-repo-create= for making new projects. This way every time I make a new package it automatically is put on my GitHub as well without me having to think about it!
*Pro Tip*: Consider using =consult-gh-repo-create= as your default function for defining new projects in other workflows for example with =projectile= or =project.el=. I personally use [[https://github.com/armindarvish/consult-omni][consult-omni]]'s =consult-omni-projects= for finding and switching to projects and I have customized that package to use =consult-gh-repo-create= for making new projects. This way every time I make a new package it is automatically put on my GitHub as well without me having to think about it!

Similarly you can use =consult-gh-issue-create= or =consult-gh-pr-create= to create new issues or pull requests.

Expand Down
2 changes: 0 additions & 2 deletions consult-gh-embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,6 @@ CAND can be a repo, issue, PR, file path, ..."
"g P" #'consult-gh-embark-toggle-issue-pin
"g T" #'consult-gh-embark-transfer-issue)



(defvar-keymap consult-gh-embark-prs-actions-map
:doc "Keymap for consult-gh-embark-repos"
:parent consult-gh-embark-general-actions-map
Expand Down
2 changes: 0 additions & 2 deletions consult-gh.org
Original file line number Diff line number Diff line change
Expand Up @@ -11684,8 +11684,6 @@ CAND can be a repo, issue, PR, file path, ..."
"g P" #'consult-gh-embark-toggle-issue-pin
"g T" #'consult-gh-embark-transfer-issue)



(defvar-keymap consult-gh-embark-prs-actions-map
:doc "Keymap for consult-gh-embark-repos"
:parent consult-gh-embark-general-actions-map
Expand Down

0 comments on commit 7197855

Please sign in to comment.