We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2c801 commit 7e5d613Copy full SHA for 7e5d613
pythonic.el
@@ -106,6 +106,14 @@
106
(substring alias (min (length (cadr alias-tuple))
107
(length alias)))))))
108
109
+(defun pythonic-has-alias-p (path)
110
+ "Check if given PATH has alias."
111
+ (not (null (cl-find-if
112
+ (lambda (it)
113
+ (or (f-same-p (car it) path)
114
+ (f-ancestor-of-p (car it) path)))
115
+ pythonic-directory-aliases))))
116
+
117
(defun pythonic-python-readable-file-name (filename)
118
"Emacs to Python FILENAME conversion.
119
Take FILENAME from the perspective of the localhost and translate
0 commit comments