如果在长路径目录(如a/long/long/long/path/to/project/ with ag )中搜索,结果列表将包含长路径。在结果列表中有获得项目路径的方法吗?
ag test a/long/long/long/path/to/project/的示例结果列表
a/long/long/long/path/to/project/test.txt: test.....
a/long/long/long/path/to/project/js/test2.js: test: function() {
预期:
test.txt: test.....
js/test2.js: test: fun
Select2代码:
$(".js-select").select2( {
placeholder: "Select Something",
ajax: {
// The number of milliseconds to wait for the user to stop typing before issuing the ajax request
delay: 400,
url: "<?php echo site_url('main/get_items') ?&g