1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 19:22:42 +01:00
phorge-phorge/webroot/rsrc/js/application/diffusion
Valerio Bozzolan 4a0d3ba3e1 Locate File: allow to search './path/to/something.txt'
Summary:
Before this change, if you search a file using Locate File,
this was the only accepted syntax for a full-path:

    path/to/something.txt

After this change, some relative/absolute Unix-like variants
are also accepted:

    ./path/to/something.txt
    /path/to/something.txt

Similar prefixes can be frequent when you quickly copy-paste things
from shell commands like 'grep' or 'find' etc.

Ref T15508

Test Plan:
Visit a lovely repository like Phorge and use Locate File with these:

1. src/applications/maniphest/editor/ManiphestEditEngine.php
2. /src/applications/maniphest/editor/ManiphestEditEngine.php
3. ./src/applications/maniphest/editor/ManiphestEditEngine.php

After this change, also 2. and 3. return the expected file.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, speck, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15508

Differential Revision: https://we.phorge.it/D25320
2023-07-04 17:12:57 +02:00
..
behavior-audit-preview.js Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
behavior-commit-branches.js Various linter fixes. 2014-02-26 12:44:58 -08:00
behavior-commit-graph.js Set an explicit height when drawing the dependent revision graph 2020-10-16 14:10:36 -07:00
behavior-locate-file.js Add a SublimeText-style repository typeahead 2014-05-13 14:08:21 -07:00
behavior-pull-lastmodified.js Make Diffusion "Last Modified" rendering less fragile 2015-10-07 07:32:27 -07:00
DiffusionLocateFileSource.js Locate File: allow to search './path/to/something.txt' 2023-07-04 17:12:57 +02:00
ExternalEditorLinkEngine.js Make "Open in Editor" use the simple line number of the current selected block 2020-05-21 15:31:16 -07:00