Skip to content

Commit 3d4291b

Browse files
committedFeb 9, 2025·
new command for adding source file
1 parent 1690061 commit 3d4291b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎hog.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; hog.el --- Functions for working with Hog -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2021-2024 Andrew Peck
3+
;; Copyright (C) 2021-2025 Andrew Peck
44

55
;; Author: Andrew Peck <peckandrew@gmail.com>
66
;; URL: https://github.com/andrewpeck/hog-emacs
@@ -470,6 +470,11 @@ The resulting list is of the form:
470470
(find-file (file-name-directory
471471
(car (file-expand-wildcards file-with-path)))))))
472472

473+
(defun hog-add-src-file ()
474+
"Add a source file in the current project."
475+
(interactive)
476+
(insert (completing-read "File: " (split-string (shell-command-to-string "git ls-files --full-name :/*.vhd :/*.vhd :/*.sv :/*.v :/*.svh :/*.src :/*.xdc :/*.tcl")))))
477+
473478
;;;###autoload
474479
(defun hog-expand-glob-at-point ()
475480
"Unglob a globbed entry in a source file.

0 commit comments

Comments
 (0)
Please sign in to comment.