This commit is contained in:
parent
40d1e1d4bb
commit
1a6b8836a3
9 changed files with 63 additions and 33 deletions
26
.forgejo/workflows/ci.yml
Normal file
26
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test config on ${{matrix.node}}
|
||||||
|
runs-on: docker
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: ["20"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup NodeJS
|
||||||
|
uses: https://code.forgejo.org/actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{matrix.node}}
|
||||||
|
|
||||||
|
- name: Install eask
|
||||||
|
run: npm install -g @emacs-eask/cli
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: eask test buttercup
|
||||||
|
|
||||||
|
- name: Uninstall eask
|
||||||
|
run: npm uninstall -g @emacs-eask/cli
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
*.elc
|
*.elc
|
||||||
/.cask/
|
/.eask/
|
||||||
|
/dist/
|
||||||
|
|
|
||||||
10
Cask
10
Cask
|
|
@ -1,10 +0,0 @@
|
||||||
(source gnu)
|
|
||||||
(source melpa)
|
|
||||||
|
|
||||||
(package-file "counsel-projectile.el")
|
|
||||||
|
|
||||||
(files "*.el")
|
|
||||||
|
|
||||||
(development
|
|
||||||
(depends-on "counsel")
|
|
||||||
(depends-on "projectile"))
|
|
||||||
18
Eask
Normal file
18
Eask
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
(package "counsel-projectile"
|
||||||
|
"0.4.0"
|
||||||
|
"Ivy integration for Projectile")
|
||||||
|
|
||||||
|
(website-url "https://git.icejam.ee/maciej/counsel-projectile")
|
||||||
|
(keywords "project" "convenience")
|
||||||
|
|
||||||
|
(package-file "counsel-projectile.el")
|
||||||
|
|
||||||
|
(source "gnu")
|
||||||
|
(source "melpa")
|
||||||
|
|
||||||
|
(depends-on "emacs" "26.1")
|
||||||
|
(depends-on "projectile")
|
||||||
|
(depends-on "counsel")
|
||||||
|
|
||||||
|
(development
|
||||||
|
(depends-on "buttercup"))
|
||||||
9
Makefile
9
Makefile
|
|
@ -1,14 +1,13 @@
|
||||||
emacs ?= emacs
|
emacs ?= emacs
|
||||||
CASK = ~/.cask/bin/cask
|
EASK ?= eask
|
||||||
BEMACS = $(emacs) -batch -l targets/elpa.el
|
|
||||||
|
|
||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
cask:
|
eask:
|
||||||
$(CASK)
|
$(EASK)
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
$(BEMACS) -l targets/compile.el
|
$(EASK) compile
|
||||||
|
|
||||||
.PHONY: all compile clean cask
|
.PHONY: all compile clean cask
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
;; Copyright (C) 2016-2021 Eric Danan
|
;; Copyright (C) 2016-2021 Eric Danan
|
||||||
|
|
||||||
;; Author: Eric Danan
|
;; Author: Eric Danan
|
||||||
;; URL: https://github.com/ericdanan/counsel-projectile
|
;; URL: https://git.icejam.ee/maciej/counsel-projectile
|
||||||
;; Keywords: project, convenience
|
;; Keywords: project, convenience
|
||||||
;; Version: 0.3.2
|
;; Version: 0.4.0
|
||||||
;; Package-Requires: ((counsel "0.13.4") (projectile "2.5.0"))
|
;; Package-Requires: ((counsel "0.13.4") (projectile "2.5.0") (emacs "26.1"))
|
||||||
|
|
||||||
;; This file is NOT part of GNU Emacs.
|
;; This file is NOT part of GNU Emacs.
|
||||||
|
|
||||||
|
|
@ -348,7 +348,7 @@ on `counsel-find-file-ignore-regexp'."
|
||||||
;; We apply `counsel--find-file-matcher' to `cands' so we can
|
;; We apply `counsel--find-file-matcher' to `cands' so we can
|
||||||
;; honor `ivy-use-ignore', but we don't need to filter
|
;; honor `ivy-use-ignore', but we don't need to filter
|
||||||
;; again.
|
;; again.
|
||||||
(counsel--find-file-matcher nil cands))))
|
(counsel--find-file-matcher nil cands))))
|
||||||
|
|
||||||
(defun counsel-projectile-find-file-action (file)
|
(defun counsel-projectile-find-file-action (file)
|
||||||
"Find FILE and run `projectile-find-file-hook'."
|
"Find FILE and run `projectile-find-file-hook'."
|
||||||
|
|
@ -450,7 +450,7 @@ The sorting function can be modified by adding an entry for
|
||||||
("p" counsel-projectile-find-dir-action-switch-project
|
("p" counsel-projectile-find-dir-action-switch-project
|
||||||
"switch project"))
|
"switch project"))
|
||||||
'counsel-projectile)
|
'counsel-projectile)
|
||||||
|
|
||||||
(defun counsel-projectile--project-directories ()
|
(defun counsel-projectile--project-directories ()
|
||||||
"Return a list of current project's directories."
|
"Return a list of current project's directories."
|
||||||
(if projectile-find-dir-includes-top-level
|
(if projectile-find-dir-includes-top-level
|
||||||
|
|
@ -923,7 +923,7 @@ is called with a `\\[universal-argument]' prefix argument."
|
||||||
(projectile--globally-ignored-file-suffixes-glob)
|
(projectile--globally-ignored-file-suffixes-glob)
|
||||||
(projectile-ignored-files-rel)
|
(projectile-ignored-files-rel)
|
||||||
(projectile-ignored-directories-rel))
|
(projectile-ignored-directories-rel))
|
||||||
" "))
|
" "))
|
||||||
(counsel-rg-base-command
|
(counsel-rg-base-command
|
||||||
(let ((counsel-ag-command counsel-rg-base-command))
|
(let ((counsel-ag-command counsel-rg-base-command))
|
||||||
(counsel--format-ag-command ignored "%s"))))
|
(counsel--format-ag-command ignored "%s"))))
|
||||||
|
|
@ -1110,7 +1110,7 @@ The format is the same as in `org-capture-templates-contexts'."
|
||||||
"Switch project action for `counsel-projectile-org-capture'."
|
"Switch project action for `counsel-projectile-org-capture'."
|
||||||
(setq org-capture-templates counsel-projectile--org-capture-templates-backup)
|
(setq org-capture-templates counsel-projectile--org-capture-templates-backup)
|
||||||
(counsel-projectile-switch-project 'counsel-projectile-switch-project-action-org-capture))
|
(counsel-projectile-switch-project 'counsel-projectile-switch-project-action-org-capture))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun counsel-projectile-org-capture (&optional from-buffer)
|
(defun counsel-projectile-org-capture (&optional from-buffer)
|
||||||
"Capture into the current project.
|
"Capture into the current project.
|
||||||
|
|
@ -1576,7 +1576,7 @@ files."
|
||||||
(if (member name counsel-projectile--buffers)
|
(if (member name counsel-projectile--buffers)
|
||||||
(ivy--kill-buffer-action name)
|
(ivy--kill-buffer-action name)
|
||||||
(counsel-projectile-find-file-action-delete name)))
|
(counsel-projectile-find-file-action-delete name)))
|
||||||
|
|
||||||
(defun counsel-projectile-action-find-file-manually (name)
|
(defun counsel-projectile-action-find-file-manually (name)
|
||||||
"Call `counsel-find-file' from default directory of buffer
|
"Call `counsel-find-file' from default directory of buffer
|
||||||
directory of file named NAME."
|
directory of file named NAME."
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
(setq files '("counsel-projectile.el"))
|
|
||||||
(setq byte-compile--use-old-handlers nil)
|
|
||||||
(mapc #'byte-compile-file files)
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
(setq package-user-dir
|
|
||||||
(expand-file-name (format ".cask/%s/elpa" emacs-version)))
|
|
||||||
(package-initialize)
|
|
||||||
(message "ELPA dir: %S" package-user-dir)
|
|
||||||
(add-to-list 'load-path default-directory)
|
|
||||||
|
|
||||||
5
tests/test-counsel-projectile.el
Normal file
5
tests/test-counsel-projectile.el
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
;;; -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(describe "counsel-projectile"
|
||||||
|
(it "always passes"
|
||||||
|
(expect 1 :to-equal 1)))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue