Skip to content

Commit 3ae5d06

Browse files
author
Chen Bin
committed
handle ts/js styled componets file name
1 parent d0ddbf8 commit 3ae5d06

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎find-file-in-project.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Copyright (C) 2006-2009, 2011-2012, 2015-2018
44
;; Phil Hagelberg, Doug Alcorn, Will Farrington, Chen Bin
55
;;
6-
;; Version: 6.2.1
6+
;; Version: 6.2.2
77
;; Author: Phil Hagelberg, Doug Alcorn, and Will Farrington
88
;; Maintainer: Chen Bin <chenbin.sh@gmail.com>
99
;; URL: https://github.com/redguardtoo/find-file-in-project
@@ -1018,8 +1018,7 @@ You can override this by setting the variable `ffip-project-root'."
10181018
;; extra effort for javascript like language
10191019
;; "./lib/A" could mean "./lib/A.js" or "./lib/A/index.js"
10201020
((and (or (derived-mode-p 'js-mode)
1021-
(memq major-mode '(typescript-mode)))
1022-
(string-match-p "^[^.]*$"(file-name-nondirectory file)))
1021+
(memq major-mode '(typescript-mode))))
10231022
(dolist (ext '(".ts" ".tsx" ".js" ".jsx"))
10241023
;; guess physical path
10251024
(cond

‎pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
name=find-file-in-project
3-
version=6.2.1
3+
version=6.2.2
44
pkg=$name-$version
55
mkdir $pkg
66
cp *.el $pkg

0 commit comments

Comments
 (0)