first commit
This commit is contained in:
commit
8d3c9edf7b
36
btop/CHANGES.md
Normal file
36
btop/CHANGES.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
## Changelog v1.4.0
|
||||||
|
|
||||||
|
References | Description | Author(s)
|
||||||
|
--- | --- | ---
|
||||||
|
#703 | NetBSD Support | @fraggerfox
|
||||||
|
#903 | Intel GPU support | @bjia56
|
||||||
|
161e8f4 | Added warnings when toggling boxes and terminal size is to small | @aristocratos
|
||||||
|
4210f5f | Fix missing core percentages, issue #792 | @aristocratos
|
||||||
|
35857f8 | Various fixes for drawing GPU related information | @aristocratos
|
||||||
|
#879 | fix divide 0 error when caculating disk usage percentage (#791) | @flylai
|
||||||
|
#884 | fix io_graph_speeds parsing | @feihtthief
|
||||||
|
#863 | V1 of Phoenix Night theme | @Firehawke
|
||||||
|
3f384c0 | Fixed missing CPU core temps when too small to show core temp graphs, issues #792 #867 | @aristocratos
|
||||||
|
97d2fb5 | Fixed missing IO graphs in IO mode, issue #867 | @aristocratos
|
||||||
|
#840 | fix zero temp (#467) | @joske
|
||||||
|
#850 | Fix comments (parsing) in theme files | @acidghost
|
||||||
|
#806 | Add regex filtering | @imwints
|
||||||
|
#836 | Fix typo in file existences check for voltage_now | @vsey
|
||||||
|
#835 | Show time in days when remaining battery exceeds an estimation of 24h | @imwints
|
||||||
|
#819 | (AMD Gpu) fix pwr_usage not being defined correctly during rsmi collection | @kalkafox
|
||||||
|
#831 | macOS: fix crash if there exists a uid not associated with any user | @thecoder-001
|
||||||
|
#796 | Fix rsmi device name buffer size | @davc0n
|
||||||
|
#807 | Add gruvbox_light theme | @kk9uk
|
||||||
|
#724 | Create man page for btop in Markdown | @ottok
|
||||||
|
#734 | Include metadata in binary version output `btop --version` | @imwints
|
||||||
|
#771 | collect: Fix reading of battery power draw on Linux | @Derppening
|
||||||
|
|
||||||
|
**For additional binaries see the [Continuous Builds](https://github.com/aristocratos/btop/actions).**
|
||||||
|
|
||||||
|
**Linux binaries for each architecture are statically linked with musl and works on kernel 2.6.39 and newer.**
|
||||||
|
|
||||||
|
**No MacOs or BSD binaries provided for the moment.**
|
||||||
|
|
||||||
|
**Notice! None of the binaries have GPU support, compile yourself or wait for distribution packages for GPU monitoring support!**
|
||||||
|
|
||||||
|
**Notice! Use x86_64 for 64-bit x86 systems, i486 and i686 are 32-bit!**
|
BIN
btop/Img/icon.png
Normal file
BIN
btop/Img/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
111
btop/Img/icon.svg
Normal file
111
btop/Img/icon.svg
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="90"
|
||||||
|
height="90"
|
||||||
|
version="1.1"
|
||||||
|
id="svg70"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs26">
|
||||||
|
<pattern
|
||||||
|
xlink:href="#gray-stripes"
|
||||||
|
id="pattern1888" />
|
||||||
|
<pattern
|
||||||
|
xlink:href="#red-stripes"
|
||||||
|
id="pattern1870" />
|
||||||
|
<pattern
|
||||||
|
id="red-stripes"
|
||||||
|
width="341"
|
||||||
|
height="90"
|
||||||
|
patternUnits="userSpaceOnUse">
|
||||||
|
<rect
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#f00"
|
||||||
|
id="rect2" />
|
||||||
|
<rect
|
||||||
|
y="16"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#d70000"
|
||||||
|
id="rect4" />
|
||||||
|
<rect
|
||||||
|
y="32"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#af0000"
|
||||||
|
id="rect6" />
|
||||||
|
<rect
|
||||||
|
y="48"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#870000"
|
||||||
|
id="rect8" />
|
||||||
|
<rect
|
||||||
|
y="64"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#5f0000"
|
||||||
|
id="rect10" />
|
||||||
|
</pattern>
|
||||||
|
<pattern
|
||||||
|
id="gray-stripes"
|
||||||
|
width="341"
|
||||||
|
height="90"
|
||||||
|
patternUnits="userSpaceOnUse">
|
||||||
|
<rect
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#585858"
|
||||||
|
id="rect13" />
|
||||||
|
<rect
|
||||||
|
y="16"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#4e4e4e"
|
||||||
|
id="rect15" />
|
||||||
|
<rect
|
||||||
|
y="32"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#444"
|
||||||
|
id="rect17" />
|
||||||
|
<rect
|
||||||
|
y="48"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#3a3a3a"
|
||||||
|
id="rect19" />
|
||||||
|
<rect
|
||||||
|
y="64"
|
||||||
|
width="341"
|
||||||
|
height="16"
|
||||||
|
fill="#303030"
|
||||||
|
id="rect21" />
|
||||||
|
<rect
|
||||||
|
y="80"
|
||||||
|
width="341"
|
||||||
|
height="10"
|
||||||
|
fill="#262626"
|
||||||
|
id="rect23" />
|
||||||
|
</pattern>
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
id="g2074"
|
||||||
|
transform="translate(18)">
|
||||||
|
<path
|
||||||
|
d="M 2,7 V 90 H 47 V 74 h 7 V 55 H 47 V 42 h 7 V 23 H 47 V 7 Z M 19,26 H 37 V 39 H 19 Z m 0,32 H 37 V 71 H 19 Z"
|
||||||
|
id="path28"
|
||||||
|
style="fill:#080808" />
|
||||||
|
<path
|
||||||
|
d="M 2,7 V 90 H 47 V 74 h 7 V 55 H 47 V 42 h 7 V 23 H 47 V 7 Z m 1,1 h 43 v 16 h 7 v 17 h -7 v 15 h 7 V 73 H 46 V 89 H 3 Z M 18,25 H 38 V 40 H 18 Z m 1,1 V 39 H 37 V 26 Z M 18,57 H 38 V 72 H 18 Z m 1,1 V 71 H 37 V 58 Z M 4,9 V 88 H 45 V 72 h 7 V 57 H 45 V 40 h 7 V 25 H 45 V 9 Z m 1,1 h 39 v 16 h 7 v 13 h -7 v 19 h 7 V 71 H 44 V 87 H 5 Z M 16,23 H 40 V 42 H 16 Z m 1,1 V 41 H 39 V 24 Z M 16,55 H 40 V 74 H 16 Z m 1,1 V 73 H 39 V 56 Z"
|
||||||
|
id="path42"
|
||||||
|
style="fill:url(#pattern1888)" />
|
||||||
|
<path
|
||||||
|
d="M 0,0 V 80 H 42 V 64 h 7 V 48 H 42 V 32 h 7 V 16 H 42 V 0 Z M 14,16 H 35 V 32 H 14 Z m 0,32 H 35 V 64 H 14 Z"
|
||||||
|
id="path56"
|
||||||
|
style="fill:url(#pattern1870)" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
202
btop/LICENSE
Normal file
202
btop/LICENSE
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
79
btop/Makefile
Normal file
79
btop/Makefile
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
#* Btop++ install makefile v1.1
|
||||||
|
|
||||||
|
BANNER = \n \033[38;5;196m██████\033[38;5;240m╗ \033[38;5;196m████████\033[38;5;240m╗ \033[38;5;196m██████\033[38;5;240m╗ \033[38;5;196m██████\033[38;5;240m╗\n \033[38;5;160m██\033[38;5;239m╔══\033[38;5;160m██\033[38;5;239m╗╚══\033[38;5;160m██\033[38;5;239m╔══╝\033[38;5;160m██\033[38;5;239m╔═══\033[38;5;160m██\033[38;5;239m╗\033[38;5;160m██\033[38;5;239m╔══\033[38;5;160m██\033[38;5;239m╗ \033[38;5;160m██\033[38;5;239m╗ \033[38;5;160m██\033[38;5;239m╗\n \033[38;5;124m██████\033[38;5;238m╔╝ \033[38;5;124m██\033[38;5;238m║ \033[38;5;124m██\033[38;5;238m║ \033[38;5;124m██\033[38;5;238m║\033[38;5;124m██████\033[38;5;238m╔╝ \033[38;5;124m██████\033[38;5;238m╗\033[38;5;124m██████\033[38;5;238m╗\n \033[38;5;88m██\033[38;5;237m╔══\033[38;5;88m██\033[38;5;237m╗ \033[38;5;88m██\033[38;5;237m║ \033[38;5;88m██\033[38;5;237m║ \033[38;5;88m██\033[38;5;237m║\033[38;5;88m██\033[38;5;237m╔═══╝ ╚═\033[38;5;88m██\033[38;5;237m╔═╝╚═\033[38;5;88m██\033[38;5;237m╔═╝\n \033[38;5;52m██████\033[38;5;236m╔╝ \033[38;5;52m██\033[38;5;236m║ ╚\033[38;5;52m██████\033[38;5;236m╔╝\033[38;5;52m██\033[38;5;236m║ ╚═╝ ╚═╝\n \033[38;5;235m╚═════╝ ╚═╝ ╚═════╝ ╚═╝ \033[1;3;38;5;240mInstaller\033[0m
|
||||||
|
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
|
override PLATFORM := $(shell uname -s || echo unknown)
|
||||||
|
|
||||||
|
SU_USER := root
|
||||||
|
ifneq ($(filter Darwin, $(PLATFORM)),)
|
||||||
|
SU_GROUP := wheel
|
||||||
|
else
|
||||||
|
SU_GROUP := root
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#? Default Make
|
||||||
|
all: install
|
||||||
|
|
||||||
|
help:
|
||||||
|
@printf " $(BANNER)\n"
|
||||||
|
@printf "\033[1;97mbtop++ installer makefile\033[0m\n"
|
||||||
|
@printf "usage: make [argument]\n\n"
|
||||||
|
@printf "arguments:\n"
|
||||||
|
@printf " install Install btop++ to \$$PREFIX ($(PREFIX))\n"
|
||||||
|
@printf " setcap Set extended capabilities on binary (preferable to setuid)\n"
|
||||||
|
@printf " setuid Set installed binary owner/group to \$$SU_USER/\$$SU_GROUP ($(SU_USER)/$(SU_GROUP)) and set SUID bit\n"
|
||||||
|
@printf " uninstall Uninstall btop++ from \$$PREFIX\n"
|
||||||
|
|
||||||
|
install:
|
||||||
|
@printf " $(BANNER)\n\n"
|
||||||
|
@printf "\033[1;92mInstalling binary to: \033[1;97m$(DESTDIR)$(PREFIX)/bin/btop\n"
|
||||||
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
|
@cp -p bin/btop $(DESTDIR)$(PREFIX)/bin/btop
|
||||||
|
@chmod 755 $(DESTDIR)$(PREFIX)/bin/btop
|
||||||
|
@printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop\n"
|
||||||
|
@mkdir -p $(DESTDIR)$(PREFIX)/share/btop
|
||||||
|
@cp -p README.md $(DESTDIR)$(PREFIX)/share/btop
|
||||||
|
@printf "\033[1;92mInstalling themes to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop/themes\033[0m\n"
|
||||||
|
@cp -pr themes $(DESTDIR)$(PREFIX)/share/btop
|
||||||
|
@printf "\033[1;92mInstalling desktop entry to: \033[1;97m$(DESTDIR)$(PREFIX)/share/applications/btop.desktop\n"
|
||||||
|
@mkdir -p $(DESTDIR)$(PREFIX)/share/applications/
|
||||||
|
@cp -p btop.desktop $(DESTDIR)$(PREFIX)/share/applications/btop.desktop
|
||||||
|
@printf "\033[1;92mInstalling PNG icon to: \033[1;97m$(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/btop.png\n"
|
||||||
|
@mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps
|
||||||
|
@cp -p Img/icon.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/btop.png
|
||||||
|
@printf "\033[1;92mInstalling SVG icon to: \033[1;97m$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg\n"
|
||||||
|
@mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
|
||||||
|
@cp -p Img/icon.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg
|
||||||
|
|
||||||
|
#? Set SUID bit for btop as $SU_USER in $SU_GROUP
|
||||||
|
setuid:
|
||||||
|
@printf "\033[1;97mFile: $(DESTDIR)$(PREFIX)/bin/btop\n"
|
||||||
|
@printf "\033[1;92mSetting owner \033[1;97m$(SU_USER):$(SU_GROUP)\033[0m\n"
|
||||||
|
@chown $(SU_USER):$(SU_GROUP) $(DESTDIR)$(PREFIX)/bin/btop
|
||||||
|
@printf "\033[1;92mSetting SUID bit\033[0m\n"
|
||||||
|
@chmod u+s $(DESTDIR)$(PREFIX)/bin/btop
|
||||||
|
|
||||||
|
#? Run setcap on btop for extended capabilities
|
||||||
|
setcap:
|
||||||
|
@printf "\033[1;97mFile: $(DESTDIR)$(PREFIX)/bin/btop\n"
|
||||||
|
@printf "\033[1;92mSetting capabilities...\033[0m\n"
|
||||||
|
@setcap cap_perfmon=+ep $(DESTDIR)$(PREFIX)/bin/btop
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/bin/btop\033[0m\n"
|
||||||
|
@rm -rf $(DESTDIR)$(PREFIX)/bin/btop
|
||||||
|
@printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop\033[0m\n"
|
||||||
|
@rm -rf $(DESTDIR)$(PREFIX)/share/btop
|
||||||
|
@printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/share/applications/btop.desktop\033[0m\n"
|
||||||
|
@rm -rf $(DESTDIR)$(PREFIX)/share/applications/btop.desktop
|
||||||
|
@printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/btop.png\033[0m\n"
|
||||||
|
@rm -rf $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/btop.png
|
||||||
|
@printf "\033[1;91mRemoving: \033[1;97m$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg\033[0m\n"
|
||||||
|
@rm -rf $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/btop.svg
|
||||||
|
|
||||||
|
#? Non-File Targets
|
||||||
|
.PHONY: help
|
1528
btop/README.md
Normal file
1528
btop/README.md
Normal file
File diff suppressed because it is too large
Load Diff
BIN
btop/bin/btop
Executable file
BIN
btop/bin/btop
Executable file
Binary file not shown.
13
btop/btop.desktop
Normal file
13
btop/btop.desktop
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Version=1.0
|
||||||
|
Name=btop++
|
||||||
|
GenericName=System Monitor
|
||||||
|
GenericName[it]=Monitor di sistema
|
||||||
|
Comment=Resource monitor that shows usage and stats for processor, memory, disks, network and processes
|
||||||
|
Comment[it]=Monitoraggio delle risorse: mostra utilizzo e statistiche per CPU, dischi, rete e processi
|
||||||
|
Icon=btop
|
||||||
|
Exec=btop
|
||||||
|
Terminal=true
|
||||||
|
Categories=System;Monitor;ConsoleOnly;
|
||||||
|
Keywords=system;process;task
|
2
btop/install.sh
Executable file
2
btop/install.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo make install $@
|
2
btop/setuid.sh
Executable file
2
btop/setuid.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo make setuid $@
|
94
btop/themes/HotPurpleTrafficLight.theme
Normal file
94
btop/themes/HotPurpleTrafficLight.theme
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
#HotPurpleTrafficLight
|
||||||
|
#by Pete Allebone - mess with the best... you know the rest. <catch me at: peter at allebone dot org>
|
||||||
|
#Designed to flash up bright red with danger when loads are high and attention is needed.
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#000000"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#d1d1e0"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#d1d1e0"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#9933ff"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#6666ff"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#d1d1e0"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#9999ff"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#9933ff"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#4d4dff"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#9933ff"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#a64dff"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#a64dff"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#a64dff"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#a64dff"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#4d4dff"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#00ff00"
|
||||||
|
theme[temp_mid]="#ff9933"
|
||||||
|
theme[temp_end]="#ff0000"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#00ff00"
|
||||||
|
theme[cpu_mid]="#ccff66"
|
||||||
|
theme[cpu_end]="#ff0000"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_end]="#00ff00"
|
||||||
|
theme[free_mid]="#ccff66"
|
||||||
|
theme[free_start]="#ff0000"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#00ff00"
|
||||||
|
theme[cached_mid]="#ccff66"
|
||||||
|
theme[cached_end]="#ff0000"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#ff0000"
|
||||||
|
theme[available_mid]="#ccff66"
|
||||||
|
theme[available_end]="#00ff00"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#00ff00"
|
||||||
|
theme[used_mid]="#ccff66"
|
||||||
|
theme[used_end]="#ff0000"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#00ff00"
|
||||||
|
theme[download_mid]="#ff9933"
|
||||||
|
theme[download_end]="#ff0000"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#00ff00"
|
||||||
|
theme[upload_mid]="#ff9933"
|
||||||
|
theme[upload_end]="#ff0000"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#9999ff"
|
||||||
|
theme[process_mid]="#4d4dff"
|
||||||
|
theme[process_end]="#a64dff"
|
||||||
|
|
89
btop/themes/adapta.theme
Normal file
89
btop/themes/adapta.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop Adapta theme
|
||||||
|
#by olokelo
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#ffffff", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]=""
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#cfd8dc"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#ff"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#90"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#bb0040"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#ff"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#40"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#55bcea"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#00bcd4"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#00bcd4"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#00bcd4"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#00bcd4"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#50"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#00bcd4"
|
||||||
|
theme[temp_mid]="#d4d400"
|
||||||
|
theme[temp_end]="#ff0040"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#00bcd4"
|
||||||
|
theme[cpu_mid]="#d4d400"
|
||||||
|
theme[cpu_end]="#ff0040"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#00bcd4"
|
||||||
|
theme[free_mid]="#1090a0"
|
||||||
|
theme[free_end]="#206f79"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#991199"
|
||||||
|
theme[cached_mid]="#770a55"
|
||||||
|
theme[cached_end]="#550055"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#00b0ff"
|
||||||
|
theme[available_mid]="#1099cc"
|
||||||
|
theme[available_end]="#2070aa"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#ff0040"
|
||||||
|
theme[used_mid]="#ff2060"
|
||||||
|
theme[used_end]="#ff4080"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#00bcd4"
|
||||||
|
theme[download_mid]="#991199"
|
||||||
|
theme[download_end]="#ff0040"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#00bcd4"
|
||||||
|
theme[upload_mid]="#991199"
|
||||||
|
theme[upload_end]="#ff0040"
|
89
btop/themes/adwaita.theme
Normal file
89
btop/themes/adwaita.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop Adwaita theme
|
||||||
|
#by flipflop133
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#f6f5f4"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#2e3436"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#2e3436"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#1a5fb4"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#1c71d8"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#ffffff"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#5e5c64"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#1a5fb4"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#2e3436"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#3d3c14"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#2e3436"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#2e3436"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#2e3436"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#1a5fb4"
|
||||||
|
theme[temp_mid]="#1a5fb4"
|
||||||
|
theme[temp_end]="#c01c28"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#1a5fb4"
|
||||||
|
theme[cpu_mid]="#1a5fb4"
|
||||||
|
theme[cpu_end]="#c01c28"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#1a5fb4"
|
||||||
|
theme[free_mid]="#1a5fb4"
|
||||||
|
theme[free_end]="#c01c28"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#1a5fb4"
|
||||||
|
theme[cached_mid]="#1a5fb4"
|
||||||
|
theme[cached_end]="#c01c28"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#1a5fb4"
|
||||||
|
theme[available_mid]="#1a5fb4"
|
||||||
|
theme[available_end]="#c01c28"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#1a5fb4"
|
||||||
|
theme[used_mid]="#1a5fb4"
|
||||||
|
theme[used_end]="#c01c28"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#1a5fb4"
|
||||||
|
theme[download_mid]="#1a5fb4"
|
||||||
|
theme[download_end]="#c01c28"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#1a5fb4"
|
||||||
|
theme[upload_mid]="#1a5fb4"
|
||||||
|
theme[upload_end]="#c01c28"
|
89
btop/themes/ayu.theme
Normal file
89
btop/themes/ayu.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#0B0E14"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#BFBDB6"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#BFBDB6"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#E6B450"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#E6B450"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#f8f8f2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#565B66"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#BFBDB6"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#565B66"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#DFBFFF"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#DFBFFF"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#95E6CB"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#F28779"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#E6B673"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#565B66"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#DFBFFF"
|
||||||
|
theme[temp_mid]="#D2A6FF"
|
||||||
|
theme[temp_end]="#A37ACC"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#DFBFFF"
|
||||||
|
theme[cpu_mid]="#D2A6FF"
|
||||||
|
theme[cpu_end]="#A37ACC"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#95E6CB"
|
||||||
|
theme[free_mid]="#95E6CB"
|
||||||
|
theme[free_end]="#4CBF99"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#95E6CB"
|
||||||
|
theme[cached_mid]="#95E6CB"
|
||||||
|
theme[cached_end]="#4CBF99"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#95E6CB"
|
||||||
|
theme[available_mid]="#95E6CB"
|
||||||
|
theme[available_end]="#4CBF99"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#95E6CB"
|
||||||
|
theme[used_mid]="#95E6CB"
|
||||||
|
theme[used_end]="#4CBF99"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#F28779"
|
||||||
|
theme[download_mid]="#F07178"
|
||||||
|
theme[download_end]="#F07171"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#73D0FF"
|
||||||
|
theme[upload_mid]="#59C2FF"
|
||||||
|
theme[upload_end]="#399EE6"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#FFCC66"
|
||||||
|
theme[process_mid]="#E6B450"
|
||||||
|
theme[process_end]="#FFAA33"
|
89
btop/themes/dracula.theme
Normal file
89
btop/themes/dracula.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#282a36"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#f8f8f2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#f8f8f2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#6272a4"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#ff79c6"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#f8f8f2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#44475a"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#f8f8f2"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#44475a"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#bd93f9"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#bd93f9"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#50fa7b"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#ff5555"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#8be9fd"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#44475a"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#bd93f9"
|
||||||
|
theme[temp_mid]="#ff79c6"
|
||||||
|
theme[temp_end]="#ff33a8"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#bd93f9"
|
||||||
|
theme[cpu_mid]="#8be9fd"
|
||||||
|
theme[cpu_end]="#50fa7b"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#ffa6d9"
|
||||||
|
theme[free_mid]="#ff79c6"
|
||||||
|
theme[free_end]="#ff33a8"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#b1f0fd"
|
||||||
|
theme[cached_mid]="#8be9fd"
|
||||||
|
theme[cached_end]="#26d7fd"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#ffd4a6"
|
||||||
|
theme[available_mid]="#ffb86c"
|
||||||
|
theme[available_end]="#ff9c33"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#96faaf"
|
||||||
|
theme[used_mid]="#50fa7b"
|
||||||
|
theme[used_end]="#0dfa49"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#bd93f9"
|
||||||
|
theme[download_mid]="#50fa7b"
|
||||||
|
theme[download_end]="#8be9fd"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#8c42ab"
|
||||||
|
theme[upload_mid]="#ff79c6"
|
||||||
|
theme[upload_end]="#ff33a8"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#50fa7b"
|
||||||
|
theme[process_mid]="#59b690"
|
||||||
|
theme[process_end]="#6272a4"
|
95
btop/themes/dusklight.theme
Normal file
95
btop/themes/dusklight.theme
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
#Bpytop theme comprised of blues, oranges, cyan, and yellow.
|
||||||
|
#by Drazil100
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#04142E"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#99DFFF"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#99FFFF"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#FF7F00"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#722B01"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#99FFFF"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#052E51"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#79A1B4"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#052E51"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#B46718"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#00FFFF"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#00FFFF"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#00FFFF"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#00FFFF"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#A55800"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#00ADFF"
|
||||||
|
theme[temp_mid]="#00FFFF"
|
||||||
|
theme[temp_end]="#FFF86B"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#00D4FF"
|
||||||
|
theme[cpu_mid]="#FFF86B"
|
||||||
|
theme[cpu_end]="#FF7F00"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#0187CB"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]=""
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#B4BB63"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]=""
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#01C0CB"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]=""
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#B46718"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]=""
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#009EFF"
|
||||||
|
theme[download_mid]=""
|
||||||
|
theme[download_end]="#00FFFF"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#FF7F00"
|
||||||
|
theme[upload_mid]=""
|
||||||
|
theme[upload_end]="#FFF86B"
|
82
btop/themes/elementarish.theme
Normal file
82
btop/themes/elementarish.theme
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
# Theme: Elementarish
|
||||||
|
# (inspired by Elementary OS)
|
||||||
|
# By: Dennis Mayr
|
||||||
|
|
||||||
|
# Main bg
|
||||||
|
theme[main_bg]="#333333"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#eee8d5"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#eee8d5"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#d1302c"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#268ad0"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#eee8d5"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#657b83"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#268ad0"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#657b83"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#657b83"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#657b83"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#657b83"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#657b83"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#859900"
|
||||||
|
theme[temp_mid]="#b28602"
|
||||||
|
theme[temp_end]="#d1302c"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#859900"
|
||||||
|
theme[cpu_mid]="#b28602"
|
||||||
|
theme[cpu_end]="#d1302c"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#268ad0"
|
||||||
|
theme[free_mid]="#6c71c4"
|
||||||
|
theme[free_end]="#2a9d95"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#268ad0"
|
||||||
|
theme[cached_mid]="#6c71c4"
|
||||||
|
theme[cached_end]="#d1302c"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#268ad0"
|
||||||
|
theme[available_mid]="#6c71c4"
|
||||||
|
theme[available_end]="#d1302c"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#859900"
|
||||||
|
theme[used_mid]="#b28602"
|
||||||
|
theme[used_end]="#d1302c"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#268ad0"
|
||||||
|
theme[download_mid]="#6c71c4"
|
||||||
|
theme[download_end]="#d1302c"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#268ad0"
|
||||||
|
theme[upload_mid]="#6c71c4"
|
||||||
|
theme[upload_end]="#d1302c"
|
91
btop/themes/everforest-dark-hard.theme
Normal file
91
btop/themes/everforest-dark-hard.theme
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#272e33"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#d3c6aa"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#d3c6aa"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#e67e80"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#374145"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#dbbc7f"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#272e33"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#d3c6aa"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#a7c080"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#374145"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#374145"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#374145"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#374145"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#374145"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#a7c080"
|
||||||
|
theme[temp_mid]="#dbbc7f"
|
||||||
|
theme[temp_end]="#f85552"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#a7c080"
|
||||||
|
theme[cpu_mid]="#dbbc7f"
|
||||||
|
theme[cpu_end]="#f85552"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#f85552"
|
||||||
|
theme[free_mid]="#dbbc7f"
|
||||||
|
theme[free_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#7fbbb3"
|
||||||
|
theme[cached_mid]="#83c092"
|
||||||
|
theme[cached_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#f85552"
|
||||||
|
theme[available_mid]="#dbbc7f"
|
||||||
|
theme[available_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#a7c080"
|
||||||
|
theme[used_mid]="#dbbc7f"
|
||||||
|
theme[used_end]="#f85552"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#a7c080"
|
||||||
|
theme[download_mid]="#83c092"
|
||||||
|
theme[download_end]="#7fbbb3"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#dbbc7f"
|
||||||
|
theme[upload_mid]="#e69875"
|
||||||
|
theme[upload_end]="#e67e80"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#a7c080"
|
||||||
|
theme[process_mid]="#f85552"
|
||||||
|
theme[process_end]="#CC241D"
|
92
btop/themes/everforest-dark-medium.theme
Normal file
92
btop/themes/everforest-dark-medium.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#2d353b"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#d3c6aa"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#d3c6aa"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#e67e80"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#3d484d"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#dbbc7f"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#2d353b"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#d3c6aa"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#a7c080"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#3d484d"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#3d484d"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#3d484d"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#3d484d"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#3d484d"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#a7c080"
|
||||||
|
theme[temp_mid]="#dbbc7f"
|
||||||
|
theme[temp_end]="#f85552"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#a7c080"
|
||||||
|
theme[cpu_mid]="#dbbc7f"
|
||||||
|
theme[cpu_end]="#f85552"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#f85552"
|
||||||
|
theme[free_mid]="#dbbc7f"
|
||||||
|
theme[free_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#7fbbb3"
|
||||||
|
theme[cached_mid]="#83c092"
|
||||||
|
theme[cached_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#f85552"
|
||||||
|
theme[available_mid]="#dbbc7f"
|
||||||
|
theme[available_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#a7c080"
|
||||||
|
theme[used_mid]="#dbbc7f"
|
||||||
|
theme[used_end]="#f85552"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#a7c080"
|
||||||
|
theme[download_mid]="#83c092"
|
||||||
|
theme[download_end]="#7fbbb3"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#dbbc7f"
|
||||||
|
theme[upload_mid]="#e69875"
|
||||||
|
theme[upload_end]="#e67e80"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#a7c080"
|
||||||
|
theme[process_mid]="#e67e80"
|
||||||
|
theme[process_end]="#f85552"
|
||||||
|
|
89
btop/themes/flat-remix-light.theme
Normal file
89
btop/themes/flat-remix-light.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop theme with flat-remix colors
|
||||||
|
#by Daniel Ruiz de Alegría <daniel@drasite.com>
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#ffffff", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#e4e4e7"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#737680"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#272a34"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#90"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#b8174c"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#ff"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#40"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#367bf0"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#367bf0"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#19a187"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#fd3535"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#4aaee6"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#50"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#367bf0"
|
||||||
|
theme[temp_mid]="#b8174c"
|
||||||
|
theme[temp_end]="#d41919"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#367bf0"
|
||||||
|
theme[cpu_mid]="#4aaee6"
|
||||||
|
theme[cpu_end]="#54bd8e"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#811035"
|
||||||
|
theme[free_mid]="#b8174c"
|
||||||
|
theme[free_end]="#d41919"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#2656a8"
|
||||||
|
theme[cached_mid]="#4aaee6"
|
||||||
|
theme[cached_end]="#23bac2"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#fea44c"
|
||||||
|
theme[available_mid]="#fd7d00"
|
||||||
|
theme[available_end]="#fe7171"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#12715f"
|
||||||
|
theme[used_mid]="#19a187"
|
||||||
|
theme[used_end]="#23bac2"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#367bf0"
|
||||||
|
theme[download_mid]="#19a187"
|
||||||
|
theme[download_end]="#4aaee6"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#8c42ab"
|
||||||
|
theme[upload_mid]="#b8174c"
|
||||||
|
theme[upload_end]="#d41919"
|
89
btop/themes/flat-remix.theme
Normal file
89
btop/themes/flat-remix.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop theme with flat-remix colors
|
||||||
|
#by Daniel Ruiz de Alegría <daniel@drasite.com>
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#ffffff", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]=""
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#E6E6E6"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#ff"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#90"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#b8174c"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#ff"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#40"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#367bf0"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#367bf0"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#19a187"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#fd3535"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#4aaee6"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#50"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#367bf0"
|
||||||
|
theme[temp_mid]="#b8174c"
|
||||||
|
theme[temp_end]="#d41919"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#367bf0"
|
||||||
|
theme[cpu_mid]="#4aaee6"
|
||||||
|
theme[cpu_end]="#54bd8e"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#811035"
|
||||||
|
theme[free_mid]="#b8174c"
|
||||||
|
theme[free_end]="#d41919"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#2656a8"
|
||||||
|
theme[cached_mid]="#4aaee6"
|
||||||
|
theme[cached_end]="#23bac2"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#fea44c"
|
||||||
|
theme[available_mid]="#fd7d00"
|
||||||
|
theme[available_end]="#fe7171"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#12715f"
|
||||||
|
theme[used_mid]="#19a187"
|
||||||
|
theme[used_end]="#23bac2"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#367bf0"
|
||||||
|
theme[download_mid]="#19a187"
|
||||||
|
theme[download_end]="#4aaee6"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#8c42ab"
|
||||||
|
theme[upload_mid]="#b8174c"
|
||||||
|
theme[upload_end]="#d41919"
|
89
btop/themes/greyscale.theme
Normal file
89
btop/themes/greyscale.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop grayscale theme
|
||||||
|
#by aristocratos
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#00"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#bb"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#cc"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#90"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#ff"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#00"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#30"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#90"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#90"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#90"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#90"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#90"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#30"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#50"
|
||||||
|
theme[temp_mid]=""
|
||||||
|
theme[temp_end]="#ff"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#50"
|
||||||
|
theme[cpu_mid]=""
|
||||||
|
theme[cpu_end]="#ff"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#50"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]="#ff"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#50"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]="#ff"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#50"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]="#ff"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#50"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]="#ff"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#30"
|
||||||
|
theme[download_mid]=""
|
||||||
|
theme[download_end]="#ff"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#30"
|
||||||
|
theme[upload_mid]=""
|
||||||
|
theme[upload_end]="#ff"
|
92
btop/themes/gruvbox_dark.theme
Normal file
92
btop/themes/gruvbox_dark.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
#Bashtop gruvbox (https://github.com/morhetz/gruvbox) theme
|
||||||
|
#by BachoSeven
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#1d2021"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#a89984"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#ebdbb2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#d79921"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#282828"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#fabd2f"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#282828"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#585858"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#98971a"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#a89984"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#a89984"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#a89984"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#a89984"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#a89984"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#458588"
|
||||||
|
theme[temp_mid]="#d3869b"
|
||||||
|
theme[temp_end]="#fb4394"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#b8bb26"
|
||||||
|
theme[cpu_mid]="#d79921"
|
||||||
|
theme[cpu_end]="#fb4934"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#4e5900"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]="#98971a"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#458588"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]="#83a598"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#d79921"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]="#fabd2f"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#cc241d"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]="#fb4934"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#3d4070"
|
||||||
|
theme[download_mid]="#6c71c4"
|
||||||
|
theme[download_end]="#a3a8f7"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#701c45"
|
||||||
|
theme[upload_mid]="#b16286"
|
||||||
|
theme[upload_end]="#d3869b"
|
98
btop/themes/gruvbox_dark_v2.theme
Normal file
98
btop/themes/gruvbox_dark_v2.theme
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
# Bashtop gruvbox (https://github.com/morhetz/gruvbox) theme
|
||||||
|
# First version created By BachoSeven
|
||||||
|
# Adjustments to proper colors by Pietryszak (https://github.com/pietryszak/)
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#282828"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#EBDBB2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#EBDBB2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#CC241D"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#32302F"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#D3869B"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#3C3836"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#A89984"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#98971A"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#A89984"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#A89984"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#A89984"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#A89984"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#A89984"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#98971A"
|
||||||
|
theme[temp_mid]=""
|
||||||
|
theme[temp_end]="#CC241D"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#8EC07C"
|
||||||
|
theme[cpu_mid]="#D79921"
|
||||||
|
theme[cpu_end]="#CC241D"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#CC241D"
|
||||||
|
theme[free_mid]="#D79921"
|
||||||
|
theme[free_end]="#8EC07C"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#458588"
|
||||||
|
theme[cached_mid]="#83A598"
|
||||||
|
theme[cached_end]="#8EC07C"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#CC241D"
|
||||||
|
theme[available_mid]="#D65D0E"
|
||||||
|
theme[available_end]="#FABD2F"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#8EC07C"
|
||||||
|
theme[used_mid]="#D65D0E"
|
||||||
|
theme[used_end]="#CC241D"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#98971A"
|
||||||
|
theme[download_mid]="#689d6A"
|
||||||
|
theme[download_end]="#B8BB26"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#CC241D"
|
||||||
|
theme[upload_mid]="#D65d0E"
|
||||||
|
theme[upload_end]="#FABF2F"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#8EC07C"
|
||||||
|
theme[process_mid]="#FE8019"
|
||||||
|
theme[process_end]="#CC241D"
|
89
btop/themes/gruvbox_light.theme
Normal file
89
btop/themes/gruvbox_light.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
# Btop gruvbox_light theme
|
||||||
|
# by kk9uk
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#fbf1c7"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#3c3836"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#3c3836"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#cc241d"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#f2e5bc"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#8f3f71"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#ebdbb2"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#a89984"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#98971a"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#a89984"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#a89984"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#a89984"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#a89984"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#a89984"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#98971a"
|
||||||
|
theme[temp_mid]=""
|
||||||
|
theme[temp_end]="#cc241d"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#427b58"
|
||||||
|
theme[cpu_mid]="#d79921"
|
||||||
|
theme[cpu_end]="#cc241d"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#cc241d"
|
||||||
|
theme[free_mid]="#d79921"
|
||||||
|
theme[free_end]="#427b58"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#458588"
|
||||||
|
theme[cached_mid]="#076678"
|
||||||
|
theme[cached_end]="#427b58"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#cc241d"
|
||||||
|
theme[available_mid]="#d65d0e"
|
||||||
|
theme[available_end]="#b57614"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#427b58"
|
||||||
|
theme[used_mid]="#d65d0e"
|
||||||
|
theme[used_end]="#cc241d"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#98971a"
|
||||||
|
theme[download_mid]="#689d6a"
|
||||||
|
theme[download_end]="#79740e"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#cc241d"
|
||||||
|
theme[upload_mid]="#d65d0e"
|
||||||
|
theme[upload_end]="#b57614"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#427b58"
|
||||||
|
theme[process_mid]="#af3a03"
|
||||||
|
theme[process_end]="#cc241d"
|
92
btop/themes/gruvbox_material_dark.theme
Normal file
92
btop/themes/gruvbox_material_dark.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
# Btop gruvbox material dark (https://github.com/sainnhe/gruvbox-material) theme
|
||||||
|
# by Marco Radocchia
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#282828"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#d4be98"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#d4be98"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#ea6962"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#d8a657"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#282828"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#282828"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#665c54"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#a9b665"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#7c6f64"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#7c6f64"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#7c6f64"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#7c6f64"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#7c6f64"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#7daea3"
|
||||||
|
theme[temp_mid]="#e78a4e"
|
||||||
|
theme[temp_end]="#ea6962"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#a9b665"
|
||||||
|
theme[cpu_mid]="#d8a657"
|
||||||
|
theme[cpu_end]="#ea6962"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#89b482"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]=""
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#7daea3"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]=""
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#d8a657"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]=""
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#ea6962"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]=""
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#e78a4e"
|
||||||
|
theme[download_mid]=""
|
||||||
|
theme[download_end]=""
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#d3869b"
|
||||||
|
theme[upload_mid]=""
|
||||||
|
theme[upload_end]=""
|
86
btop/themes/horizon.theme
Normal file
86
btop/themes/horizon.theme
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#1C1E26"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#f8f8f2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#f8f8f2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#B877DB"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#282b37"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#f8f8f2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#272e33"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#f8f8f2"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#27D796"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#B877DB"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#27D796"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#E95678"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#25B2BC"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#272e33"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#27D796"
|
||||||
|
theme[temp_mid]="#FAC29A"
|
||||||
|
theme[temp_end]="#E95678"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#27D796"
|
||||||
|
theme[cpu_mid]="#FAC29A"
|
||||||
|
theme[cpu_end]="#E95678"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#E95678"
|
||||||
|
theme[free_mid]="#FAC29A"
|
||||||
|
theme[free_end]="#27D796"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#27D796"
|
||||||
|
theme[cached_mid]="#FAC29A"
|
||||||
|
theme[cached_end]="#E95678"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#27D796"
|
||||||
|
theme[available_mid]="#FAC29A"
|
||||||
|
theme[available_end]="#E95678"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#27D796"
|
||||||
|
theme[used_mid]="#FAC29A"
|
||||||
|
theme[used_end]="#E95678"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#27D796"
|
||||||
|
theme[download_mid]="#FAC29A"
|
||||||
|
theme[download_end]="#E95678"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#27D796"
|
||||||
|
theme[upload_mid]="#FAC29A"
|
||||||
|
theme[upload_end]="#E95678"
|
92
btop/themes/kyli0x.theme
Normal file
92
btop/themes/kyli0x.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
#Bashtop Kyli0x Theme
|
||||||
|
#by Kyli0x <kyli0x@protonmail.ch>
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#222222"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#e8f6f5"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#e8f6f5"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#21d6c9"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#1aaba0"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#e8f6f5"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#5ec4bc"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#ba1a84"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#5ec4bc"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#21d6c9"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#d486d4"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#d486d4"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#d486d4"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#d486d4"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#80638e"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#21d6c9"
|
||||||
|
theme[temp_mid]="#1aaba0"
|
||||||
|
theme[temp_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#21d6c9"
|
||||||
|
theme[cpu_mid]="#1aaba0"
|
||||||
|
theme[cpu_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#21d6c9"
|
||||||
|
theme[free_mid]="#1aaba0"
|
||||||
|
theme[free_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#21d6c9"
|
||||||
|
theme[cached_mid]="#1aaba0"
|
||||||
|
theme[cached_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#21d6c9"
|
||||||
|
theme[available_mid]="#1aaba0"
|
||||||
|
theme[available_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#21d6c9"
|
||||||
|
theme[used_mid]="#1aaba0"
|
||||||
|
theme[used_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#21d6c9"
|
||||||
|
theme[download_mid]="#1aaba0"
|
||||||
|
theme[download_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#ec95ec"
|
||||||
|
theme[upload_mid]="#1aaba0"
|
||||||
|
theme[upload_end]="#5ec4bc"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#21d6c9"
|
||||||
|
theme[process_mid]="#1aaba0"
|
||||||
|
theme[process_end]="#ba1a84"
|
92
btop/themes/matcha-dark-sea.theme
Normal file
92
btop/themes/matcha-dark-sea.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
#Bashtop matcha-dark-sea theme
|
||||||
|
#by TheCynicalTeam
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]=""
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#F8F8F2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#F8F8F2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#2eb398"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#0d493d"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#F8F8F2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#595647"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#797667"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#33b165"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#75715E"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#75715E"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#75715E"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#75715E"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#595647"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#7976B7"
|
||||||
|
theme[temp_mid]="#D8B8B2"
|
||||||
|
theme[temp_end]="#33b165"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#33b165"
|
||||||
|
theme[cpu_mid]="#F8F8F2" #2eb398"
|
||||||
|
theme[cpu_end]="#2eb398"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#75715E"
|
||||||
|
theme[free_mid]="#a9c474"
|
||||||
|
theme[free_end]="#e2f5bc"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#75715E"
|
||||||
|
theme[cached_mid]="#66D9EF"
|
||||||
|
theme[cached_end]="#aae7f2"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#75715E"
|
||||||
|
theme[available_mid]="#E6DB74"
|
||||||
|
theme[available_end]="#f2ecb6"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#75715E"
|
||||||
|
theme[used_mid]="#2eb398"
|
||||||
|
theme[used_end]="#33b165"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#2d2042"
|
||||||
|
theme[download_mid]="#2eb398"
|
||||||
|
theme[download_end]="#33b165"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#0d493d"
|
||||||
|
theme[upload_mid]="#2eb398"
|
||||||
|
theme[upload_end]="#33b165"
|
92
btop/themes/monokai.theme
Normal file
92
btop/themes/monokai.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
#Bashtop monokai theme
|
||||||
|
#by aristocratos
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#060604"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#F8F8F2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#F8F8F2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#F92672"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#7a1137"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#F8F8F2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#595647"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#797667"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#A6E22E"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#75715E"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#75715E"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#75715E"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#75715E"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#595647"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#7976B7"
|
||||||
|
theme[temp_mid]="#D8B8B2"
|
||||||
|
theme[temp_end]="#F92672"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#A6E22E"
|
||||||
|
theme[cpu_mid]="#F8F8F2" #b05475"
|
||||||
|
theme[cpu_end]="#F92672"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#75715E"
|
||||||
|
theme[free_mid]="#a9c474"
|
||||||
|
theme[free_end]="#e2f5bc"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#75715E"
|
||||||
|
theme[cached_mid]="#66D9EF"
|
||||||
|
theme[cached_end]="#aae7f2"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#75715E"
|
||||||
|
theme[available_mid]="#E6DB74"
|
||||||
|
theme[available_end]="#f2ecb6"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#75715E"
|
||||||
|
theme[used_mid]="#F92672"
|
||||||
|
theme[used_end]="#ff87b2"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#2d2042"
|
||||||
|
theme[download_mid]="#7352a8"
|
||||||
|
theme[download_end]="#ccaefc"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#570d33"
|
||||||
|
theme[upload_mid]="#cf277d"
|
||||||
|
theme[upload_end]="#fa91c7"
|
92
btop/themes/night-owl.theme
Normal file
92
btop/themes/night-owl.theme
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
#Bashtop theme with night-owl colors
|
||||||
|
#by zkourouma
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#ffffff", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#011627"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#d6deeb"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#ffffff"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#addb67"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#000000"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#ffeb95"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#575656"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#585858"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#22da6e"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#ffffff"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#ffffff"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#ffffff"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#ffffff"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#ffffff"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#82aaff"
|
||||||
|
theme[temp_mid]="#c792ea"
|
||||||
|
theme[temp_end]="#fb4394"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#22da6e"
|
||||||
|
theme[cpu_mid]="#addb67"
|
||||||
|
theme[cpu_end]="#ef5350"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#4e5900"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]="#22da6e"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#82aaff"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]="#82aaff"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#addb67"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]="#ffeb95"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#ef5350"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]="#ef5350"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#3d4070"
|
||||||
|
theme[download_mid]="#6c71c4"
|
||||||
|
theme[download_end]="#a3a8f7"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#701c45"
|
||||||
|
theme[upload_mid]="#c792ea"
|
||||||
|
theme[upload_end]="#c792ea"
|
89
btop/themes/nord.theme
Normal file
89
btop/themes/nord.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop theme with nord palette (https://www.nordtheme.com)
|
||||||
|
#by Justin Zobel <justin.zobel@gmail.com>
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#ffffff", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#2E3440"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#D8DEE9"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#8FBCBB"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#5E81AC"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#4C566A"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#ECEFF4"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#4C566A"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#5E81AC"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#4C566A"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#4C566A"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#4C566A"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#4C566A"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#4C566A"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#81A1C1"
|
||||||
|
theme[temp_mid]="#88C0D0"
|
||||||
|
theme[temp_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#81A1C1"
|
||||||
|
theme[cpu_mid]="#88C0D0"
|
||||||
|
theme[cpu_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#81A1C1"
|
||||||
|
theme[free_mid]="#88C0D0"
|
||||||
|
theme[free_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#81A1C1"
|
||||||
|
theme[cached_mid]="#88C0D0"
|
||||||
|
theme[cached_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#81A1C1"
|
||||||
|
theme[available_mid]="#88C0D0"
|
||||||
|
theme[available_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#81A1C1"
|
||||||
|
theme[used_mid]="#88C0D0"
|
||||||
|
theme[used_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#81A1C1"
|
||||||
|
theme[download_mid]="#88C0D0"
|
||||||
|
theme[download_end]="#ECEFF4"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#81A1C1"
|
||||||
|
theme[upload_mid]="#88C0D0"
|
||||||
|
theme[upload_end]="#ECEFF4"
|
81
btop/themes/onedark.theme
Normal file
81
btop/themes/onedark.theme
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
# Theme: OneDark
|
||||||
|
# By: Vitor Melo
|
||||||
|
|
||||||
|
# Main bg
|
||||||
|
theme[main_bg]="#282c34"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#abb2bf"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#abb2bf"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#61afef"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#2c313c"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#abb2bf"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#5c6370"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#61afef"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#5c6370"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#5c6370"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#5c6370"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#5c6370"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#5c6370"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#98c379"
|
||||||
|
theme[temp_mid]="#e5c07b"
|
||||||
|
theme[temp_end]="#e06c75"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#98c379"
|
||||||
|
theme[cpu_mid]="#e5c07b"
|
||||||
|
theme[cpu_end]="#e06c75"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#98c379"
|
||||||
|
theme[free_mid]="#e5c07b"
|
||||||
|
theme[free_end]="#e06c75"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#98c379"
|
||||||
|
theme[cached_mid]="#e5c07b"
|
||||||
|
theme[cached_end]="#e06c75"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#98c379"
|
||||||
|
theme[available_mid]="#e5c07b"
|
||||||
|
theme[available_end]="#e06c75"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#98c379"
|
||||||
|
theme[used_mid]="#e5c07b"
|
||||||
|
theme[used_end]="#e06c75"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#98c379"
|
||||||
|
theme[download_mid]="#e5c07b"
|
||||||
|
theme[download_end]="#e06c75"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#98c379"
|
||||||
|
theme[upload_mid]="#e5c07b"
|
||||||
|
theme[upload_end]="#e06c75"
|
83
btop/themes/paper.theme
Normal file
83
btop/themes/paper.theme
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
# Bashtop Paper theme
|
||||||
|
# c/o @s6muel
|
||||||
|
# inspired by @yorickpeterse's vim-paper theme at https://gitlab.com/yorickpeterse/vim-paper
|
||||||
|
#
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#F2EEDE"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#00"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#00"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#CC3E28"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#D8D5C7"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#00"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#d8d5c7"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#00"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#00"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#00"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#00"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#00"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#00"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#55"
|
||||||
|
theme[temp_mid]="#00"
|
||||||
|
theme[temp_end]="#CC3E28"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#55"
|
||||||
|
theme[cpu_mid]="#00"
|
||||||
|
theme[cpu_end]="#CC3E28"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#216609"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]="#216609"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#1e6fcc"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]="#1e6fcc"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#216609"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]="#216609"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#CC3E28"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]="#CC3E28"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#55"
|
||||||
|
theme[download_mid]="#00"
|
||||||
|
theme[download_end]="#CC3E28"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#55"
|
||||||
|
theme[upload_mid]="#00"
|
||||||
|
theme[upload_end]="#CC3E28"
|
90
btop/themes/phoenix-night.theme
Executable file
90
btop/themes/phoenix-night.theme
Executable file
@ -0,0 +1,90 @@
|
|||||||
|
# Theme: Phoenix Night
|
||||||
|
# By: Firehawke
|
||||||
|
# A combination of:
|
||||||
|
# Base theme colors from Pascal Jaeger's tokyo-night
|
||||||
|
# Graph theme colors from Pete Allebone's HotPurpleTrafficLight
|
||||||
|
# ...basically, I wanted most of Tokyo Night with a significantly more visible graph bar coloration.
|
||||||
|
|
||||||
|
# Main bg
|
||||||
|
theme[main_bg]="#1a1b26"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#cfc9c2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#cfc9c2"
|
||||||
|
|
||||||
|
# Higlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#7dcfff"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#414868"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#cfc9c2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#565f89"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#7dcfff"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#565f89"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#565f89"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#565f89"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#565f89"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#565f89"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#00ff00"
|
||||||
|
theme[temp_mid]="#ff9933"
|
||||||
|
theme[temp_end]="#ff0000"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#00ff00"
|
||||||
|
theme[cpu_mid]="#ccff66"
|
||||||
|
theme[cpu_end]="#ff0000"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_end]="#00ff00"
|
||||||
|
theme[free_mid]="#ccff66"
|
||||||
|
theme[free_start]="#ff0000"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#00ff00"
|
||||||
|
theme[cached_mid]="#ccff66"
|
||||||
|
theme[cached_end]="#ff0000"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#ff0000"
|
||||||
|
theme[available_mid]="#ccff66"
|
||||||
|
theme[available_end]="#00ff00"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#00ff00"
|
||||||
|
theme[used_mid]="#ccff66"
|
||||||
|
theme[used_end]="#ff0000"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#00ff00"
|
||||||
|
theme[download_mid]="#ff9933"
|
||||||
|
theme[download_end]="#ff0000"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#00ff00"
|
||||||
|
theme[upload_mid]="#ff9933"
|
||||||
|
theme[upload_end]="#ff0000"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#9999ff"
|
||||||
|
theme[process_mid]="#4d4dff"
|
||||||
|
theme[process_end]="#a64dff"
|
89
btop/themes/solarized_dark.theme
Normal file
89
btop/themes/solarized_dark.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop solarized theme
|
||||||
|
#by aristocratos
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#002b36"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#eee8d5"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#fdf6e3"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#b58900"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#073642"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#d6a200"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#073642"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#bad600"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#586e75"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#586e75"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#586e75"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#586e75"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#586e75"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#268bd2"
|
||||||
|
theme[temp_mid]="#ccb5f7"
|
||||||
|
theme[temp_end]="#fc5378"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#adc700"
|
||||||
|
theme[cpu_mid]="#d6a200"
|
||||||
|
theme[cpu_end]="#e65317"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#4e5900"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]="#bad600"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#114061"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]="#268bd2"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#705500"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]="#edb400"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#6e1718"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]="#e02f30"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#3d4070"
|
||||||
|
theme[download_mid]="#6c71c4"
|
||||||
|
theme[download_end]="#a3a8f7"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#701c45"
|
||||||
|
theme[upload_mid]="#d33682"
|
||||||
|
theme[upload_end]="#f56caf"
|
89
btop/themes/solarized_light.theme
Normal file
89
btop/themes/solarized_light.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#solarized_light theme
|
||||||
|
#modified from solarized_dark theme
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#fdf6e3"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#586e75"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#002b36"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#b58900"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#eee8d5"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#b58900"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#eee8d5"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#d33682"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#93a1a1"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#93a1a1"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#93a1a1"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#93a1a1"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#93a1a1"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#268bd2"
|
||||||
|
theme[temp_mid]="#ccb5f7"
|
||||||
|
theme[temp_end]="#fc5378"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#adc700"
|
||||||
|
theme[cpu_mid]="#d6a200"
|
||||||
|
theme[cpu_end]="#e65317"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#4e5900"
|
||||||
|
theme[free_mid]=""
|
||||||
|
theme[free_end]="#bad600"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#114061"
|
||||||
|
theme[cached_mid]=""
|
||||||
|
theme[cached_end]="#268bd2"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#705500"
|
||||||
|
theme[available_mid]=""
|
||||||
|
theme[available_end]="#edb400"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#6e1718"
|
||||||
|
theme[used_mid]=""
|
||||||
|
theme[used_end]="#e02f30"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#3d4070"
|
||||||
|
theme[download_mid]="#6c71c4"
|
||||||
|
theme[download_end]="#a3a8f7"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#701c45"
|
||||||
|
theme[upload_mid]="#d33682"
|
||||||
|
theme[upload_end]="#f56caf"
|
81
btop/themes/tokyo-night.theme
Normal file
81
btop/themes/tokyo-night.theme
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
# Theme: tokyo-night
|
||||||
|
# By: Pascal Jaeger
|
||||||
|
|
||||||
|
# Main bg
|
||||||
|
theme[main_bg]="#1a1b26"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#cfc9c2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#cfc9c2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#7dcfff"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#414868"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#cfc9c2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#565f89"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#7dcfff"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#565f89"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#565f89"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#565f89"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#565f89"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#565f89"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#9ece6a"
|
||||||
|
theme[temp_mid]="#e0af68"
|
||||||
|
theme[temp_end]="#f7768e"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#9ece6a"
|
||||||
|
theme[cpu_mid]="#e0af68"
|
||||||
|
theme[cpu_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#9ece6a"
|
||||||
|
theme[free_mid]="#e0af68"
|
||||||
|
theme[free_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#9ece6a"
|
||||||
|
theme[cached_mid]="#e0af68"
|
||||||
|
theme[cached_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#9ece6a"
|
||||||
|
theme[available_mid]="#e0af68"
|
||||||
|
theme[available_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#9ece6a"
|
||||||
|
theme[used_mid]="#e0af68"
|
||||||
|
theme[used_end]="#f7768e"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#9ece6a"
|
||||||
|
theme[download_mid]="#e0af68"
|
||||||
|
theme[download_end]="#f7768e"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#9ece6a"
|
||||||
|
theme[upload_mid]="#e0af68"
|
||||||
|
theme[upload_end]="#f7768e"
|
81
btop/themes/tokyo-storm.theme
Normal file
81
btop/themes/tokyo-storm.theme
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
# Theme: tokyo-storm
|
||||||
|
# By: Pascal Jaeger
|
||||||
|
|
||||||
|
# Main bg
|
||||||
|
theme[main_bg]="#24283b"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#cfc9c2"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#cfc9c2"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#7dcfff"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#414868"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#cfc9c2"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#565f89"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#7dcfff"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#565f89"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#565f89"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#565f89"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#565f89"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#565f89"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#9ece6a"
|
||||||
|
theme[temp_mid]="#e0af68"
|
||||||
|
theme[temp_end]="#f7768e"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#9ece6a"
|
||||||
|
theme[cpu_mid]="#e0af68"
|
||||||
|
theme[cpu_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#9ece6a"
|
||||||
|
theme[free_mid]="#e0af68"
|
||||||
|
theme[free_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#9ece6a"
|
||||||
|
theme[cached_mid]="#e0af68"
|
||||||
|
theme[cached_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#9ece6a"
|
||||||
|
theme[available_mid]="#e0af68"
|
||||||
|
theme[available_end]="#f7768e"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#9ece6a"
|
||||||
|
theme[used_mid]="#e0af68"
|
||||||
|
theme[used_end]="#f7768e"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#9ece6a"
|
||||||
|
theme[download_mid]="#e0af68"
|
||||||
|
theme[download_end]="#f7768e"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#9ece6a"
|
||||||
|
theme[upload_mid]="#e0af68"
|
||||||
|
theme[upload_end]="#f7768e"
|
89
btop/themes/tomorrow-night.theme
Normal file
89
btop/themes/tomorrow-night.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Nord theme but using the Tomorrow Night palette
|
||||||
|
#by Appuchia <contact@appu.ltd>
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#ffffff", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#1d1f21"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#c5c8c6"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#c5c8c6"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#81beb7"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#282a2e"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#c5c8c6"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#373b41"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#969896"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#81a2be"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#81a2be"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#81a2be"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#81a2be"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#81a2be"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#b5bd68"
|
||||||
|
theme[temp_mid]="#f0c674"
|
||||||
|
theme[temp_end]="#cc6666"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#b5bd68"
|
||||||
|
theme[cpu_mid]="#f0c674"
|
||||||
|
theme[cpu_end]="#cc6666"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#b5bd68"
|
||||||
|
theme[free_mid]="#f0c674"
|
||||||
|
theme[free_end]="#cc6666"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#b5bd68"
|
||||||
|
theme[cached_mid]="#f0c674"
|
||||||
|
theme[cached_end]="#cc6666"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#b5bd68"
|
||||||
|
theme[available_mid]="#f0c674"
|
||||||
|
theme[available_end]="#cc6666"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#b5bd68"
|
||||||
|
theme[used_mid]="#f0c674"
|
||||||
|
theme[used_end]="#cc6666"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#b5bd68"
|
||||||
|
theme[download_mid]="#f0c674"
|
||||||
|
theme[download_end]="#cc6666"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#b5bd68"
|
||||||
|
theme[upload_mid]="#f0c674"
|
||||||
|
theme[upload_end]="#cc6666"
|
89
btop/themes/whiteout.theme
Normal file
89
btop/themes/whiteout.theme
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#Bashtop "whiteout" theme
|
||||||
|
#by aristocratos
|
||||||
|
|
||||||
|
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
|
||||||
|
# example for white: "#FFFFFF", "#ff" or "255 255 255".
|
||||||
|
|
||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#ff"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#30"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#10"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#284d75"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#15283d"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#ff"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#dd"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#03521d"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#1a361e"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#3d3c14"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#1a1742"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#3b1515"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#80"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#184567"
|
||||||
|
theme[temp_mid]="#122c87"
|
||||||
|
theme[temp_end]="#9e0061"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#0b8e44"
|
||||||
|
theme[cpu_mid]="#a49104"
|
||||||
|
theme[cpu_end]="#8d0202"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#b0d090"
|
||||||
|
theme[free_mid]="#70ba26"
|
||||||
|
theme[free_end]="#496600"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#26c5ff"
|
||||||
|
theme[cached_mid]="#74e6fc"
|
||||||
|
theme[cached_end]="#0b1a29"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#ffb814"
|
||||||
|
theme[available_mid]="#ffd77a"
|
||||||
|
theme[available_end]="#292107"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#ff4769"
|
||||||
|
theme[used_mid]="#d9626d"
|
||||||
|
theme[used_end]="#3b1f1c"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#8d82de"
|
||||||
|
theme[download_mid]="#413786"
|
||||||
|
theme[download_end]="#130f29"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#f590f9"
|
||||||
|
theme[upload_mid]="#722e76"
|
||||||
|
theme[upload_end]="#2b062d"
|
2
btop/uninstall.sh
Executable file
2
btop/uninstall.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo make uninstall $@
|
788
fd/CHANGELOG.md
Normal file
788
fd/CHANGELOG.md
Normal file
@ -0,0 +1,788 @@
|
|||||||
|
# 10.2.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add --hyperlink option to add OSC 8 hyperlinks to output
|
||||||
|
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Build windows releases with rust 1.77 so windows 7 is still supported
|
||||||
|
- Deb packages now include symlink for fdfind to be more consistent with official packages
|
||||||
|
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
# 10.1.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Allow passing an optional argument to `--strip-cwd-prefix` of "always", "never", or "auto". to force whether the cwd prefix is stripped or not.
|
||||||
|
- Add a `--format` option which allows using a format template for direct ouput similar to the template used for `--exec`. (#1043)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
- Fix aarch64 page size again. This time it should actually work. (#1085, #1549) (@tavianator)
|
||||||
|
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- aarch64-apple-darwin target added to builds on the release page. Note that this is a tier 2 rust target.
|
||||||
|
|
||||||
|
# v10.0.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add `dir` as an alias to `directory` when using `-t` \ `--type`, see #1460 and #1464 (@Ato2207).
|
||||||
|
- Add support for @%s date format in time filters similar to GNU date (seconds since Unix epoch for --older/--newer), see #1493 (@nabellows)
|
||||||
|
- Breaking: No longer automatically ignore `.git` when using `--hidden` with vcs ignore enabled. This reverts the change in v9.0.0. While this feature
|
||||||
|
was often useful, it also broke some existing workflows, and there wasn't a good way to opt out of it. And there isn't really a good way for us to add
|
||||||
|
a way to opt out of it. And you can easily get similar behavior by adding `.git/` to your global fdignore file.
|
||||||
|
See #1457.
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Respect NO_COLOR environment variable with `--list-details` option. (#1455)
|
||||||
|
- Fix bug that would cause hidden files to be included despite gitignore rules
|
||||||
|
if search path is "." (#1461, BurntSushi/ripgrep#2711).
|
||||||
|
- aarch64 builds now use 64k page sizes with jemalloc. This fixes issues on some systems, such as ARM Macs that
|
||||||
|
have a larger system page size than the system that the binary was built on. (#1547)
|
||||||
|
- Address [CVE-2024-24576](https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html), by increasing minimum rust version.
|
||||||
|
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
- Minimum supported rust version is now 1.77.2
|
||||||
|
|
||||||
|
|
||||||
|
# v9.0.0
|
||||||
|
|
||||||
|
## Performance
|
||||||
|
|
||||||
|
- Performance has been *significantly improved*, both due to optimizations in the underlying `ignore`
|
||||||
|
crate (#1429), and in `fd` itself (#1422, #1408, #1362) - @tavianator.
|
||||||
|
[Benchmarks results](https://gist.github.com/tavianator/32edbe052f33ef60570cf5456b59de81) show gains
|
||||||
|
of 6-8x for full traversals of smaller directories (100k files) and up to 13x for larger directories (1M files).
|
||||||
|
|
||||||
|
- The default number of threads is now constrained to be at most 64. This should improve startup time on
|
||||||
|
systems with many CPU cores. (#1203, #1410, #1412, #1431) - @tmccombs and @tavianator
|
||||||
|
|
||||||
|
- New flushing behavior when writing output to stdout, providing better performance for TTY and non-TTY
|
||||||
|
use cases, see #1452 and #1313 (@tavianator).
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Support character and block device file types, see #1213 and #1336 (@cgzones)
|
||||||
|
- Breaking: `.git/` is now ignored by default when using `--hidden` / `-H`, use `--no-ignore` / `-I` or
|
||||||
|
`--no-ignore-vcs` to override, see #1387 and #1396 (@skoriop)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Fix `NO_COLOR` support, see #1421 (@acuteenvy)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Fixed documentation typos, see #1409 (@marcospb19)
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
Special thanks to @tavianator for his incredible work on performance in the `ignore` crate and `fd` itself.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# v8.7.1
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- `-1` properly conflicts with the exec family of options.
|
||||||
|
- `--max-results` overrides `-1`
|
||||||
|
- `--quiet` properly conflicts with the exec family of options. This used to be the case, but broke during the switch to clap-derive
|
||||||
|
- `--changed-within` now accepts a space as well as a "T" as the separator between date and time (due to update of chrono dependency)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
- Many dependencies were updated
|
||||||
|
- Some documentation was updated and fixed
|
||||||
|
|
||||||
|
# v8.7.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add flag --no-require-git to always respect gitignore files, see #1216 (@vegerot)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Fix logic for when to use global ignore file. There was a bug where the only case where the
|
||||||
|
global ignore file wasn't processed was if `--no-ignore` was passed, but neither `--unrestricted`
|
||||||
|
nor `--no-global-ignore-file` is passed. See #1209
|
||||||
|
|
||||||
|
# v8.6.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- New `--and <pattern>` option to add additional patterns that must also be matched. See #315
|
||||||
|
and #1139 (@Uthar)
|
||||||
|
- Added `--changed-after` as alias for `--changed-within`, to have a name consistent with `--changed-before`.
|
||||||
|
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Breaking: On Unix-like systems, `--type executable` now additionally checks if
|
||||||
|
the file is executable by the current user, see #1106 and #1169 (@ptipiak)
|
||||||
|
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Use fd instead of fd.exe for Powershell completions (when completions are generated on windows)
|
||||||
|
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
|
||||||
|
# v8.5.3
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Fix completion generation to not include full path of fd command
|
||||||
|
- Fix build error if completions feature is disabled
|
||||||
|
|
||||||
|
# v8.5.2
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Fix --owner option value parsing, see #1163 and #1164 (@tmccombs)
|
||||||
|
|
||||||
|
|
||||||
|
# v8.5.1
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Fix --threads/-j option value parsing, see #1160 and #1162 (@sharkdp)
|
||||||
|
|
||||||
|
|
||||||
|
# v8.5.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- `--type executable`/`-t` now works on Windows, see #1051 and #1061 (@tavianator)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Fixed differences between piped / non-piped output. This changes `fd`s behavior back to what we
|
||||||
|
had before 8.3.0, i.e. there will be no leading `./` prefixes, unless `--exec`/`-x`,
|
||||||
|
`--exec-batch`/`-X`, or `--print0`/`-0` are used. `--strip-cwd-prefix` can be used to strip that
|
||||||
|
prefix in those cases. See #1046, #1115, and #1121 (@tavianator)
|
||||||
|
- `fd` could previously crash with a panic due to a race condition in Rusts standard library
|
||||||
|
(see https://github.com/rust-lang/rust/issues/39364). This has been fixed by switching to a different
|
||||||
|
message passing implementation, see #1060 and #1146 (@tavianator)
|
||||||
|
- `fd`s memory usage will not grow unboundedly on huge directory trees, see #1146 (@tavianator)
|
||||||
|
- fd returns an error when current working directory does not exist while a search path is
|
||||||
|
specified, see #1072 (@vijfhoek)
|
||||||
|
- Improved "command not found" error message, see #1083 and #1109 (@themkat)
|
||||||
|
- Preserve command exit codes when using `--exec-batch`, see #1136 and #1137 (@amesgen)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- No leading `./` prefix for non-interactive results, see above.
|
||||||
|
- fd now colorizes paths in parallel, significantly improving performance, see #1148 (@tavianator)
|
||||||
|
- fd can now avoid `stat` syscalls even when colorizing paths, as long as the color scheme doesn't
|
||||||
|
require metadata, see #1148 (@tavianator)
|
||||||
|
- The statically linked `musl` versions of `fd` now use `jmalloc`, leading to a significant performance
|
||||||
|
improvement, see #1062 (@tavianator)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Added link back to GitHub in man page and `--help` text, see #1086 (@scottchiefbaker)
|
||||||
|
- Major update in how `fd` handles command line options internally, see #1067 (@tmccombs)
|
||||||
|
|
||||||
|
# v8.4.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Support multiple `--exec <cmd>` instances, see #406 and #960 (@tmccombs)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- "Argument list too long" errors can not appear anymore when using `--exec-batch`/`-X`, as the command invocations are automatically batched at the maximum possible size, even if `--batch-size` is not given. See #410 and #1020 (@tavianator)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Directories are now printed with an additional path separator at the end: `foo/bar/`, see #436 and #812 (@yyogo)
|
||||||
|
- The `-u` flag was changed to be equivalent to `-HI` (previously, a single `-u` was only equivalent to `-I`). Additional `-u` flags are still allowed, but ignored. See #840 and #986 (@jacksontheel)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Added installation instructions for RHEL8, see #989 (@ethsol)
|
||||||
|
|
||||||
|
|
||||||
|
# v8.3.2
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Invalid absolute path on windows when searching from the drive root, see #931 and #936 (@gbarta)
|
||||||
|
|
||||||
|
|
||||||
|
# v8.3.1
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Stop implying `--no-ignore-parent` when `--no-vcs-ignore` is supplied, see #907, #901, #908 (@tmccombs)
|
||||||
|
- fd no longer waits for the whole traversal if the only matches arrive within max_buffer_time, see #868 and #895 (@tavianator)
|
||||||
|
- `--max-results=1` now immediately quits after the first result, see #867
|
||||||
|
- `fd -h` does not panic anymore when stdout is closed, see #897
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Disable jemalloc on FreeBSD, see #896 (@xanderio)
|
||||||
|
- Updated man page, see #912 (@rlue)
|
||||||
|
- Updated zsh completions, see #932 (@tmccombs)
|
||||||
|
|
||||||
|
|
||||||
|
# v8.3.0
|
||||||
|
|
||||||
|
## Performance improvements
|
||||||
|
|
||||||
|
- Colorized output is now significantly faster, see #720 and #853 (@tavianator)
|
||||||
|
- Writing to stdout is now buffered if the output does not go to a TTY. This increases performance
|
||||||
|
when the output of `fd` is piped to another program or to a file, see #885 (@tmccombs, original
|
||||||
|
implementation by @sourlemon207)
|
||||||
|
- File metadata is now cached between the different filters that require it (e.g. `--owner`,
|
||||||
|
`--size`), reducing the number of `stat` syscalls when multiple filters are used; see #863
|
||||||
|
(@tavianator, original implementation by @alexmaco)
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Don't buffer command output from `--exec` when using a single thread. See #522
|
||||||
|
- Add new `-q, --quiet` flag, see #303 (@Asha20)
|
||||||
|
- Add new `--no-ignore-parent` flag, see #787 (@will459)
|
||||||
|
- Add new `--batch-size` flag, see #410 (@devonhollowood)
|
||||||
|
- Add opposing command-line options, see #595 (@Asha20)
|
||||||
|
- Add support for more filesystem indicators in `LS_COLORS`, see
|
||||||
|
https://github.com/sharkdp/lscolors/pull/35 (@tavianator)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Always show the `./` prefix for search results unless the output is a TTY or `--strip-cwd-prefix` is set, see #760 and #861 (@jcaplan)
|
||||||
|
- Set default path separator to `/` in MSYS, see #537 and #730 (@aswild)
|
||||||
|
- fd cannot search files under a RAM disk, see #752
|
||||||
|
- fd doesn't show substituted drive on Windows, see #365
|
||||||
|
- Properly handle write errors to devices that are full, see #737
|
||||||
|
- Use local time zone for time functions (`--change-newer-than`, `--change-older-than`), see #631 (@jacobmischka)
|
||||||
|
- Support `--list-details` on more platforms (like BusyBox), see #783
|
||||||
|
- The filters `--owner`, `--size`, and `--changed-{within,before}` now apply to symbolic links
|
||||||
|
themselves, rather than the link target, except when `--follow` is specified; see #863
|
||||||
|
- Change time comparisons to be exclusive, see #794 (@jacobmischka)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Apply custom `--path-separator` to commands run with `--exec(-batch)` and `--list-details`, see #697 (@aswild)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Many documentation updates
|
||||||
|
|
||||||
|
|
||||||
|
# v8.2.1
|
||||||
|
|
||||||
|
No functional changes with respect to v8.2.0. Bugfix in the release process.
|
||||||
|
|
||||||
|
# v8.2.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add new `--prune` flag, see #535 (@reima)
|
||||||
|
- Improved the usability of the time-based options, see #624 and #645 (@gorogoroumaru)
|
||||||
|
- Add support for exact file sizes in the `--size` filter, see #669 and #696 (@Rogach)
|
||||||
|
- `fd` now prints an error message if the search pattern requires a leading dot but
|
||||||
|
`--hidden` is not enabled (Unix only), see #615
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Avoid panic when performing limited searches in directories with restricted permissions, see #678
|
||||||
|
- Invalid numeric command-line arguments are silently ignored, see #675
|
||||||
|
- Disable jemalloc on Android, see #662
|
||||||
|
- The `--help` text will be colorless if `NO_COLOR` has been set, see #600 (@xanonid)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- If `LS_COLORS` is not set (e.g. on Windows), we now provide a more comprehensive default which
|
||||||
|
includes much more filetypes, see #604 and #682 (mjsir911).
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Added `zsh` completion files, see #654 and #189 (@smancill)
|
||||||
|
|
||||||
|
# v8.1.1
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Support colored output on older Windows versions if either (1) `--color=always` is set or (2) the `TERM` environment variable is set. See #469
|
||||||
|
|
||||||
|
# v8.1.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add new `--owner [user][:group]` filter. See #307 (pull #581) (@alexmaco)
|
||||||
|
- Add support for a global ignore file (`~/.config/fd/ignore` on Unix), see #575 (@soedirgo)
|
||||||
|
- Do not exit immediately if one of the search paths is missing, see #587 (@DJRHails)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Reverted a change from fd 8.0 that enabled colors on all Windows terminals (see below) in order to support older Windows versions again, see #577. Unfortunately, this re-opens #469
|
||||||
|
- Fix segfault caused by jemalloc on macOS Catalina, see #498
|
||||||
|
- Fix `--glob` behavior with empty pattern, see #579 (@SeamusConnor)
|
||||||
|
- Fix `--list-details` on FreeBSD, DragonFly BSD, OpenBSD and NetBSD. See #573 (@t6)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Updated documentation for `--size`, see #584
|
||||||
|
|
||||||
|
# v8.0.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add a new `-l`/`--list-details` option to show more details about the search results. This is
|
||||||
|
basically an alias for `--exec-batch ls -l` with some additional `ls` options.
|
||||||
|
This can be used in order to:
|
||||||
|
* see metadata like permissions, owner, file size, modification times (#491)
|
||||||
|
* see symlink targets (#482)
|
||||||
|
* achieve a deterministic output order (#324, #196, #159)
|
||||||
|
- Add a new `--max-results=<count>` option to limit the number of search results, see #472, #476 and #555
|
||||||
|
This can be useful to speed up searches in cases where you know that there are only N results.
|
||||||
|
Using this option is also (slightly) faster than piping to `head -n <count>` where `fd` can only
|
||||||
|
exit when it finds the search results `<count> + 1`.
|
||||||
|
- Add the alias `-1` for `--max-results=1`, see #561. (@SimplyDanny).
|
||||||
|
- Add new `--type socket` and `--type pipe` filters, see #511.
|
||||||
|
- Add new `--min-depth <depth>` and `--exact-depth <depth>` options in addition to the existing option
|
||||||
|
to limit the maximum depth. See #404.
|
||||||
|
- Support additional ANSI font styles in `LS_COLORS`: faint, slow blink, rapid blink, dimmed, hidden and strikethrough.
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Preserve non-UTF8 filenames: invalid UTF-8 filenames are now properly passed to child-processes
|
||||||
|
when using `--exec`, `--exec-batch` or `--list-details`. In `fd`'s output, we replace non-UTF-8
|
||||||
|
sequences with the "<22>" character. However, if the output of `fd` goes to another process, we
|
||||||
|
print the actual bytes of the filename. For more details, see #558 and #295.
|
||||||
|
- `LS_COLORS` entries with unsupported font styles are not completely ignored, see #552
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Colored output will now be enabled by default on older Windows versions.
|
||||||
|
This allows the use of colored output if the terminal supports it (e.g.
|
||||||
|
MinTTY, Git Bash). On the other hand, this will be a regression for users
|
||||||
|
on older Windows versions with terminals that do not support ANSI escape
|
||||||
|
sequences. Affected users can use an alias `fd="fd --color=never"` to
|
||||||
|
continue using `fd` without colors. There is no change of behavior for
|
||||||
|
Windows 10. See #469.
|
||||||
|
- When using `--glob` in combination with `--full-path`, a `*` character does not match a path
|
||||||
|
separation character (`/` or `\\`) anymore. You can use `**` for that. This allows things like
|
||||||
|
`fd -p -g '/some/base/path/*/*/*.txt'` which would previously match to arbitrary depths (instead
|
||||||
|
of exactly two folders below `/some/base/path`. See #404.
|
||||||
|
- "Legacy" support to use `fd -exec` (with a single dash) has been removed. Use `fd -x` or
|
||||||
|
`fd --exec` instead.
|
||||||
|
- Overall improved error handling and error messages.
|
||||||
|
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Korean translation of the README, see: [한국어](https://github.com/spearkkk/fd-kor) (@spearkkk)
|
||||||
|
|
||||||
|
|
||||||
|
# v7.5.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Added `--one-file-system` (aliases: `--mount`, `--xdev`) to not cross file system boundaries on Unix and Windows, see #507 (@FallenWarrior2k).
|
||||||
|
- Added `--base-directory` to change the working directory in which `fd` is run, see #509 and #475 (@hajdamak).
|
||||||
|
- `fd` will not use colored output if the `NO_COLOR` environment variable is set, see #550 and #551 (@metadave).
|
||||||
|
- `fd --exec` will return exit code 1 if one of the executed commands fails, see #526 and #531 (@fusillicode and @Giuffre)
|
||||||
|
|
||||||
|
## Bug Fixes
|
||||||
|
|
||||||
|
- Fixed 'command not found' error when using zsh completion, see #487 (@barskern).
|
||||||
|
- `fd -L` should include broken symlinks, see #357 and #497 (@tommilligan, @neersighted and @sharkdp)
|
||||||
|
- Display directories even if we don't have permission to enter, see #437 (@sharkdp)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- A flag can now be passed multiple times without producing an error, see #488 and #496 (@rootbid).
|
||||||
|
- Search results are sorted when using the `-X` option to match the behaviour of piping to `xargs`, see #441 and #524 (@Marcoleni @crash-g).
|
||||||
|
|
||||||
|
|
||||||
|
# v7.4.0
|
||||||
|
|
||||||
|
## Performance improvements
|
||||||
|
|
||||||
|
- Reduce number of `stat` syscalls, improving the performance for searches where file metadata is
|
||||||
|
required (`--type`, `--size`, `--changed-within`, …), see #434 (@tavianator)
|
||||||
|
- Use jemalloc by default, improving the performance for almost all searches, see #481. Note that
|
||||||
|
Windows and `*musl*` builds do not profit from this.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Added a new `-g`/`--glob` option to switch to glob-based searches (instead of regular expression
|
||||||
|
based searches). This is accompanied by a new `--regex` option that can be used to switch back,
|
||||||
|
if users want to `alias fd="fd --glob"`. See #284
|
||||||
|
- Added a new `--path-separator <sep>` option which can be useful for Windows users who
|
||||||
|
want/need `fd` to use `/` instead of `\`, see #428 and #153 (@mookid)
|
||||||
|
- Added support for hidden files on Windows, see #379
|
||||||
|
- When `fd` is run with the `--exec-batch`/`-X` option, it now exposes the exit status of the
|
||||||
|
command that was run, see #333.
|
||||||
|
- Exit immediately when Ctrl-C has been pressed twice, see #423
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Make `--changed-within`/`--changed-before` work for directories, see #470
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- Pre-built `fd` binaries should now be available for `armhf` targets, see #457 (@detly)
|
||||||
|
- `fd` is now available on Alpine Linux, see #451 (@5paceToast)
|
||||||
|
- `fd` is now in the officla FreeBSD repositories, see #412 (@t6)
|
||||||
|
- Added OpenBSD install instructions, see #421 (@evitalis)
|
||||||
|
- Added metadata to the Debian package, see #416 (@cathalgarvey)
|
||||||
|
- `fd` can be installed via npm, see #438 (@pablopunk)
|
||||||
|
|
||||||
|
|
||||||
|
# v7.3.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- New `--exec-batch <cmd>`/`-X <cmd>` option for batch execution of commands, see #360 (@kimsnj).
|
||||||
|
This allows you to do things like:
|
||||||
|
``` bash
|
||||||
|
fd … -X vim # open all search results in vim (or any other editor)
|
||||||
|
fd … -X ls -l # view detailed stats about the search results with 'ls'
|
||||||
|
fd -e svg -X inkscape # open all SVG files in Inkscape
|
||||||
|
```
|
||||||
|
- Support for 24-bit color codes (when specified via `LS_COLORS`) as well as
|
||||||
|
different font styles (bold, italic, underline).
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- A few performance improvements, in particular when printing lots of colorized
|
||||||
|
results to the console, see #370
|
||||||
|
- The `LS_COLORS` handling has been "outsourced" to a separate crate (https://github.com/sharkdp/lscolors) that is now being used by other tools as well: [fselect](https://github.com/jhspetersson/fselect), [lsd](https://github.com/Peltoche/lsd/pull/84). For details, see #363.
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
- `fd` will be available in Ubuntu Disco DIngo (19.04), see #373 (@sylvestre)
|
||||||
|
- This release should come with a static ARM binary (`arm-unknown-linux-musleabihf`), see #320 (@duncanfinney)
|
||||||
|
- Various documentation improvements, see #389
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
Special thanks to @alexmaco for his awesome work on refactoring and code improvements! (see #401, #398, and #383)
|
||||||
|
|
||||||
|
# v7.2.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Added support for filtering by file modification time by adding two new options `--changed-before <date|duration>` and `--changed-within <..>`. For more details, see the `--help` text, the man page, the relevant issue #165 and the PR #339 (@kimsnj)
|
||||||
|
* Added `--show-errors` option to enable the display of filesystem error messages such as "permission denied", see #311 (@psinghal20 and @majecty)
|
||||||
|
* Added `--maxdepth` as a (hidden) alias for `--max-depth`, see #323 (@mqudsi)
|
||||||
|
* Added `--search-path` option which can be supplied to replace the positional `path` argument at any position.
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* Loosen strict handling of missing `--ignore-file`, see #280 (@psinghal20)
|
||||||
|
* Re-enabled `.ignore` files, see #156.
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
* `fd` could previously get stuck when run from the root directory in the
|
||||||
|
presence of zombie processes. This curious bug has been fixed in Rust 1.29 and higher. For more details, see #288, [rust-lang/rust#50619](https://github.com/rust-lang/rust/issues/50619) and [the fix](https://github.com/rust-lang/rust/pull/50630)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* `fd` has officially landed in Debian! See #345 for details. Thanks goes to @sylvestre, @paride and possibly others I don't know about.
|
||||||
|
* Added Chinese translation of README (@chinanf-boy)
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
A special thanks goes to @joshleeb for his amazing improvements throughout
|
||||||
|
the code base (new tests, refactoring work and various other things)!
|
||||||
|
|
||||||
|
|
||||||
|
# v7.1.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Added `--size` filter option, see #276 (@stevepentland, @JonathanxD and @alexmaco)
|
||||||
|
* Added `--type empty` (or `-t e`) to search for empty files and/or directories, see #273
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* With the new version, `.gitignore` files will only be respected in Git repositories, not outside.
|
||||||
|
* A few performance improvements for `--type` searches, see 641976cf7ad311ba741571ca8b7f02b2654b6955 and 50a2bab5cd52d26d4a3bc786885a2c270ed3b227
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* Starting with this release, we will offer pre-built ARM binaries, see #244
|
||||||
|
* Added instructions on how to use `fd` with `emacs`, see #282 (@redguardtoo)
|
||||||
|
* `fd` is now in the official openSUSE repositories, see #275 (@avindra)
|
||||||
|
* `fd` is now available via MacPorts, see #291 (@raimue)
|
||||||
|
|
||||||
|
|
||||||
|
# v7.0.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Added `--type executable` (or `-t x`) to search for executable files only, see #246 (@PramodBisht)
|
||||||
|
* Added support for `.fdignore` files, see #156 and #241.
|
||||||
|
* Added `--ignore-file` option to add custom ignore files, see #156.
|
||||||
|
* Suggest `--fixed-strings` on invalid regular expressions, see #234 (@PramodBisht)
|
||||||
|
* Detect when user supplied path instead of pattern, see #235.
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* `.ignore` and `.rgignore` files are not parsed anymore. Use `.fdignore` files
|
||||||
|
or add custom files via `--ignore-file` instead.
|
||||||
|
* Updated to `regex-syntax` 0.5 (@cuviper)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
* Properly normalize absolute paths, see #268
|
||||||
|
* Invalid utf8 filenames displayed when `-e` is used, see #250
|
||||||
|
* If `--type` is used, fifos/sockets/etc. are always shown, see #260
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* Packaging:
|
||||||
|
* The Arch Linux package is now simply called `fd`.
|
||||||
|
* There is now a `fd` ebuild for Gentoo Linux.
|
||||||
|
* There is a `scoop` package for `fd` (Windows).
|
||||||
|
* There is a `Chocolatey` package for `fd` (Windows).
|
||||||
|
* There is a Fedora `copr` package for `fd`.
|
||||||
|
|
||||||
|
|
||||||
|
# v6.3.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Files with multiple extensions can now be found via `--extension`/`-e`, see #214 (@althonos)
|
||||||
|
``` bash
|
||||||
|
> fd -e tar.gz
|
||||||
|
```
|
||||||
|
|
||||||
|
* Added new `-F`/`--fixed-strings`/`--literal` option that treats the pattern as a literal string instead of a regular expression, see #157
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> fd -F 'file(1).txt'
|
||||||
|
```
|
||||||
|
|
||||||
|
* Allow `-exec` to work as `--exec`, see #226 (@stevepentland)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
* Fixed `Ctrl-C` handling when using `--exec`, see #224 (@Doxterpepper)
|
||||||
|
|
||||||
|
* Fixed wrong file owner for files in deb package, see #213
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* Replaced old gif by a fancy new SVG screencast (@marionebl)
|
||||||
|
* Updated [benchmark results](https://github.com/sharkdp/fd#benchmark) (fd has become faster in the meantime!). There is a new repository that hosts several benchmarking scripts for fd: https://github.com/sharkdp/fd-benchmarks
|
||||||
|
|
||||||
|
|
||||||
|
# v6.2.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Support for filtering by multiple file extensions and multiple file types, see #199 and #177
|
||||||
|
(@tkadur).
|
||||||
|
|
||||||
|
For example, it's possible to search for C++ source or header files:
|
||||||
|
``` bash
|
||||||
|
> fd -e cpp -e c -e cxx -e h pattern
|
||||||
|
```
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* The size of the output buffer (for sorting search results) is now limited to 1000 entries. This
|
||||||
|
improves the search speed significantly if there are a lot of results, see #191 (@sharkdp).
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
* Fix a bug where long-running searches could not be killed via Ctrl-C, see #210 (@Doxterpepper)
|
||||||
|
* fd's exit codes are now in accordance with Unix standards, see #201 (@Doxterpepper)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* Bash, zsh and fish completion should now work with the Ubuntu `.deb` packages, see #195 and #209
|
||||||
|
(@tmccombs and @sharkdp)
|
||||||
|
* There is a new section on how to set up `fzf` to use `fd` in the
|
||||||
|
[README](https://github.com/sharkdp/fd#using-fd-with-fzf), see #168.
|
||||||
|
|
||||||
|
|
||||||
|
# v6.1.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Support for multiple search paths, see #166 (@Doxterpepper)
|
||||||
|
* Added `--no-ignore-vcs` option to disable `.gitignore` and other VCS ignore files,
|
||||||
|
without disabling `.ignore` files - see #156 (@ptzz).
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
* Handle terminal signals, see #128 (@Doxterpepper)
|
||||||
|
* Fixed hang on `--exec` when user input was required, see #178 and #193 (@reima)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* Debian packages are now created via Travis CI and should be available for this and all
|
||||||
|
future releases (@tmccombs).
|
||||||
|
* fd is now available on Void Linux (@maxice8)
|
||||||
|
* The minimum required Rust version is now 1.20
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
@Doxterpepper deserves a special mention for his great work that is included in this release and
|
||||||
|
for the support in ticket discussions and concerning Travis CI fixes. Thank you very much!
|
||||||
|
|
||||||
|
Thanks also go out to @tmccombs for the work on Debian packages and for reviewing a lot of pull requests!
|
||||||
|
|
||||||
|
# v6.0.0
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- The `--exec`/`-x` option does not spawn an intermediate shell anymore. This improves the
|
||||||
|
performance of parallel command execution and fixes a whole class of (present and potentially
|
||||||
|
future) problems with shell escaping. The drawback is that shell commands cannot directly be
|
||||||
|
called with `--exec`. See #155 for the full discussion. These changes have been implemented by
|
||||||
|
@reima (Thanks!).
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- `--exec` does not escape cmd.exe metacharacters on Windows (see #155, as above).
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* *fd* is now available in the FreeBSD ports (@andoriyu)
|
||||||
|
* The minimal `rustc` version is now checked when building with `cargo`, see #164 (@matematikaadit)
|
||||||
|
* The output directory for the shell completion files is created if it does not exist (@andoriyu)
|
||||||
|
|
||||||
|
|
||||||
|
# v5.0.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Added new `--exec`, `-x` option for parallel command execution (@mmstick, see #84 and #116). See the corresponding [README section](https://github.com/sharkdp/fd#parallel-command-execution) for an introduction.
|
||||||
|
* Auto-disable color output on unsupported Windows shells like `cmd.exe` (@iology, see #129)
|
||||||
|
* Added the `--exclude`, `-X` option to suppress certain files/directories in the search results
|
||||||
|
(see #89).
|
||||||
|
* Added ripgrep aliases `-u` and `-uu` for `--no-ignore` and `--no-ignore --hidden`, respectively
|
||||||
|
(@unsignedint, see #92)
|
||||||
|
* Added `-i`, `--ignore-case` (@iology, see #95)
|
||||||
|
* Made smart case really smart (@reima, see #103)
|
||||||
|
* Added RedoxOS support (@goyox86, see #131)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* The dot `.` can now match newlines in file names (@iology, see #111)
|
||||||
|
* The short `--type` argument for symlinks has been changed from `s` to `l` (@jcpetkovich, see #83)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
* Various improvements in root-path and symlink handling (@iology, see #82, #107, and #113)
|
||||||
|
* Fixed absolute path handling on Windows (@reima, #93)
|
||||||
|
* Fixed: current directory not included when using relative path (see #81)
|
||||||
|
* Fixed `--type` behavior for unknown file types (@iology, see #150)
|
||||||
|
* Some fixes around `--exec` (@iology, see #142)
|
||||||
|
|
||||||
|
## Other
|
||||||
|
|
||||||
|
* Major updates and bugfixes to our continuous integration and deployment tooling on Travis
|
||||||
|
(@matematikaadit, see #149, #145, #133)
|
||||||
|
* Code style improvements & automatic style checking via `rustfmt` on Travis (@Detegr, see #99)
|
||||||
|
* Added a man page (@pickfire, see #77)
|
||||||
|
* *fd* has been relicensed under the dual license MIT/Apache-2.0 (@Detegr, see #105)
|
||||||
|
* Major refactorings and code improvements (Big thanks to @gsquire, @reima, @iology)
|
||||||
|
* First version of [`CONTRIBUTING`](https://github.com/sharkdp/fd/blob/master/CONTRIBUTING.md) guidelines
|
||||||
|
* There is now a Nix package (@mehandes)
|
||||||
|
* *fd* is now in the official Arch Linux repos (@cassava)
|
||||||
|
* Improved tooling around shell completion files (@ImbaKnugel, see #124)
|
||||||
|
* Updated tutorial in the [`README`](https://github.com/sharkdp/fd/blob/master/README.md)
|
||||||
|
* The minimum required version of Rust has been bumped to 1.19.
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
A *lot* of things have happened since the last release and I'd like to thank all contributors for their great support. I'd also like to thank those that have contributed by reporting bugs and by posting feature requests.
|
||||||
|
|
||||||
|
I'd also like to take this chance to say a special Thank You to a few people that have stood out in one way or another: To @iology, for contributing a multitude of bugfixes, improvements and new features. To @reima and @Detegr for their continuing great support. To @mmstick, for implementing the most advanced new feature of *fd*. And to @matematikaadit for the CI/tooling upgrades.
|
||||||
|
|
||||||
|
|
||||||
|
# v4.0.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Added filtering by file extension, for example `fd -e txt`, see #56 (@reima)
|
||||||
|
* Add option to force colored output: `--color always`, see #49 (@Detegr)
|
||||||
|
* Generate Shell completions for Bash, ZSH, Fish and Powershell, see #64 (@ImbaKnugel)
|
||||||
|
* Better & extended `--help` text (@abaez and @Detegr)
|
||||||
|
* Proper Windows support, see #70
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* The integration tests have been re-written in Rust :sparkles:, making them platform-independent and easily callable via `cargo test` - see #65 (many thanks to @reima!)
|
||||||
|
* New tutorial in the README (@deg4uss3r)
|
||||||
|
* Reduced number of `stat` syscalls for each result from 3 to 1, see #36.
|
||||||
|
* Enabled Appveyor CI
|
||||||
|
|
||||||
|
# v3.1.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Added file type filtering, e.g. `find --type directory` or `find -t f` (@exitium)
|
||||||
|
|
||||||
|
# v3.0.0
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Directories are now traversed in parallel, leading to significant performance improvements (see [benchmarks](https://github.com/sharkdp/fd#benchmark))
|
||||||
|
- Added `--print0` option (@michaelmior)
|
||||||
|
- Added AUR packages (@wezm)
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
- Changed short flag for `--follow` from `-f` to `-L` (consistency with `ripgrep`)
|
||||||
|
|
||||||
|
# v2.0.0
|
||||||
|
|
||||||
|
* Changed `--sensitive` to `--case-sensitive`
|
||||||
|
* Changed `--absolute` to `--absolute-path`
|
||||||
|
* Throw an error if root directory is not existent, see #39
|
||||||
|
* Use absolute paths if the root dir is an absolute path, see #40
|
||||||
|
* Handle invalid UTF-8, see #34 #38
|
||||||
|
* Support `-V`, `--version` by switching from `getopts` to `clap`.
|
||||||
|
|
||||||
|
Misc:
|
||||||
|
* It's now possible to install `fd` via homebrew on macOS: `brew install fd`.
|
||||||
|
|
||||||
|
# v1.1.0
|
||||||
|
|
||||||
|
- Windows compatibility (@sebasv), see #29 #35
|
||||||
|
- Safely exit on broken output pipes (e.g.: usage with `head`, `tail`, ..), see #24
|
||||||
|
- Backport for rust 1.16, see #23
|
||||||
|
|
||||||
|
# v1.0.0
|
||||||
|
|
||||||
|
* Respect `.(git)ignore` files
|
||||||
|
* Use `LS_COLORS` environment variable directly, instead of `~/.dir_colors` file.
|
||||||
|
* Added unit and integration tests
|
||||||
|
* Added optional second argument (search path)
|
||||||
|
|
||||||
|
# v0.3.0
|
||||||
|
|
||||||
|
- Parse dircolors files, closes #20
|
||||||
|
- Colorize each path component, closes #19
|
||||||
|
- Add short command line option for --hidden, see #18
|
||||||
|
|
||||||
|
# v0.2.0
|
||||||
|
|
||||||
|
- Option to follow symlinks, disable colors, closes #16, closes #17
|
||||||
|
- `--filename` instead of `--full-path`
|
||||||
|
- Option to search hidden directories, closes #12
|
||||||
|
- Configurable search depth, closes #13
|
||||||
|
- Detect interactive terminal, closes #11
|
||||||
|
|
||||||
|
# v0.1.0
|
||||||
|
|
||||||
|
Initial release
|
201
fd/LICENSE-APACHE
Normal file
201
fd/LICENSE-APACHE
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright 2017-2020 fd developers
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
21
fd/LICENSE-MIT
Normal file
21
fd/LICENSE-MIT
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017-present The fd developers
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
730
fd/README.md
Normal file
730
fd/README.md
Normal file
@ -0,0 +1,730 @@
|
|||||||
|
# fd
|
||||||
|
|
||||||
|
[![CICD](https://github.com/sharkdp/fd/actions/workflows/CICD.yml/badge.svg)](https://github.com/sharkdp/fd/actions/workflows/CICD.yml)
|
||||||
|
[![Version info](https://img.shields.io/crates/v/fd-find.svg)](https://crates.io/crates/fd-find)
|
||||||
|
[[中文](https://github.com/cha0ran/fd-zh)]
|
||||||
|
[[한국어](https://github.com/spearkkk/fd-kor)]
|
||||||
|
|
||||||
|
`fd` is a program to find entries in your filesystem.
|
||||||
|
It is a simple, fast and user-friendly alternative to [`find`](https://www.gnu.org/software/findutils/).
|
||||||
|
While it does not aim to support all of `find`'s powerful functionality, it provides sensible
|
||||||
|
(opinionated) defaults for a majority of use cases.
|
||||||
|
|
||||||
|
[Installation](#installation) • [How to use](#how-to-use) • [Troubleshooting](#troubleshooting)
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Intuitive syntax: `fd PATTERN` instead of `find -iname '*PATTERN*'`.
|
||||||
|
* Regular expression (default) and glob-based patterns.
|
||||||
|
* [Very fast](#benchmark) due to parallelized directory traversal.
|
||||||
|
* Uses colors to highlight different file types (same as `ls`).
|
||||||
|
* Supports [parallel command execution](#command-execution)
|
||||||
|
* Smart case: the search is case-insensitive by default. It switches to
|
||||||
|
case-sensitive if the pattern contains an uppercase
|
||||||
|
character[\*](http://vimdoc.sourceforge.net/htmldoc/options.html#'smartcase').
|
||||||
|
* Ignores hidden directories and files, by default.
|
||||||
|
* Ignores patterns from your `.gitignore`, by default.
|
||||||
|
* The command name is *50%* shorter[\*](https://github.com/ggreer/the_silver_searcher) than
|
||||||
|
`find` :-).
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
![Demo](doc/screencast.svg)
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
First, to get an overview of all available command line options, you can either run
|
||||||
|
[`fd -h`](#command-line-options) for a concise help message or `fd --help` for a more detailed
|
||||||
|
version.
|
||||||
|
|
||||||
|
### Simple search
|
||||||
|
|
||||||
|
*fd* is designed to find entries in your filesystem. The most basic search you can perform is to
|
||||||
|
run *fd* with a single argument: the search pattern. For example, assume that you want to find an
|
||||||
|
old script of yours (the name included `netflix`):
|
||||||
|
``` bash
|
||||||
|
> fd netfl
|
||||||
|
Software/python/imdb-ratings/netflix-details.py
|
||||||
|
```
|
||||||
|
If called with just a single argument like this, *fd* searches the current directory recursively
|
||||||
|
for any entries that *contain* the pattern `netfl`.
|
||||||
|
|
||||||
|
### Regular expression search
|
||||||
|
|
||||||
|
The search pattern is treated as a regular expression. Here, we search for entries that start
|
||||||
|
with `x` and end with `rc`:
|
||||||
|
``` bash
|
||||||
|
> cd /etc
|
||||||
|
> fd '^x.*rc$'
|
||||||
|
X11/xinit/xinitrc
|
||||||
|
X11/xinit/xserverrc
|
||||||
|
```
|
||||||
|
|
||||||
|
The regular expression syntax used by `fd` is [documented here](https://docs.rs/regex/latest/regex/#syntax).
|
||||||
|
|
||||||
|
### Specifying the root directory
|
||||||
|
|
||||||
|
If we want to search a specific directory, it can be given as a second argument to *fd*:
|
||||||
|
``` bash
|
||||||
|
> fd passwd /etc
|
||||||
|
/etc/default/passwd
|
||||||
|
/etc/pam.d/passwd
|
||||||
|
/etc/passwd
|
||||||
|
```
|
||||||
|
|
||||||
|
### List all files, recursively
|
||||||
|
|
||||||
|
*fd* can be called with no arguments. This is very useful to get a quick overview of all entries
|
||||||
|
in the current directory, recursively (similar to `ls -R`):
|
||||||
|
``` bash
|
||||||
|
> cd fd/tests
|
||||||
|
> fd
|
||||||
|
testenv
|
||||||
|
testenv/mod.rs
|
||||||
|
tests.rs
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to use this functionality to list all files in a given directory, you have to use
|
||||||
|
a catch-all pattern such as `.` or `^`:
|
||||||
|
``` bash
|
||||||
|
> fd . fd/tests/
|
||||||
|
testenv
|
||||||
|
testenv/mod.rs
|
||||||
|
tests.rs
|
||||||
|
```
|
||||||
|
|
||||||
|
### Searching for a particular file extension
|
||||||
|
|
||||||
|
Often, we are interested in all files of a particular type. This can be done with the `-e` (or
|
||||||
|
`--extension`) option. Here, we search for all Markdown files in the fd repository:
|
||||||
|
``` bash
|
||||||
|
> cd fd
|
||||||
|
> fd -e md
|
||||||
|
CONTRIBUTING.md
|
||||||
|
README.md
|
||||||
|
```
|
||||||
|
|
||||||
|
The `-e` option can be used in combination with a search pattern:
|
||||||
|
``` bash
|
||||||
|
> fd -e rs mod
|
||||||
|
src/fshelper/mod.rs
|
||||||
|
src/lscolors/mod.rs
|
||||||
|
tests/testenv/mod.rs
|
||||||
|
```
|
||||||
|
|
||||||
|
### Searching for a particular file name
|
||||||
|
|
||||||
|
To find files with exactly the provided search pattern, use the `-g` (or `--glob`) option:
|
||||||
|
``` bash
|
||||||
|
> fd -g libc.so /usr
|
||||||
|
/usr/lib32/libc.so
|
||||||
|
/usr/lib/libc.so
|
||||||
|
```
|
||||||
|
|
||||||
|
### Hidden and ignored files
|
||||||
|
By default, *fd* does not search hidden directories and does not show hidden files in the
|
||||||
|
search results. To disable this behavior, we can use the `-H` (or `--hidden`) option:
|
||||||
|
``` bash
|
||||||
|
> fd pre-commit
|
||||||
|
> fd -H pre-commit
|
||||||
|
.git/hooks/pre-commit.sample
|
||||||
|
```
|
||||||
|
|
||||||
|
If we work in a directory that is a Git repository (or includes Git repositories), *fd* does not
|
||||||
|
search folders (and does not show files) that match one of the `.gitignore` patterns. To disable
|
||||||
|
this behavior, we can use the `-I` (or `--no-ignore`) option:
|
||||||
|
``` bash
|
||||||
|
> fd num_cpu
|
||||||
|
> fd -I num_cpu
|
||||||
|
target/debug/deps/libnum_cpus-f5ce7ef99006aa05.rlib
|
||||||
|
```
|
||||||
|
|
||||||
|
To really search *all* files and directories, simply combine the hidden and ignore features to show
|
||||||
|
everything (`-HI`) or use `-u`/`--unrestricted`.
|
||||||
|
|
||||||
|
### Matching the full path
|
||||||
|
By default, *fd* only matches the filename of each file. However, using the `--full-path` or `-p` option,
|
||||||
|
you can match against the full path.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
> fd -p -g '**/.git/config'
|
||||||
|
> fd -p '.*/lesson-\d+/[a-z]+.(jpg|png)'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Command execution
|
||||||
|
|
||||||
|
Instead of just showing the search results, you often want to *do something* with them. `fd`
|
||||||
|
provides two ways to execute external commands for each of your search results:
|
||||||
|
|
||||||
|
* The `-x`/`--exec` option runs an external command *for each of the search results* (in parallel).
|
||||||
|
* The `-X`/`--exec-batch` option launches the external command once, with *all search results as arguments*.
|
||||||
|
|
||||||
|
#### Examples
|
||||||
|
|
||||||
|
Recursively find all zip archives and unpack them:
|
||||||
|
``` bash
|
||||||
|
fd -e zip -x unzip
|
||||||
|
```
|
||||||
|
If there are two such files, `file1.zip` and `backup/file2.zip`, this would execute
|
||||||
|
`unzip file1.zip` and `unzip backup/file2.zip`. The two `unzip` processes run in parallel
|
||||||
|
(if the files are found fast enough).
|
||||||
|
|
||||||
|
Find all `*.h` and `*.cpp` files and auto-format them inplace with `clang-format -i`:
|
||||||
|
``` bash
|
||||||
|
fd -e h -e cpp -x clang-format -i
|
||||||
|
```
|
||||||
|
Note how the `-i` option to `clang-format` can be passed as a separate argument. This is why
|
||||||
|
we put the `-x` option last.
|
||||||
|
|
||||||
|
Find all `test_*.py` files and open them in your favorite editor:
|
||||||
|
``` bash
|
||||||
|
fd -g 'test_*.py' -X vim
|
||||||
|
```
|
||||||
|
Note that we use capital `-X` here to open a single `vim` instance. If there are two such files,
|
||||||
|
`test_basic.py` and `lib/test_advanced.py`, this will run `vim test_basic.py lib/test_advanced.py`.
|
||||||
|
|
||||||
|
To see details like file permissions, owners, file sizes etc., you can tell `fd` to show them
|
||||||
|
by running `ls` for each result:
|
||||||
|
``` bash
|
||||||
|
fd … -X ls -lhd --color=always
|
||||||
|
```
|
||||||
|
This pattern is so useful that `fd` provides a shortcut. You can use the `-l`/`--list-details`
|
||||||
|
option to execute `ls` in this way: `fd … -l`.
|
||||||
|
|
||||||
|
The `-X` option is also useful when combining `fd` with [ripgrep](https://github.com/BurntSushi/ripgrep/) (`rg`) in order to search within a certain class of files, like all C++ source files:
|
||||||
|
```bash
|
||||||
|
fd -e cpp -e cxx -e h -e hpp -X rg 'std::cout'
|
||||||
|
```
|
||||||
|
|
||||||
|
Convert all `*.jpg` files to `*.png` files:
|
||||||
|
``` bash
|
||||||
|
fd -e jpg -x convert {} {.}.png
|
||||||
|
```
|
||||||
|
Here, `{}` is a placeholder for the search result. `{.}` is the same, without the file extension.
|
||||||
|
See below for more details on the placeholder syntax.
|
||||||
|
|
||||||
|
The terminal output of commands run from parallel threads using `-x` will not be interlaced or garbled,
|
||||||
|
so `fd -x` can be used to rudimentarily parallelize a task run over many files.
|
||||||
|
An example of this is calculating the checksum of each individual file within a directory.
|
||||||
|
```
|
||||||
|
fd -tf -x md5sum > file_checksums.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Placeholder syntax
|
||||||
|
|
||||||
|
The `-x` and `-X` options take a *command template* as a series of arguments (instead of a single string).
|
||||||
|
If you want to add additional options to `fd` after the command template, you can terminate it with a `\;`.
|
||||||
|
|
||||||
|
The syntax for generating commands is similar to that of [GNU Parallel](https://www.gnu.org/software/parallel/):
|
||||||
|
|
||||||
|
- `{}`: A placeholder token that will be replaced with the path of the search result
|
||||||
|
(`documents/images/party.jpg`).
|
||||||
|
- `{.}`: Like `{}`, but without the file extension (`documents/images/party`).
|
||||||
|
- `{/}`: A placeholder that will be replaced by the basename of the search result (`party.jpg`).
|
||||||
|
- `{//}`: The parent of the discovered path (`documents/images`).
|
||||||
|
- `{/.}`: The basename, with the extension removed (`party`).
|
||||||
|
|
||||||
|
If you do not include a placeholder, *fd* automatically adds a `{}` at the end.
|
||||||
|
|
||||||
|
#### Parallel vs. serial execution
|
||||||
|
|
||||||
|
For `-x`/`--exec`, you can control the number of parallel jobs by using the `-j`/`--threads` option.
|
||||||
|
Use `--threads=1` for serial execution.
|
||||||
|
|
||||||
|
### Excluding specific files or directories
|
||||||
|
|
||||||
|
Sometimes we want to ignore search results from a specific subdirectory. For example, we might
|
||||||
|
want to search all hidden files and directories (`-H`) but exclude all matches from `.git`
|
||||||
|
directories. We can use the `-E` (or `--exclude`) option for this. It takes an arbitrary glob
|
||||||
|
pattern as an argument:
|
||||||
|
``` bash
|
||||||
|
> fd -H -E .git …
|
||||||
|
```
|
||||||
|
|
||||||
|
We can also use this to skip mounted directories:
|
||||||
|
``` bash
|
||||||
|
> fd -E /mnt/external-drive …
|
||||||
|
```
|
||||||
|
|
||||||
|
.. or to skip certain file types:
|
||||||
|
``` bash
|
||||||
|
> fd -E '*.bak' …
|
||||||
|
```
|
||||||
|
|
||||||
|
To make exclude-patterns like these permanent, you can create a `.fdignore` file. They work like
|
||||||
|
`.gitignore` files, but are specific to `fd`. For example:
|
||||||
|
``` bash
|
||||||
|
> cat ~/.fdignore
|
||||||
|
/mnt/external-drive
|
||||||
|
*.bak
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> `fd` also supports `.ignore` files that are used by other programs such as `rg` or `ag`.
|
||||||
|
|
||||||
|
If you want `fd` to ignore these patterns globally, you can put them in `fd`'s global ignore file.
|
||||||
|
This is usually located in `~/.config/fd/ignore` in macOS or Linux, and `%APPDATA%\fd\ignore` in
|
||||||
|
Windows.
|
||||||
|
|
||||||
|
You may wish to include `.git/` in your `fd/ignore` file so that `.git` directories, and their contents
|
||||||
|
are not included in output if you use the `--hidden` option.
|
||||||
|
|
||||||
|
### Deleting files
|
||||||
|
|
||||||
|
You can use `fd` to remove all files and directories that are matched by your search pattern.
|
||||||
|
If you only want to remove files, you can use the `--exec-batch`/`-X` option to call `rm`. For
|
||||||
|
example, to recursively remove all `.DS_Store` files, run:
|
||||||
|
``` bash
|
||||||
|
> fd -H '^\.DS_Store$' -tf -X rm
|
||||||
|
```
|
||||||
|
If you are unsure, always call `fd` without `-X rm` first. Alternatively, use `rm`s "interactive"
|
||||||
|
option:
|
||||||
|
``` bash
|
||||||
|
> fd -H '^\.DS_Store$' -tf -X rm -i
|
||||||
|
```
|
||||||
|
|
||||||
|
If you also want to remove a certain class of directories, you can use the same technique. You will
|
||||||
|
have to use `rm`s `--recursive`/`-r` flag to remove directories.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> There are scenarios where using `fd … -X rm -r` can cause race conditions: if you have a
|
||||||
|
path like `…/foo/bar/foo/…` and want to remove all directories named `foo`, you can end up in a
|
||||||
|
situation where the outer `foo` directory is removed first, leading to (harmless) *"'foo/bar/foo':
|
||||||
|
No such file or directory"* errors in the `rm` call.
|
||||||
|
|
||||||
|
### Command-line options
|
||||||
|
|
||||||
|
This is the output of `fd -h`. To see the full set of command-line options, use `fd --help` which
|
||||||
|
also includes a much more detailed help text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Usage: fd [OPTIONS] [pattern] [path]...
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
[pattern] the search pattern (a regular expression, unless '--glob' is used; optional)
|
||||||
|
[path]... the root directories for the filesystem search (optional)
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-H, --hidden Search hidden files and directories
|
||||||
|
-I, --no-ignore Do not respect .(git|fd)ignore files
|
||||||
|
-s, --case-sensitive Case-sensitive search (default: smart case)
|
||||||
|
-i, --ignore-case Case-insensitive search (default: smart case)
|
||||||
|
-g, --glob Glob-based search (default: regular expression)
|
||||||
|
-a, --absolute-path Show absolute instead of relative paths
|
||||||
|
-l, --list-details Use a long listing format with file metadata
|
||||||
|
-L, --follow Follow symbolic links
|
||||||
|
-p, --full-path Search full abs. path (default: filename only)
|
||||||
|
-d, --max-depth <depth> Set maximum search depth (default: none)
|
||||||
|
-E, --exclude <pattern> Exclude entries that match the given glob pattern
|
||||||
|
-t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l),
|
||||||
|
executable (x), empty (e), socket (s), pipe (p), char-device
|
||||||
|
(c), block-device (b)
|
||||||
|
-e, --extension <ext> Filter by file extension
|
||||||
|
-S, --size <size> Limit results based on the size of files
|
||||||
|
--changed-within <date|dur> Filter by file modification time (newer than)
|
||||||
|
--changed-before <date|dur> Filter by file modification time (older than)
|
||||||
|
-o, --owner <user:group> Filter by owning user and/or group
|
||||||
|
--format <fmt> Print results according to template
|
||||||
|
-x, --exec <cmd>... Execute a command for each search result
|
||||||
|
-X, --exec-batch <cmd>... Execute a command with all search results at once
|
||||||
|
-c, --color <when> When to use colors [default: auto] [possible values: auto,
|
||||||
|
always, never]
|
||||||
|
--hyperlink[=<when>] Add hyperlinks to output paths [default: never] [possible
|
||||||
|
values: auto, always, never]
|
||||||
|
-h, --help Print help (see more with '--help')
|
||||||
|
-V, --version Print version
|
||||||
|
```
|
||||||
|
|
||||||
|
## Benchmark
|
||||||
|
|
||||||
|
Let's search my home folder for files that end in `[0-9].jpg`. It contains ~750.000
|
||||||
|
subdirectories and about a 4 million files. For averaging and statistical analysis, I'm using
|
||||||
|
[hyperfine](https://github.com/sharkdp/hyperfine). The following benchmarks are performed
|
||||||
|
with a "warm"/pre-filled disk-cache (results for a "cold" disk-cache show the same trends).
|
||||||
|
|
||||||
|
Let's start with `find`:
|
||||||
|
```
|
||||||
|
Benchmark 1: find ~ -iregex '.*[0-9]\.jpg$'
|
||||||
|
Time (mean ± σ): 19.922 s ± 0.109 s
|
||||||
|
Range (min … max): 19.765 s … 20.065 s
|
||||||
|
```
|
||||||
|
|
||||||
|
`find` is much faster if it does not need to perform a regular-expression search:
|
||||||
|
```
|
||||||
|
Benchmark 2: find ~ -iname '*[0-9].jpg'
|
||||||
|
Time (mean ± σ): 11.226 s ± 0.104 s
|
||||||
|
Range (min … max): 11.119 s … 11.466 s
|
||||||
|
```
|
||||||
|
|
||||||
|
Now let's try the same for `fd`. Note that `fd` performs a regular expression
|
||||||
|
search by default. The options `-u`/`--unrestricted` option is needed here for
|
||||||
|
a fair comparison. Otherwise `fd` does not have to traverse hidden folders and
|
||||||
|
ignored paths (see below):
|
||||||
|
```
|
||||||
|
Benchmark 3: fd -u '[0-9]\.jpg$' ~
|
||||||
|
Time (mean ± σ): 854.8 ms ± 10.0 ms
|
||||||
|
Range (min … max): 839.2 ms … 868.9 ms
|
||||||
|
```
|
||||||
|
For this particular example, `fd` is approximately **23 times faster** than `find -iregex`
|
||||||
|
and about **13 times faster** than `find -iname`. By the way, both tools found the exact
|
||||||
|
same 546 files :smile:.
|
||||||
|
|
||||||
|
**Note**: This is *one particular* benchmark on *one particular* machine. While we have
|
||||||
|
performed a lot of different tests (and found consistent results), things might
|
||||||
|
be different for you! We encourage everyone to try it out on their own. See
|
||||||
|
[this repository](https://github.com/sharkdp/fd-benchmarks) for all necessary scripts.
|
||||||
|
|
||||||
|
Concerning *fd*'s speed, a lot of credit goes to the `regex` and `ignore` crates that are
|
||||||
|
also used in [ripgrep](https://github.com/BurntSushi/ripgrep) (check it out!).
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### `fd` does not find my file!
|
||||||
|
|
||||||
|
Remember that `fd` ignores hidden directories and files by default. It also ignores patterns
|
||||||
|
from `.gitignore` files. If you want to make sure to find absolutely every possible file, always
|
||||||
|
use the options `-u`/`--unrestricted` option (or `-HI` to enable hidden and ignored files):
|
||||||
|
``` bash
|
||||||
|
> fd -u …
|
||||||
|
```
|
||||||
|
|
||||||
|
### Colorized output
|
||||||
|
|
||||||
|
`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment
|
||||||
|
variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value
|
||||||
|
of this variable is set by the `dircolors` command which provides a convenient configuration format
|
||||||
|
to define colors for different file formats.
|
||||||
|
On most distributions, `LS_COLORS` should be set already. If you are on Windows or if you are looking
|
||||||
|
for alternative, more complete (or more colorful) variants, see [here](https://github.com/sharkdp/vivid),
|
||||||
|
[here](https://github.com/seebi/dircolors-solarized) or
|
||||||
|
[here](https://github.com/trapd00r/LS_COLORS).
|
||||||
|
|
||||||
|
`fd` also honors the [`NO_COLOR`](https://no-color.org/) environment variable.
|
||||||
|
|
||||||
|
### `fd` doesn't seem to interpret my regex pattern correctly
|
||||||
|
|
||||||
|
A lot of special regex characters (like `[]`, `^`, `$`, ..) are also special characters in your
|
||||||
|
shell. If in doubt, always make sure to put single quotes around the regex pattern:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> fd '^[A-Z][0-9]+$'
|
||||||
|
```
|
||||||
|
|
||||||
|
If your pattern starts with a dash, you have to add `--` to signal the end of command line
|
||||||
|
options. Otherwise, the pattern will be interpreted as a command-line option. Alternatively,
|
||||||
|
use a character class with a single hyphen character:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
> fd -- '-pattern'
|
||||||
|
> fd '[-]pattern'
|
||||||
|
```
|
||||||
|
|
||||||
|
### "Command not found" for `alias`es or shell functions
|
||||||
|
|
||||||
|
Shell `alias`es and shell functions can not be used for command execution via `fd -x` or
|
||||||
|
`fd -X`. In `zsh`, you can make the alias global via `alias -g myalias="…"`. In `bash`,
|
||||||
|
you can use `export -f my_function` to make available to child processes. You would still
|
||||||
|
need to call `fd -x bash -c 'my_function "$1"' bash`. For other use cases or shells, use
|
||||||
|
a (temporary) shell script.
|
||||||
|
|
||||||
|
## Integration with other programs
|
||||||
|
|
||||||
|
### Using fd with `fzf`
|
||||||
|
|
||||||
|
You can use *fd* to generate input for the command-line fuzzy finder [fzf](https://github.com/junegunn/fzf):
|
||||||
|
``` bash
|
||||||
|
export FZF_DEFAULT_COMMAND='fd --type file'
|
||||||
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, you can type `vim <Ctrl-T>` on your terminal to open fzf and search through the fd-results.
|
||||||
|
|
||||||
|
Alternatively, you might like to follow symbolic links and include hidden files (but exclude `.git` folders):
|
||||||
|
``` bash
|
||||||
|
export FZF_DEFAULT_COMMAND='fd --type file --follow --hidden --exclude .git'
|
||||||
|
```
|
||||||
|
|
||||||
|
You can even use fd's colored output inside fzf by setting:
|
||||||
|
``` bash
|
||||||
|
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
|
||||||
|
export FZF_DEFAULT_OPTS="--ansi"
|
||||||
|
```
|
||||||
|
|
||||||
|
For more details, see the [Tips section](https://github.com/junegunn/fzf#tips) of the fzf README.
|
||||||
|
|
||||||
|
### Using fd with `rofi`
|
||||||
|
|
||||||
|
[*rofi*](https://github.com/davatorium/rofi) is a graphical launch menu application that is able to create menus by reading from *stdin*. Piping `fd` output into `rofi`s `-dmenu` mode creates fuzzy-searchable lists of files and directories.
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
Create a case-insensitive searchable multi-select list of *PDF* files under your `$HOME` directory and open the selection with your configured PDF viewer. To list all file types, drop the `-e pdf` argument.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
fd --type f -e pdf . $HOME | rofi -keep-right -dmenu -i -p FILES -multi-select | xargs -I {} xdg-open {}
|
||||||
|
```
|
||||||
|
|
||||||
|
To modify the list that is presented by rofi, add arguments to the `fd` command. To modify the search behaviour of rofi, add arguments to the `rofi` command.
|
||||||
|
|
||||||
|
### Using fd with `emacs`
|
||||||
|
|
||||||
|
The emacs package [find-file-in-project](https://github.com/technomancy/find-file-in-project) can
|
||||||
|
use *fd* to find files.
|
||||||
|
|
||||||
|
After installing `find-file-in-project`, add the line `(setq ffip-use-rust-fd t)` to your
|
||||||
|
`~/.emacs` or `~/.emacs.d/init.el` file.
|
||||||
|
|
||||||
|
In emacs, run `M-x find-file-in-project-by-selected` to find matching files. Alternatively, run
|
||||||
|
`M-x find-file-in-project` to list all available files in the project.
|
||||||
|
|
||||||
|
### Printing the output as a tree
|
||||||
|
|
||||||
|
To format the output of `fd` as a file-tree you can use the `tree` command with
|
||||||
|
`--fromfile`:
|
||||||
|
```bash
|
||||||
|
❯ fd | tree --fromfile
|
||||||
|
```
|
||||||
|
|
||||||
|
This can be more useful than running `tree` by itself because `tree` does not
|
||||||
|
ignore any files by default, nor does it support as rich a set of options as
|
||||||
|
`fd` does to control what to print:
|
||||||
|
```bash
|
||||||
|
❯ fd --extension rs | tree --fromfile
|
||||||
|
.
|
||||||
|
├── build.rs
|
||||||
|
└── src
|
||||||
|
├── app.rs
|
||||||
|
└── error.rs
|
||||||
|
```
|
||||||
|
|
||||||
|
On bash and similar you can simply create an alias:
|
||||||
|
```bash
|
||||||
|
❯ alias as-tree='tree --fromfile'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Using fd with `xargs` or `parallel`
|
||||||
|
|
||||||
|
Note that `fd` has a builtin feature for [command execution](#command-execution) with
|
||||||
|
its `-x`/`--exec` and `-X`/`--exec-batch` options. If you prefer, you can still use
|
||||||
|
it in combination with `xargs`:
|
||||||
|
``` bash
|
||||||
|
> fd -0 -e rs | xargs -0 wc -l
|
||||||
|
```
|
||||||
|
Here, the `-0` option tells *fd* to separate search results by the NULL character (instead of
|
||||||
|
newlines). In the same way, the `-0` option of `xargs` tells it to read the input in this way.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
[![Packaging status](https://repology.org/badge/vertical-allrepos/fd-find.svg)](https://repology.org/project/fd-find/versions)
|
||||||
|
|
||||||
|
### On Ubuntu
|
||||||
|
*... and other Debian-based Linux distributions.*
|
||||||
|
|
||||||
|
If you run Ubuntu 19.04 (Disco Dingo) or newer, you can install the
|
||||||
|
[officially maintained package](https://packages.ubuntu.com/fd-find):
|
||||||
|
```
|
||||||
|
apt install fd-find
|
||||||
|
```
|
||||||
|
Note that the binary is called `fdfind` as the binary name `fd` is already used by another package.
|
||||||
|
It is recommended that after installation, you add a link to `fd` by executing command
|
||||||
|
`ln -s $(which fdfind) ~/.local/bin/fd`, in order to use `fd` in the same way as in this documentation.
|
||||||
|
Make sure that `$HOME/.local/bin` is in your `$PATH`.
|
||||||
|
|
||||||
|
If you use an older version of Ubuntu, you can download the latest `.deb` package from the
|
||||||
|
[release page](https://github.com/sharkdp/fd/releases) and install it via:
|
||||||
|
``` bash
|
||||||
|
dpkg -i fd_9.0.0_amd64.deb # adapt version number and architecture
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that the .deb packages on the release page for this project still name the executable `fd`.
|
||||||
|
|
||||||
|
### On Debian
|
||||||
|
|
||||||
|
If you run Debian Buster or newer, you can install the
|
||||||
|
[officially maintained Debian package](https://tracker.debian.org/pkg/rust-fd-find):
|
||||||
|
```
|
||||||
|
apt-get install fd-find
|
||||||
|
```
|
||||||
|
Note that the binary is called `fdfind` as the binary name `fd` is already used by another package.
|
||||||
|
It is recommended that after installation, you add a link to `fd` by executing command
|
||||||
|
`ln -s $(which fdfind) ~/.local/bin/fd`, in order to use `fd` in the same way as in this documentation.
|
||||||
|
Make sure that `$HOME/.local/bin` is in your `$PATH`.
|
||||||
|
|
||||||
|
Note that the .deb packages on the release page for this project still name the executable `fd`.
|
||||||
|
|
||||||
|
### On Fedora
|
||||||
|
|
||||||
|
Starting with Fedora 28, you can install `fd` from the official package sources:
|
||||||
|
``` bash
|
||||||
|
dnf install fd-find
|
||||||
|
```
|
||||||
|
|
||||||
|
### On Alpine Linux
|
||||||
|
|
||||||
|
You can install [the fd package](https://pkgs.alpinelinux.org/packages?name=fd)
|
||||||
|
from the official sources, provided you have the appropriate repository enabled:
|
||||||
|
```
|
||||||
|
apk add fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On Arch Linux
|
||||||
|
|
||||||
|
You can install [the fd package](https://www.archlinux.org/packages/community/x86_64/fd/) from the official repos:
|
||||||
|
```
|
||||||
|
pacman -S fd
|
||||||
|
```
|
||||||
|
You can also install fd [from the AUR](https://aur.archlinux.org/packages/fd-git).
|
||||||
|
|
||||||
|
### On Gentoo Linux
|
||||||
|
|
||||||
|
You can use [the fd ebuild](https://packages.gentoo.org/packages/sys-apps/fd) from the official repo:
|
||||||
|
```
|
||||||
|
emerge -av fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On openSUSE Linux
|
||||||
|
|
||||||
|
You can install [the fd package](https://software.opensuse.org/package/fd) from the official repo:
|
||||||
|
```
|
||||||
|
zypper in fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On Void Linux
|
||||||
|
|
||||||
|
You can install `fd` via xbps-install:
|
||||||
|
```
|
||||||
|
xbps-install -S fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On ALT Linux
|
||||||
|
|
||||||
|
You can install [the fd package](https://packages.altlinux.org/en/sisyphus/srpms/fd/) from the official repo:
|
||||||
|
```
|
||||||
|
apt-get install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On Solus
|
||||||
|
|
||||||
|
You can install [the fd package](https://github.com/getsolus/packages/tree/main/packages/f/fd) from the official repo:
|
||||||
|
```
|
||||||
|
eopkg install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On RedHat Enterprise Linux 8/9 (RHEL8/9), Almalinux 8/9, EuroLinux 8/9 or Rocky Linux 8/9
|
||||||
|
|
||||||
|
You can install [the `fd` package](https://copr.fedorainfracloud.org/coprs/tkbcopr/fd/) from Fedora Copr.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dnf copr enable tkbcopr/fd
|
||||||
|
dnf install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
A different version using the [slower](https://github.com/sharkdp/fd/pull/481#issuecomment-534494592) malloc [instead of jemalloc](https://bugzilla.redhat.com/show_bug.cgi?id=2216193#c1) is also available from the EPEL8/9 repo as the package `fd-find`.
|
||||||
|
|
||||||
|
### On macOS
|
||||||
|
|
||||||
|
You can install `fd` with [Homebrew](https://formulae.brew.sh/formula/fd):
|
||||||
|
```
|
||||||
|
brew install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
… or with MacPorts:
|
||||||
|
```
|
||||||
|
port install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On Windows
|
||||||
|
|
||||||
|
You can download pre-built binaries from the [release page](https://github.com/sharkdp/fd/releases).
|
||||||
|
|
||||||
|
Alternatively, you can install `fd` via [Scoop](http://scoop.sh):
|
||||||
|
```
|
||||||
|
scoop install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
Or via [Chocolatey](https://chocolatey.org):
|
||||||
|
```
|
||||||
|
choco install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
Or via [Winget](https://learn.microsoft.com/en-us/windows/package-manager/):
|
||||||
|
```
|
||||||
|
winget install sharkdp.fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On GuixOS
|
||||||
|
|
||||||
|
You can install [the fd package](https://guix.gnu.org/en/packages/fd-8.1.1/) from the official repo:
|
||||||
|
```
|
||||||
|
guix install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On NixOS / via Nix
|
||||||
|
|
||||||
|
You can use the [Nix package manager](https://nixos.org/nix/) to install `fd`:
|
||||||
|
```
|
||||||
|
nix-env -i fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### Via Flox
|
||||||
|
|
||||||
|
You can use [Flox](https://flox.dev) to install `fd` into a Flox environment:
|
||||||
|
```
|
||||||
|
flox install fd
|
||||||
|
```
|
||||||
|
|
||||||
|
### On FreeBSD
|
||||||
|
|
||||||
|
You can install [the fd-find package](https://www.freshports.org/sysutils/fd) from the official repo:
|
||||||
|
```
|
||||||
|
pkg install fd-find
|
||||||
|
```
|
||||||
|
|
||||||
|
### From npm
|
||||||
|
|
||||||
|
On Linux and macOS, you can install the [fd-find](https://npm.im/fd-find) package:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install -g fd-find
|
||||||
|
```
|
||||||
|
|
||||||
|
### From source
|
||||||
|
|
||||||
|
With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can install *fd* via:
|
||||||
|
```
|
||||||
|
cargo install fd-find
|
||||||
|
```
|
||||||
|
Note that rust version *1.77.2* or later is required.
|
||||||
|
|
||||||
|
`make` is also needed for the build.
|
||||||
|
|
||||||
|
### From binaries
|
||||||
|
|
||||||
|
The [release page](https://github.com/sharkdp/fd/releases) includes precompiled binaries for Linux, macOS and Windows. Statically-linked binaries are also available: look for archives with `musl` in the file name.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/sharkdp/fd
|
||||||
|
|
||||||
|
# Build
|
||||||
|
cd fd
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
# Run unit tests and integration tests
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
# Install
|
||||||
|
cargo install --path .
|
||||||
|
```
|
||||||
|
|
||||||
|
## Maintainers
|
||||||
|
|
||||||
|
- [sharkdp](https://github.com/sharkdp)
|
||||||
|
- [tmccombs](https://github.com/tmccombs)
|
||||||
|
- [tavianator](https://github.com/tavianator)
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
`fd` is distributed under the terms of both the MIT License and the Apache License 2.0.
|
||||||
|
|
||||||
|
See the [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) files for license details.
|
285
fd/autocomplete/_fd
Normal file
285
fd/autocomplete/_fd
Normal file
@ -0,0 +1,285 @@
|
|||||||
|
#compdef fd
|
||||||
|
|
||||||
|
##
|
||||||
|
# zsh completion function for fd
|
||||||
|
#
|
||||||
|
# Based on ripgrep completion function.
|
||||||
|
# Originally based on code from the zsh-users project — see copyright notice
|
||||||
|
# below.
|
||||||
|
|
||||||
|
autoload -U is-at-least
|
||||||
|
|
||||||
|
_fd() {
|
||||||
|
local curcontext="$curcontext" no='!' ret=1
|
||||||
|
local -a context line state state_descr _arguments_options fd_types fd_args
|
||||||
|
local -A opt_args
|
||||||
|
|
||||||
|
if is-at-least 5.2; then
|
||||||
|
_arguments_options=( -s -S )
|
||||||
|
else
|
||||||
|
_arguments_options=( -s )
|
||||||
|
fi
|
||||||
|
|
||||||
|
fd_types=(
|
||||||
|
{f,file}'\:"regular files"'
|
||||||
|
{d,directory}'\:"directories"'
|
||||||
|
{l,symlink}'\:"symbolic links"'
|
||||||
|
{e,empty}'\:"empty files or directories"'
|
||||||
|
{x,executable}'\:"executable (files)"'
|
||||||
|
{b,block-device}'\:"block devices"'
|
||||||
|
{c,char-device}'\:"character devices"'
|
||||||
|
{s,socket}'\:"sockets"'
|
||||||
|
{p,pipe}'\:"named pipes (FIFOs)"'
|
||||||
|
)
|
||||||
|
|
||||||
|
# Do not complete rare options unless either the current prefix
|
||||||
|
# matches one of those options or the user has the `complete-all`
|
||||||
|
# style set. Note that this prefix check has to be updated manually to account
|
||||||
|
# for all of the potential negation options listed below!
|
||||||
|
if
|
||||||
|
# (--[bpsu]* => match all options marked with '$no')
|
||||||
|
[[ $PREFIX$SUFFIX == --[bopsun]* ]] ||
|
||||||
|
zstyle -t ":complete:$curcontext:*" complete-all
|
||||||
|
then
|
||||||
|
no=
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We make heavy use of argument groups here to prevent the option specs from
|
||||||
|
# growing unwieldy. These aren't supported in zsh <5.4, though, so we'll strip
|
||||||
|
# them out below if necessary. This makes the exclusions inaccurate on those
|
||||||
|
# older versions, but oh well — it's not that big a deal
|
||||||
|
fd_args=(
|
||||||
|
+ '(hidden)' # hidden files
|
||||||
|
{-H,--hidden}'[search hidden files/directories]'
|
||||||
|
|
||||||
|
+ '(no-ignore-full)' # all ignore files
|
||||||
|
'(no-ignore-partial)'{-I,--no-ignore}"[don't respect .(git|fd)ignore and global ignore files]"
|
||||||
|
$no'(no-ignore-partial)*'{-u,--unrestricted}'[alias for --no-ignore, when repeated also alias for --hidden]'
|
||||||
|
|
||||||
|
+ no-ignore-partial # some ignore files
|
||||||
|
"(no-ignore-full --no-ignore-vcs)--no-ignore-vcs[don't respect .gitignore files]"
|
||||||
|
"!(no-ignore-full --no-global-ignore-file)--no-global-ignore-file[don't respect the global ignore file]"
|
||||||
|
$no'(no-ignore-full --no-ignore-parent)--no-ignore-parent[]'
|
||||||
|
|
||||||
|
+ '(case)' # case-sensitivity
|
||||||
|
{-s,--case-sensitive}'[perform a case-sensitive search]'
|
||||||
|
{-i,--ignore-case}'[perform a case-insensitive search]'
|
||||||
|
|
||||||
|
+ '(regex-pattern)' # regex-based search pattern
|
||||||
|
'(no-regex-pattern)--regex[perform a regex-based search (default)]'
|
||||||
|
|
||||||
|
+ '(no-regex-pattern)' # non-regex-based search pattern
|
||||||
|
{-g,--glob}'[perform a glob-based search]'
|
||||||
|
{-F,--fixed-strings}'[treat pattern as literal string instead of a regex]'
|
||||||
|
|
||||||
|
+ '(no-require-git)'
|
||||||
|
"$no(no-ignore-full --no-ignore-vcs --no-require-git)--no-require-git[don't require git repo to respect gitignores]"
|
||||||
|
|
||||||
|
+ '(match-full)' # match against full path
|
||||||
|
{-p,--full-path}'[match the pattern against the full path instead of the basename]'
|
||||||
|
|
||||||
|
+ '(follow)' # follow symlinks
|
||||||
|
{-L,--follow}'[follow symbolic links to directories]'
|
||||||
|
|
||||||
|
+ '(abs-path)' # show absolute paths
|
||||||
|
'(long-listing)'{-a,--absolute-path}'[show absolute paths instead of relative paths]'
|
||||||
|
|
||||||
|
+ '(null-sep)' # use null separator for output
|
||||||
|
'(long-listing)'{-0,--print0}'[separate search results by the null character]'
|
||||||
|
|
||||||
|
+ '(long-listing)' # long-listing output
|
||||||
|
'(abs-path null-sep max-results exec-cmds)'{-l,--list-details}'[use a long listing format with file metadata]'
|
||||||
|
|
||||||
|
+ '(max-results)' # max number of results
|
||||||
|
'(long-listing exec-cmds)--max-results=[limit number of search results to given count and quit]:count'
|
||||||
|
'(long-listing exec-cmds)-1[limit to a single search result and quit]'
|
||||||
|
|
||||||
|
+ '(fs-errors)' # file-system errors
|
||||||
|
$no'--show-errors[enable the display of filesystem errors]'
|
||||||
|
|
||||||
|
+ '(fs-traversal)' # file-system traversal
|
||||||
|
$no"--one-file-system[don't descend into directories on other file systems]"
|
||||||
|
'!--mount'
|
||||||
|
'!--xdev'
|
||||||
|
|
||||||
|
+ dir-depth # directory depth
|
||||||
|
'(--exact-depth -d --max-depth)'{-d+,--max-depth=}'[set max directory depth to descend when searching]:depth'
|
||||||
|
'!(--exact-depth -d --max-depth)--maxdepth:depth'
|
||||||
|
'(--exact-depth --min-depth)--min-depth=[set directory depth to descend before start searching]:depth'
|
||||||
|
'(--exact-depth -d --max-depth --maxdepth --min-depth)--exact-depth=[only search at the exact given directory depth]:depth'
|
||||||
|
|
||||||
|
+ prune # pruning
|
||||||
|
"--prune[don't traverse into matching directories]"
|
||||||
|
|
||||||
|
+ filter-misc # filter search
|
||||||
|
'*'{-t+,--type=}"[filter search by type]:type:(($fd_types))"
|
||||||
|
'*'{-e+,--extension=}'[filter search by file extension]:extension'
|
||||||
|
'*'{-E+,--exclude=}'[exclude files/directories that match the given glob pattern]:glob pattern'
|
||||||
|
'*'{-S+,--size=}'[limit search by file size]:size limit:->size'
|
||||||
|
'(-o --owner)'{-o+,--owner=}'[filter by owning user and/or group]:owner and/or group:->owner'
|
||||||
|
|
||||||
|
+ ignore-file # extra ignore files
|
||||||
|
'*--ignore-file=[add a custom, low-precedence ignore-file with .gitignore format]: :_files'
|
||||||
|
|
||||||
|
+ '(filter-mtime-newer)' # filter by files modified after than
|
||||||
|
'--changed-within=[limit search to files/directories modified within the given date/duration]:date or duration'
|
||||||
|
'--changed-after=[alias for --changed-within]:date/duration'
|
||||||
|
'!--change-newer-than=:date/duration'
|
||||||
|
'!--newer=:date/duration'
|
||||||
|
|
||||||
|
+ '(filter-mtime-older)' # filter by files modified before than
|
||||||
|
'--changed-before=[limit search to files/directories modified before the given date/duration]:date or duration'
|
||||||
|
'!--change-older-than=:date/duration'
|
||||||
|
'!--older=:date/duration'
|
||||||
|
|
||||||
|
+ '(color)' # colorize output
|
||||||
|
{-c+,--color=}'[declare when to colorize search results]:when to colorize:((
|
||||||
|
auto\:"show colors if the output goes to an interactive console (default)"
|
||||||
|
never\:"do not use colorized output"
|
||||||
|
always\:"always use colorized output"
|
||||||
|
))'
|
||||||
|
|
||||||
|
'--hyperlink=-[add hyperlinks to output paths]::when:(auto never always)'
|
||||||
|
|
||||||
|
+ '(threads)'
|
||||||
|
{-j+,--threads=}'[set the number of threads for searching and executing]:number of threads'
|
||||||
|
|
||||||
|
+ '(exec-cmds)' # execute command
|
||||||
|
'(long-listing max-results)'{-x+,--exec=}'[execute command for each search result]:command: _command_names -e:*\;::program arguments: _normal'
|
||||||
|
'(long-listing max-results)'{-X+,--exec-batch=}'[execute command for all search results at once]:command: _command_names -e:*\;::program arguments: _normal'
|
||||||
|
'(long-listing max-results)--batch-size=[max number of args for each -X call]:size'
|
||||||
|
|
||||||
|
+ other
|
||||||
|
'!(--max-buffer-time)--max-buffer-time=[set amount of time to buffer before showing output]:time (ms)'
|
||||||
|
|
||||||
|
+ '(about)' # about flags
|
||||||
|
'(: * -)'{-h,--help}'[display help message]'
|
||||||
|
'(: * -)'{-V,--version}'[display version information]'
|
||||||
|
|
||||||
|
+ path-sep # set path separator for output
|
||||||
|
$no'(--path-separator)--path-separator=[set the path separator to use when printing file paths]:path separator'
|
||||||
|
|
||||||
|
+ search-path
|
||||||
|
$no'(--base-directory)--base-directory=[change the current working directory to the given path]:directory:_files -/'
|
||||||
|
$no'(*)*--search-path=[set search path (instead of positional <path> arguments)]:directory:_files -/'
|
||||||
|
|
||||||
|
+ strip-cwd-prefix
|
||||||
|
$no'(strip-cwd-prefix exec-cmds)--strip-cwd-prefix=-[When to strip ./]::when:(always never auto)'
|
||||||
|
|
||||||
|
+ and
|
||||||
|
'--and=[additional required search path]:pattern'
|
||||||
|
|
||||||
|
|
||||||
|
+ args # positional arguments
|
||||||
|
'1: :_guard "^-*" pattern'
|
||||||
|
'(--search-path)*:directory:_files -/'
|
||||||
|
)
|
||||||
|
|
||||||
|
# Strip out argument groups where unsupported (see above)
|
||||||
|
is-at-least 5.4 ||
|
||||||
|
fd_args=( ${(@)args:#(#i)(+|[a-z0-9][a-z0-9_-]#|\([a-z0-9][a-z0-9_-]#\))} )
|
||||||
|
|
||||||
|
_arguments $_arguments_options : $fd_args && ret=0
|
||||||
|
|
||||||
|
case ${state} in
|
||||||
|
owner)
|
||||||
|
compset -P '(\\|)\!'
|
||||||
|
if compset -P '*:'; then
|
||||||
|
_groups && ret=0
|
||||||
|
else
|
||||||
|
if
|
||||||
|
compset -S ':*' ||
|
||||||
|
# Do not add the colon suffix when completing "!user<TAB>
|
||||||
|
# (with a starting double-quote) otherwise pressing tab again
|
||||||
|
# after the inserted colon "!user:<TAB> will complete history modifiers
|
||||||
|
[[ $IPREFIX == (\\|\!)* && ($QIPREFIX == \"* && -z $QISUFFIX) ]]
|
||||||
|
then
|
||||||
|
_users && ret=0
|
||||||
|
else
|
||||||
|
local q
|
||||||
|
# Since quotes are needed when using the negation prefix !,
|
||||||
|
# automatically remove the colon suffix also when closing the quote
|
||||||
|
if [[ $QIPREFIX == [\'\"]* ]]; then
|
||||||
|
q=${QIPREFIX:0:1}
|
||||||
|
fi
|
||||||
|
_users -r ": \t\n\-$q" -S : && ret=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
size)
|
||||||
|
if compset -P '[-+][0-9]##'; then
|
||||||
|
local -a suff=(
|
||||||
|
'B:bytes'
|
||||||
|
'K:kilobytes (10^3 = 1000 bytes)'
|
||||||
|
'M:megabytes (10^6 = 1000^2 bytes)'
|
||||||
|
'G:gigabytes (10^9 = 1000^3 bytes)'
|
||||||
|
'T:terabytes (10^12 = 1000^4 bytes)'
|
||||||
|
'Ki:kibibytes ( 2^10 = 1024 bytes)'
|
||||||
|
'Mi:mebibytes ( 2^20 = 1024^2 bytes)'
|
||||||
|
'Gi:gigibytes ( 2^30 = 1024^3 bytes)'
|
||||||
|
'Ti:tebibytes ( 2^40 = 1024^4 bytes)'
|
||||||
|
)
|
||||||
|
_describe -t units 'size limit units' suff -V 'units'
|
||||||
|
elif compset -P '[-+]'; then
|
||||||
|
_message -e 'size limit number (full format: <+-><number><unit>)'
|
||||||
|
else
|
||||||
|
_values 'size limit prefix (full format: <prefix><number><unit>)' \
|
||||||
|
'\+[file size must be greater or equal to]'\
|
||||||
|
'-[file size must be less than or equal to]' && ret=0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
|
||||||
|
_fd "$@"
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Copyright (c) 2011 GitHub zsh-users - http://github.com/zsh-users
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are met:
|
||||||
|
# * Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
# * Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in the
|
||||||
|
# documentation and/or other materials provided with the distribution.
|
||||||
|
# * Neither the name of the zsh-users nor the
|
||||||
|
# names of its contributors may be used to endorse or promote products
|
||||||
|
# derived from this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
|
||||||
|
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Description
|
||||||
|
# -----------
|
||||||
|
#
|
||||||
|
# Completion script for fd
|
||||||
|
#
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Authors
|
||||||
|
# -------
|
||||||
|
#
|
||||||
|
# * smancill (https://github.com/smancill)
|
||||||
|
#
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# coding: utf-8-unix
|
||||||
|
# indent-tabs-mode: nil
|
||||||
|
# sh-indentation: 2
|
||||||
|
# sh-basic-offset: 2
|
||||||
|
# End:
|
||||||
|
# vim: ft=zsh sw=2 ts=2 et
|
186
fd/autocomplete/fd.bash
Normal file
186
fd/autocomplete/fd.bash
Normal file
@ -0,0 +1,186 @@
|
|||||||
|
_fd() {
|
||||||
|
local i cur prev opts cmd
|
||||||
|
COMPREPLY=()
|
||||||
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
|
cmd=""
|
||||||
|
opts=""
|
||||||
|
|
||||||
|
for i in ${COMP_WORDS[@]}
|
||||||
|
do
|
||||||
|
case "${cmd},${i}" in
|
||||||
|
",$1")
|
||||||
|
cmd="fd"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
case "${cmd}" in
|
||||||
|
fd)
|
||||||
|
opts="-H -I -u -s -i -g -F -a -l -L -p -0 -d -E -t -e -S -o -x -X -c -j -1 -q -h -V --hidden --no-hidden --no-ignore --ignore --no-ignore-vcs --ignore-vcs --no-require-git --require-git --no-ignore-parent --no-global-ignore-file --unrestricted --case-sensitive --ignore-case --glob --regex --fixed-strings --and --absolute-path --relative-path --list-details --follow --no-follow --full-path --print0 --max-depth --min-depth --exact-depth --exclude --prune --type --extension --size --changed-within --changed-before --owner --format --exec --exec-batch --batch-size --ignore-file --color --hyperlink --threads --max-buffer-time --max-results --quiet --show-errors --base-directory --path-separator --search-path --strip-cwd-prefix --one-file-system --gen-completions --help --version [pattern] [path]..."
|
||||||
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
||||||
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
case "${prev}" in
|
||||||
|
--and)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--max-depth)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-d)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--min-depth)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--exact-depth)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--exclude)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-E)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--type)
|
||||||
|
COMPREPLY=($(compgen -W "file directory symlink block-device char-device executable empty socket pipe" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-t)
|
||||||
|
COMPREPLY=($(compgen -W "file directory symlink block-device char-device executable empty socket pipe" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--extension)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-e)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--size)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-S)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--changed-within)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--changed-before)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--owner)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-o)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--format)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--exec)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-x)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--exec-batch)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-X)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--batch-size)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--ignore-file)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--color)
|
||||||
|
COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-c)
|
||||||
|
COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--hyperlink)
|
||||||
|
COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--threads)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-j)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--max-buffer-time)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--max-results)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--base-directory)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--path-separator)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--search-path)
|
||||||
|
COMPREPLY=($(compgen -f "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--strip-cwd-prefix)
|
||||||
|
COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--gen-completions)
|
||||||
|
COMPREPLY=($(compgen -W "bash elvish fish powershell zsh" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
COMPREPLY=()
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
|
||||||
|
complete -F _fd -o nosort -o bashdefault -o default fd
|
||||||
|
else
|
||||||
|
complete -F _fd -o bashdefault -o default fd
|
||||||
|
fi
|
56
fd/autocomplete/fd.fish
Normal file
56
fd/autocomplete/fd.fish
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
complete -c fd -l and -d 'Additional search patterns that need to be matched' -r
|
||||||
|
complete -c fd -s d -l max-depth -d 'Set maximum search depth (default: none)' -r
|
||||||
|
complete -c fd -l min-depth -d 'Only show search results starting at the given depth.' -r
|
||||||
|
complete -c fd -l exact-depth -d 'Only show search results at the exact given depth' -r
|
||||||
|
complete -c fd -s E -l exclude -d 'Exclude entries that match the given glob pattern' -r
|
||||||
|
complete -c fd -s t -l type -d 'Filter by type: file (f), directory (d/dir), symlink (l), executable (x), empty (e), socket (s), pipe (p), char-device (c), block-device (b)' -r -f -a "{file\t'',directory\t'',symlink\t'',block-device\t'',char-device\t'',executable\t'A file which is executable by the current effective user',empty\t'',socket\t'',pipe\t''}"
|
||||||
|
complete -c fd -s e -l extension -d 'Filter by file extension' -r
|
||||||
|
complete -c fd -s S -l size -d 'Limit results based on the size of files' -r
|
||||||
|
complete -c fd -l changed-within -d 'Filter by file modification time (newer than)' -r
|
||||||
|
complete -c fd -l changed-before -d 'Filter by file modification time (older than)' -r
|
||||||
|
complete -c fd -s o -l owner -d 'Filter by owning user and/or group' -r
|
||||||
|
complete -c fd -l format -d 'Print results according to template' -r
|
||||||
|
complete -c fd -s x -l exec -d 'Execute a command for each search result' -r
|
||||||
|
complete -c fd -s X -l exec-batch -d 'Execute a command with all search results at once' -r
|
||||||
|
complete -c fd -l batch-size -d 'Max number of arguments to run as a batch size with -X' -r
|
||||||
|
complete -c fd -l ignore-file -d 'Add a custom ignore-file in \'.gitignore\' format' -r -F
|
||||||
|
complete -c fd -s c -l color -d 'When to use colors' -r -f -a "{auto\t'show colors if the output goes to an interactive console (default)',always\t'always use colorized output',never\t'do not use colorized output'}"
|
||||||
|
complete -c fd -l hyperlink -d 'Add hyperlinks to output paths' -r -f -a "{auto\t'Use hyperlinks only if color is enabled',always\t'Always use hyperlinks when printing file paths',never\t'Never use hyperlinks'}"
|
||||||
|
complete -c fd -s j -l threads -d 'Set number of threads to use for searching & executing (default: number of available CPU cores)' -r
|
||||||
|
complete -c fd -l max-buffer-time -d 'Milliseconds to buffer before streaming search results to console' -r
|
||||||
|
complete -c fd -l max-results -d 'Limit the number of search results' -r
|
||||||
|
complete -c fd -l base-directory -d 'Change current working directory' -r -F
|
||||||
|
complete -c fd -l path-separator -d 'Set path separator when printing file paths' -r
|
||||||
|
complete -c fd -l search-path -d 'Provides paths to search as an alternative to the positional <path> argument' -r -F
|
||||||
|
complete -c fd -l strip-cwd-prefix -d 'By default, relative paths are prefixed with \'./\' when -x/--exec, -X/--exec-batch, or -0/--print0 are given, to reduce the risk of a path starting with \'-\' being treated as a command line option. Use this flag to change this behavior. If this flag is used without a value, it is equivalent to passing "always"' -r -f -a "{auto\t'Use the default behavior',always\t'Always strip the ./ at the beginning of paths',never\t'Never strip the ./'}"
|
||||||
|
complete -c fd -l gen-completions -r -f -a "{bash\t'',elvish\t'',fish\t'',powershell\t'',zsh\t''}"
|
||||||
|
complete -c fd -s H -l hidden -d 'Search hidden files and directories'
|
||||||
|
complete -c fd -l no-hidden -d 'Overrides --hidden'
|
||||||
|
complete -c fd -s I -l no-ignore -d 'Do not respect .(git|fd)ignore files'
|
||||||
|
complete -c fd -l ignore -d 'Overrides --no-ignore'
|
||||||
|
complete -c fd -l no-ignore-vcs -d 'Do not respect .gitignore files'
|
||||||
|
complete -c fd -l ignore-vcs -d 'Overrides --no-ignore-vcs'
|
||||||
|
complete -c fd -l no-require-git -d 'Do not require a git repository to respect gitignores. By default, fd will only respect global gitignore rules, .gitignore rules, and local exclude rules if fd detects that you are searching inside a git repository. This flag allows you to relax this restriction such that fd will respect all git related ignore rules regardless of whether you\'re searching in a git repository or not'
|
||||||
|
complete -c fd -l require-git -d 'Overrides --no-require-git'
|
||||||
|
complete -c fd -l no-ignore-parent -d 'Do not respect .(git|fd)ignore files in parent directories'
|
||||||
|
complete -c fd -l no-global-ignore-file -d 'Do not respect the global ignore file'
|
||||||
|
complete -c fd -s u -l unrestricted -d 'Unrestricted search, alias for \'--no-ignore --hidden\''
|
||||||
|
complete -c fd -s s -l case-sensitive -d 'Case-sensitive search (default: smart case)'
|
||||||
|
complete -c fd -s i -l ignore-case -d 'Case-insensitive search (default: smart case)'
|
||||||
|
complete -c fd -s g -l glob -d 'Glob-based search (default: regular expression)'
|
||||||
|
complete -c fd -l regex -d 'Regular-expression based search (default)'
|
||||||
|
complete -c fd -s F -l fixed-strings -d 'Treat pattern as literal string stead of regex'
|
||||||
|
complete -c fd -s a -l absolute-path -d 'Show absolute instead of relative paths'
|
||||||
|
complete -c fd -l relative-path -d 'Overrides --absolute-path'
|
||||||
|
complete -c fd -s l -l list-details -d 'Use a long listing format with file metadata'
|
||||||
|
complete -c fd -s L -l follow -d 'Follow symbolic links'
|
||||||
|
complete -c fd -l no-follow -d 'Overrides --follow'
|
||||||
|
complete -c fd -s p -l full-path -d 'Search full abs. path (default: filename only)'
|
||||||
|
complete -c fd -s 0 -l print0 -d 'Separate search results by the null character'
|
||||||
|
complete -c fd -l prune -d 'Do not traverse into directories that match the search criteria. If you want to exclude specific directories, use the \'--exclude=…\' option'
|
||||||
|
complete -c fd -s 1 -d 'Limit search to a single result'
|
||||||
|
complete -c fd -s q -l quiet -d 'Print nothing, exit code 0 if match found, 1 otherwise'
|
||||||
|
complete -c fd -l show-errors -d 'Show filesystem errors'
|
||||||
|
complete -c fd -l one-file-system -d 'By default, fd will traverse the file system tree as far as other options dictate. With this flag, fd ensures that it does not descend into a different file system than the one it started in. Comparable to the -mount or -xdev filters of find(1)'
|
||||||
|
complete -c fd -s h -l help -d 'Print help (see more with \'--help\')'
|
||||||
|
complete -c fd -s V -l version -d 'Print version'
|
111
fd/autocomplete/fd.ps1
Normal file
111
fd/autocomplete/fd.ps1
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
|
||||||
|
using namespace System.Management.Automation
|
||||||
|
using namespace System.Management.Automation.Language
|
||||||
|
|
||||||
|
Register-ArgumentCompleter -Native -CommandName 'fd' -ScriptBlock {
|
||||||
|
param($wordToComplete, $commandAst, $cursorPosition)
|
||||||
|
|
||||||
|
$commandElements = $commandAst.CommandElements
|
||||||
|
$command = @(
|
||||||
|
'fd'
|
||||||
|
for ($i = 1; $i -lt $commandElements.Count; $i++) {
|
||||||
|
$element = $commandElements[$i]
|
||||||
|
if ($element -isnot [StringConstantExpressionAst] -or
|
||||||
|
$element.StringConstantType -ne [StringConstantType]::BareWord -or
|
||||||
|
$element.Value.StartsWith('-') -or
|
||||||
|
$element.Value -eq $wordToComplete) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
$element.Value
|
||||||
|
}) -join ';'
|
||||||
|
|
||||||
|
$completions = @(switch ($command) {
|
||||||
|
'fd' {
|
||||||
|
[CompletionResult]::new('--and', '--and', [CompletionResultType]::ParameterName, 'Additional search patterns that need to be matched')
|
||||||
|
[CompletionResult]::new('-d', '-d', [CompletionResultType]::ParameterName, 'Set maximum search depth (default: none)')
|
||||||
|
[CompletionResult]::new('--max-depth', '--max-depth', [CompletionResultType]::ParameterName, 'Set maximum search depth (default: none)')
|
||||||
|
[CompletionResult]::new('--min-depth', '--min-depth', [CompletionResultType]::ParameterName, 'Only show search results starting at the given depth.')
|
||||||
|
[CompletionResult]::new('--exact-depth', '--exact-depth', [CompletionResultType]::ParameterName, 'Only show search results at the exact given depth')
|
||||||
|
[CompletionResult]::new('-E', '-E ', [CompletionResultType]::ParameterName, 'Exclude entries that match the given glob pattern')
|
||||||
|
[CompletionResult]::new('--exclude', '--exclude', [CompletionResultType]::ParameterName, 'Exclude entries that match the given glob pattern')
|
||||||
|
[CompletionResult]::new('-t', '-t', [CompletionResultType]::ParameterName, 'Filter by type: file (f), directory (d/dir), symlink (l), executable (x), empty (e), socket (s), pipe (p), char-device (c), block-device (b)')
|
||||||
|
[CompletionResult]::new('--type', '--type', [CompletionResultType]::ParameterName, 'Filter by type: file (f), directory (d/dir), symlink (l), executable (x), empty (e), socket (s), pipe (p), char-device (c), block-device (b)')
|
||||||
|
[CompletionResult]::new('-e', '-e', [CompletionResultType]::ParameterName, 'Filter by file extension')
|
||||||
|
[CompletionResult]::new('--extension', '--extension', [CompletionResultType]::ParameterName, 'Filter by file extension')
|
||||||
|
[CompletionResult]::new('-S', '-S ', [CompletionResultType]::ParameterName, 'Limit results based on the size of files')
|
||||||
|
[CompletionResult]::new('--size', '--size', [CompletionResultType]::ParameterName, 'Limit results based on the size of files')
|
||||||
|
[CompletionResult]::new('--changed-within', '--changed-within', [CompletionResultType]::ParameterName, 'Filter by file modification time (newer than)')
|
||||||
|
[CompletionResult]::new('--changed-before', '--changed-before', [CompletionResultType]::ParameterName, 'Filter by file modification time (older than)')
|
||||||
|
[CompletionResult]::new('-o', '-o', [CompletionResultType]::ParameterName, 'Filter by owning user and/or group')
|
||||||
|
[CompletionResult]::new('--owner', '--owner', [CompletionResultType]::ParameterName, 'Filter by owning user and/or group')
|
||||||
|
[CompletionResult]::new('--format', '--format', [CompletionResultType]::ParameterName, 'Print results according to template')
|
||||||
|
[CompletionResult]::new('-x', '-x', [CompletionResultType]::ParameterName, 'Execute a command for each search result')
|
||||||
|
[CompletionResult]::new('--exec', '--exec', [CompletionResultType]::ParameterName, 'Execute a command for each search result')
|
||||||
|
[CompletionResult]::new('-X', '-X ', [CompletionResultType]::ParameterName, 'Execute a command with all search results at once')
|
||||||
|
[CompletionResult]::new('--exec-batch', '--exec-batch', [CompletionResultType]::ParameterName, 'Execute a command with all search results at once')
|
||||||
|
[CompletionResult]::new('--batch-size', '--batch-size', [CompletionResultType]::ParameterName, 'Max number of arguments to run as a batch size with -X')
|
||||||
|
[CompletionResult]::new('--ignore-file', '--ignore-file', [CompletionResultType]::ParameterName, 'Add a custom ignore-file in ''.gitignore'' format')
|
||||||
|
[CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'When to use colors')
|
||||||
|
[CompletionResult]::new('--color', '--color', [CompletionResultType]::ParameterName, 'When to use colors')
|
||||||
|
[CompletionResult]::new('--hyperlink', '--hyperlink', [CompletionResultType]::ParameterName, 'Add hyperlinks to output paths')
|
||||||
|
[CompletionResult]::new('-j', '-j', [CompletionResultType]::ParameterName, 'Set number of threads to use for searching & executing (default: number of available CPU cores)')
|
||||||
|
[CompletionResult]::new('--threads', '--threads', [CompletionResultType]::ParameterName, 'Set number of threads to use for searching & executing (default: number of available CPU cores)')
|
||||||
|
[CompletionResult]::new('--max-buffer-time', '--max-buffer-time', [CompletionResultType]::ParameterName, 'Milliseconds to buffer before streaming search results to console')
|
||||||
|
[CompletionResult]::new('--max-results', '--max-results', [CompletionResultType]::ParameterName, 'Limit the number of search results')
|
||||||
|
[CompletionResult]::new('--base-directory', '--base-directory', [CompletionResultType]::ParameterName, 'Change current working directory')
|
||||||
|
[CompletionResult]::new('--path-separator', '--path-separator', [CompletionResultType]::ParameterName, 'Set path separator when printing file paths')
|
||||||
|
[CompletionResult]::new('--search-path', '--search-path', [CompletionResultType]::ParameterName, 'Provides paths to search as an alternative to the positional <path> argument')
|
||||||
|
[CompletionResult]::new('--strip-cwd-prefix', '--strip-cwd-prefix', [CompletionResultType]::ParameterName, 'By default, relative paths are prefixed with ''./'' when -x/--exec, -X/--exec-batch, or -0/--print0 are given, to reduce the risk of a path starting with ''-'' being treated as a command line option. Use this flag to change this behavior. If this flag is used without a value, it is equivalent to passing "always"')
|
||||||
|
[CompletionResult]::new('--gen-completions', '--gen-completions', [CompletionResultType]::ParameterName, 'gen-completions')
|
||||||
|
[CompletionResult]::new('-H', '-H ', [CompletionResultType]::ParameterName, 'Search hidden files and directories')
|
||||||
|
[CompletionResult]::new('--hidden', '--hidden', [CompletionResultType]::ParameterName, 'Search hidden files and directories')
|
||||||
|
[CompletionResult]::new('--no-hidden', '--no-hidden', [CompletionResultType]::ParameterName, 'Overrides --hidden')
|
||||||
|
[CompletionResult]::new('-I', '-I ', [CompletionResultType]::ParameterName, 'Do not respect .(git|fd)ignore files')
|
||||||
|
[CompletionResult]::new('--no-ignore', '--no-ignore', [CompletionResultType]::ParameterName, 'Do not respect .(git|fd)ignore files')
|
||||||
|
[CompletionResult]::new('--ignore', '--ignore', [CompletionResultType]::ParameterName, 'Overrides --no-ignore')
|
||||||
|
[CompletionResult]::new('--no-ignore-vcs', '--no-ignore-vcs', [CompletionResultType]::ParameterName, 'Do not respect .gitignore files')
|
||||||
|
[CompletionResult]::new('--ignore-vcs', '--ignore-vcs', [CompletionResultType]::ParameterName, 'Overrides --no-ignore-vcs')
|
||||||
|
[CompletionResult]::new('--no-require-git', '--no-require-git', [CompletionResultType]::ParameterName, 'Do not require a git repository to respect gitignores. By default, fd will only respect global gitignore rules, .gitignore rules, and local exclude rules if fd detects that you are searching inside a git repository. This flag allows you to relax this restriction such that fd will respect all git related ignore rules regardless of whether you''re searching in a git repository or not')
|
||||||
|
[CompletionResult]::new('--require-git', '--require-git', [CompletionResultType]::ParameterName, 'Overrides --no-require-git')
|
||||||
|
[CompletionResult]::new('--no-ignore-parent', '--no-ignore-parent', [CompletionResultType]::ParameterName, 'Do not respect .(git|fd)ignore files in parent directories')
|
||||||
|
[CompletionResult]::new('--no-global-ignore-file', '--no-global-ignore-file', [CompletionResultType]::ParameterName, 'Do not respect the global ignore file')
|
||||||
|
[CompletionResult]::new('-u', '-u', [CompletionResultType]::ParameterName, 'Unrestricted search, alias for ''--no-ignore --hidden''')
|
||||||
|
[CompletionResult]::new('--unrestricted', '--unrestricted', [CompletionResultType]::ParameterName, 'Unrestricted search, alias for ''--no-ignore --hidden''')
|
||||||
|
[CompletionResult]::new('-s', '-s', [CompletionResultType]::ParameterName, 'Case-sensitive search (default: smart case)')
|
||||||
|
[CompletionResult]::new('--case-sensitive', '--case-sensitive', [CompletionResultType]::ParameterName, 'Case-sensitive search (default: smart case)')
|
||||||
|
[CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Case-insensitive search (default: smart case)')
|
||||||
|
[CompletionResult]::new('--ignore-case', '--ignore-case', [CompletionResultType]::ParameterName, 'Case-insensitive search (default: smart case)')
|
||||||
|
[CompletionResult]::new('-g', '-g', [CompletionResultType]::ParameterName, 'Glob-based search (default: regular expression)')
|
||||||
|
[CompletionResult]::new('--glob', '--glob', [CompletionResultType]::ParameterName, 'Glob-based search (default: regular expression)')
|
||||||
|
[CompletionResult]::new('--regex', '--regex', [CompletionResultType]::ParameterName, 'Regular-expression based search (default)')
|
||||||
|
[CompletionResult]::new('-F', '-F ', [CompletionResultType]::ParameterName, 'Treat pattern as literal string stead of regex')
|
||||||
|
[CompletionResult]::new('--fixed-strings', '--fixed-strings', [CompletionResultType]::ParameterName, 'Treat pattern as literal string stead of regex')
|
||||||
|
[CompletionResult]::new('-a', '-a', [CompletionResultType]::ParameterName, 'Show absolute instead of relative paths')
|
||||||
|
[CompletionResult]::new('--absolute-path', '--absolute-path', [CompletionResultType]::ParameterName, 'Show absolute instead of relative paths')
|
||||||
|
[CompletionResult]::new('--relative-path', '--relative-path', [CompletionResultType]::ParameterName, 'Overrides --absolute-path')
|
||||||
|
[CompletionResult]::new('-l', '-l', [CompletionResultType]::ParameterName, 'Use a long listing format with file metadata')
|
||||||
|
[CompletionResult]::new('--list-details', '--list-details', [CompletionResultType]::ParameterName, 'Use a long listing format with file metadata')
|
||||||
|
[CompletionResult]::new('-L', '-L ', [CompletionResultType]::ParameterName, 'Follow symbolic links')
|
||||||
|
[CompletionResult]::new('--follow', '--follow', [CompletionResultType]::ParameterName, 'Follow symbolic links')
|
||||||
|
[CompletionResult]::new('--no-follow', '--no-follow', [CompletionResultType]::ParameterName, 'Overrides --follow')
|
||||||
|
[CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'Search full abs. path (default: filename only)')
|
||||||
|
[CompletionResult]::new('--full-path', '--full-path', [CompletionResultType]::ParameterName, 'Search full abs. path (default: filename only)')
|
||||||
|
[CompletionResult]::new('-0', '-0', [CompletionResultType]::ParameterName, 'Separate search results by the null character')
|
||||||
|
[CompletionResult]::new('--print0', '--print0', [CompletionResultType]::ParameterName, 'Separate search results by the null character')
|
||||||
|
[CompletionResult]::new('--prune', '--prune', [CompletionResultType]::ParameterName, 'Do not traverse into directories that match the search criteria. If you want to exclude specific directories, use the ''--exclude=…'' option')
|
||||||
|
[CompletionResult]::new('-1', '-1', [CompletionResultType]::ParameterName, 'Limit search to a single result')
|
||||||
|
[CompletionResult]::new('-q', '-q', [CompletionResultType]::ParameterName, 'Print nothing, exit code 0 if match found, 1 otherwise')
|
||||||
|
[CompletionResult]::new('--quiet', '--quiet', [CompletionResultType]::ParameterName, 'Print nothing, exit code 0 if match found, 1 otherwise')
|
||||||
|
[CompletionResult]::new('--show-errors', '--show-errors', [CompletionResultType]::ParameterName, 'Show filesystem errors')
|
||||||
|
[CompletionResult]::new('--one-file-system', '--one-file-system', [CompletionResultType]::ParameterName, 'By default, fd will traverse the file system tree as far as other options dictate. With this flag, fd ensures that it does not descend into a different file system than the one it started in. Comparable to the -mount or -xdev filters of find(1)')
|
||||||
|
[CompletionResult]::new('-h', '-h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
|
||||||
|
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
|
||||||
|
[CompletionResult]::new('-V', '-V ', [CompletionResultType]::ParameterName, 'Print version')
|
||||||
|
[CompletionResult]::new('--version', '--version', [CompletionResultType]::ParameterName, 'Print version')
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
$completions.Where{ $_.CompletionText -like "$wordToComplete*" } |
|
||||||
|
Sort-Object -Property ListItemText
|
||||||
|
}
|
557
fd/fd.1
Normal file
557
fd/fd.1
Normal file
@ -0,0 +1,557 @@
|
|||||||
|
.TH FD 1
|
||||||
|
.SH NAME
|
||||||
|
fd \- find entries in the filesystem
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B fd
|
||||||
|
.RB [ \-HIEsiaLp0hV ]
|
||||||
|
.RB [ \-d
|
||||||
|
.IR depth ]
|
||||||
|
.RB [ \-t
|
||||||
|
.IR filetype ]
|
||||||
|
.RB [ \-e
|
||||||
|
.IR ext ]
|
||||||
|
.RB [ \-E
|
||||||
|
.IR exclude ]
|
||||||
|
.RB [ \-c
|
||||||
|
.IR when ]
|
||||||
|
.RB [ \-j
|
||||||
|
.IR num ]
|
||||||
|
.RB [ \-x
|
||||||
|
.IR cmd ]
|
||||||
|
.RI [ pattern ]
|
||||||
|
.RI [ path... ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B fd
|
||||||
|
is a simple, fast and user-friendly alternative to
|
||||||
|
.BR find (1).
|
||||||
|
.P
|
||||||
|
By default
|
||||||
|
.B fd
|
||||||
|
uses regular expressions for the pattern. However, this can be changed to use simple glob patterns
|
||||||
|
with the '\-\-glob' option.
|
||||||
|
.P
|
||||||
|
By default
|
||||||
|
.B fd
|
||||||
|
will exclude hidden files and directories, as well as any files that match gitignore rules
|
||||||
|
or ignore rules in .ignore or .fdignore files.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-H, \-\-hidden
|
||||||
|
Include hidden files and directories in the search results
|
||||||
|
(default: hidden files and directories are skipped). The flag can be overridden with '--no-hidden'.
|
||||||
|
.IP
|
||||||
|
Ignored files are still excluded unless \-\-no\-ignore or \-\-no\-ignore\-vcs
|
||||||
|
is also used.
|
||||||
|
.TP
|
||||||
|
.B \-I, \-\-no\-ignore
|
||||||
|
Show search results from files and directories that would otherwise be ignored by
|
||||||
|
.RS
|
||||||
|
.IP \[bu] 2
|
||||||
|
.I .gitignore
|
||||||
|
.IP \[bu]
|
||||||
|
.I .git/info/exclude
|
||||||
|
.IP \[bu]
|
||||||
|
The global gitignore configuration (by default
|
||||||
|
.IR $HOME/.config/git/ignore )
|
||||||
|
.IP \[bu]
|
||||||
|
.I .ignore
|
||||||
|
.IP \[bu]
|
||||||
|
.I .fdignore
|
||||||
|
.IP \[bu]
|
||||||
|
The global fd ignore file (usually
|
||||||
|
.I $HOME/.config/fd/ignore
|
||||||
|
)
|
||||||
|
.RE
|
||||||
|
.IP
|
||||||
|
The flag can be overridden with '--ignore'.
|
||||||
|
.TP
|
||||||
|
.B \-u, \-\-unrestricted
|
||||||
|
Perform an unrestricted search, including ignored and hidden files. This is an alias for '--hidden --no-ignore'.
|
||||||
|
.TP
|
||||||
|
.B \-\-no\-ignore\-vcs
|
||||||
|
Show search results from files and directories that would otherwise be ignored by gitignore files
|
||||||
|
including
|
||||||
|
.IR .gitignore ,
|
||||||
|
.IR .git/info/exclude ,
|
||||||
|
and the global gitignore configuration
|
||||||
|
.RI ( core.excludesFile
|
||||||
|
git setting, which defaults to
|
||||||
|
.IR $HOME/.config/git/ignore ).
|
||||||
|
The flag can be overridden with '--ignore-vcs'.
|
||||||
|
.TP
|
||||||
|
.B \-\-no\-require\-git
|
||||||
|
Do not require a git repository to respect gitignores. By default, fd will only
|
||||||
|
respect global gitignore rules, .gitignore rules and local exclude rules if fd
|
||||||
|
detects that you are searching inside a git repository. This flag allows you to
|
||||||
|
relax this restriction such that fd will respect all git related ignore rules
|
||||||
|
regardless of whether you’re searching in a git repository or not. The flag can
|
||||||
|
be overridden with '--require-git'.
|
||||||
|
.TP
|
||||||
|
.B \-\-no\-ignore\-parent
|
||||||
|
Show search results from files and directories that would otherwise be ignored by gitignore files in
|
||||||
|
parent directories.
|
||||||
|
.TP
|
||||||
|
.B \-s, \-\-case\-sensitive
|
||||||
|
Perform a case-sensitive search. By default, fd uses case-insensitive searches, unless the
|
||||||
|
pattern contains an uppercase character (smart case).
|
||||||
|
.TP
|
||||||
|
.B \-i, \-\-ignore\-case
|
||||||
|
Perform a case-insensitive search. By default, fd uses case-insensitive searches, unless the
|
||||||
|
pattern contains an uppercase character (smart case).
|
||||||
|
.TP
|
||||||
|
.B \-g, \-\-glob
|
||||||
|
Perform a glob-based search instead of a regular expression search.
|
||||||
|
If combined with the '\-\-full-path' option, '**' can be used to match multiple path components.
|
||||||
|
.TP
|
||||||
|
.B \-\-regex
|
||||||
|
Perform a regular-expression based search (default). This can be used to override --glob.
|
||||||
|
.TP
|
||||||
|
.B \-F, \-\-fixed\-strings
|
||||||
|
Treat the pattern as a literal string instead of a regular expression. Note that this also
|
||||||
|
performs substring comparison. If you want to match on an exact filename, consider using '\-\-glob'.
|
||||||
|
.TP
|
||||||
|
.BI "\-\-and " pattern
|
||||||
|
Add additional required search patterns, all of which must be matched. Multiple additional
|
||||||
|
patterns can be specified. The patterns are regular expressions, unless '\-\-glob'
|
||||||
|
or '\-\-fixed\-strings' is used.
|
||||||
|
.TP
|
||||||
|
.B \-a, \-\-absolute\-path
|
||||||
|
Shows the full path starting from the root as opposed to relative paths.
|
||||||
|
The flag can be overridden with '--relative-path'.
|
||||||
|
.TP
|
||||||
|
.B \-l, \-\-list\-details
|
||||||
|
Use a detailed listing format like 'ls -l'. This is basically an alias
|
||||||
|
for '--exec-batch ls -l' with some additional 'ls' options. This can be used
|
||||||
|
to see more metadata, to show symlink targets and to achieve a deterministic
|
||||||
|
sort order.
|
||||||
|
.TP
|
||||||
|
.B \-L, \-\-follow
|
||||||
|
By default, fd does not descend into symlinked directories. Using this flag, symbolic links are
|
||||||
|
also traversed. The flag can be overridden with '--no-follow'.
|
||||||
|
.TP
|
||||||
|
.B \-p, \-\-full\-path
|
||||||
|
By default, the search pattern is only matched against the filename (or directory name). Using
|
||||||
|
this flag, the
|
||||||
|
.I pattern
|
||||||
|
is matched against the full path.
|
||||||
|
.TP
|
||||||
|
.B \-0, \-\-print0
|
||||||
|
Separate search results by the null character (instead of newlines). Useful for piping results to
|
||||||
|
.IR xargs .
|
||||||
|
.TP
|
||||||
|
.B \-\-max\-results count
|
||||||
|
Limit the number of search results to 'count' and quit immediately.
|
||||||
|
.TP
|
||||||
|
.B \-1
|
||||||
|
Limit the search to a single result and quit immediately. This is an alias for '--max-results=1'.
|
||||||
|
.TP
|
||||||
|
.B \-q, \-\-quiet
|
||||||
|
When the flag is present, the program does not print anything and will instead exit with a code of 0 if there is at least one search result.
|
||||||
|
Otherwise, the exit code will be 1.
|
||||||
|
This is mainly for usage in scripts and can be faster than checking for output because the search can be stopped early after the first match.
|
||||||
|
.B \-\-has\-results
|
||||||
|
can be used as an alias.
|
||||||
|
.TP
|
||||||
|
.B \-\-show-errors
|
||||||
|
Enable the display of filesystem errors for situations such as insufficient
|
||||||
|
permissions or dead symlinks.
|
||||||
|
.TP
|
||||||
|
.B \-\-strip-cwd-prefix [when]
|
||||||
|
By default, relative paths are prefixed with './' when -x/--exec,
|
||||||
|
-X/--exec-batch, or -0/--print0 are given, to reduce the risk of a
|
||||||
|
path starting with '-' being treated as a command line option. Use
|
||||||
|
this flag to change this behavior. If this flag is used without a value,
|
||||||
|
it is equivalent to passing "always". Possible values are:
|
||||||
|
.RS
|
||||||
|
.IP never
|
||||||
|
Never strip the ./ at the beginning of paths
|
||||||
|
.IP always
|
||||||
|
Always strip the ./ at the beginning of paths
|
||||||
|
.IP auto
|
||||||
|
Only strip if used with --exec, --exec-batch, or --print0. That is, it resets to the default behavior.
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.B \-\-one\-file\-system, \-\-mount, \-\-xdev
|
||||||
|
By default, fd will traverse the file system tree as far as other options dictate. With this flag, fd ensures that it does not descend into a different file system than the one it started in. Comparable to the -mount or -xdev filters of find(1).
|
||||||
|
.TP
|
||||||
|
.B \-h, \-\-help
|
||||||
|
Print help information.
|
||||||
|
.TP
|
||||||
|
.B \-V, \-\-version
|
||||||
|
Print version information.
|
||||||
|
.TP
|
||||||
|
.BI "\-d, \-\-max\-depth " d
|
||||||
|
Limit directory traversal to at most
|
||||||
|
.I d
|
||||||
|
levels of depth. By default, there is no limit on the search depth.
|
||||||
|
.TP
|
||||||
|
.BI "\-\-min\-depth " d
|
||||||
|
Only show search results starting at the given depth. See also: '--max-depth' and '--exact-depth'.
|
||||||
|
.TP
|
||||||
|
.BI "\-\-exact\-depth " d
|
||||||
|
Only show search results at the exact given depth. This is an alias for '--min-depth <depth> --max-depth <depth>'.
|
||||||
|
.TP
|
||||||
|
.B \-\-prune
|
||||||
|
Do not traverse into matching directories.
|
||||||
|
.TP
|
||||||
|
.BI "\-t, \-\-type " filetype
|
||||||
|
Filter search by type:
|
||||||
|
.RS
|
||||||
|
.IP "f, file"
|
||||||
|
regular files
|
||||||
|
.IP "d, dir, directory"
|
||||||
|
directories
|
||||||
|
.IP "l, symlink"
|
||||||
|
symbolic links
|
||||||
|
.IP "b, block-device"
|
||||||
|
block devices
|
||||||
|
.IP "c, char-device"
|
||||||
|
character devices
|
||||||
|
.IP "s, socket"
|
||||||
|
sockets
|
||||||
|
.IP "p, pipe"
|
||||||
|
named pipes (FIFOs)
|
||||||
|
.IP "x, executable"
|
||||||
|
executable (files)
|
||||||
|
.IP "e, empty"
|
||||||
|
empty files or directories
|
||||||
|
.RE
|
||||||
|
|
||||||
|
.RS
|
||||||
|
This option can be specified more than once to include multiple file types.
|
||||||
|
Searching for '--type file --type symlink' will show both regular files as well as
|
||||||
|
symlinks. Note that the 'executable' and 'empty' filters work differently: '--type
|
||||||
|
executable' implies '--type file' by default. And '--type empty' searches for
|
||||||
|
empty files and directories, unless either '--type file' or '--type directory' is
|
||||||
|
specified in addition.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
- Only search for files:
|
||||||
|
fd --type file …
|
||||||
|
fd -tf …
|
||||||
|
- Find both files and symlinks
|
||||||
|
fd --type file --type symlink …
|
||||||
|
fd -tf -tl …
|
||||||
|
- Find executable files:
|
||||||
|
fd --type executable
|
||||||
|
fd -tx
|
||||||
|
- Find empty files:
|
||||||
|
fd --type empty --type file
|
||||||
|
fd -te -tf
|
||||||
|
- Find empty directories:
|
||||||
|
fd --type empty --type directory
|
||||||
|
fd -te -td
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "\-e, \-\-extension " ext
|
||||||
|
Filter search results by file extension
|
||||||
|
.IR ext .
|
||||||
|
This option can be used repeatedly to allow for multiple possible file extensions.
|
||||||
|
|
||||||
|
If you want to search for files without extension, you can use the regex '^[^.]+$'
|
||||||
|
as a normal search pattern.
|
||||||
|
.TP
|
||||||
|
.BI "\-E, \-\-exclude " pattern
|
||||||
|
Exclude files/directories that match the given glob pattern.
|
||||||
|
This overrides any other ignore logic.
|
||||||
|
Multiple exclude patterns can be specified.
|
||||||
|
Examples:
|
||||||
|
\-\-exclude '*.pyc'
|
||||||
|
\-\-exclude node_modules
|
||||||
|
.TP
|
||||||
|
.BI "\-\-ignore-file " path
|
||||||
|
Add a custom ignore-file in '.gitignore' format.
|
||||||
|
These files have a low precedence.
|
||||||
|
.TP
|
||||||
|
.BI "\-c, \-\-color " when
|
||||||
|
Declare
|
||||||
|
.I when
|
||||||
|
to colorize search results:
|
||||||
|
.RS
|
||||||
|
.IP auto
|
||||||
|
Colorize output when standard output is connected to terminal (default).
|
||||||
|
.IP never
|
||||||
|
Do not colorize output.
|
||||||
|
.IP always
|
||||||
|
Always colorize output.
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.B "\-\-hyperlink
|
||||||
|
Specify whether the output should use terminal escape codes to indicate a hyperlink to a
|
||||||
|
file url pointing to the path.
|
||||||
|
|
||||||
|
The value can be auto, always, or never.
|
||||||
|
|
||||||
|
Currently, the default is "never", and if the option is used without an argument "auto" is
|
||||||
|
used. In the future this may be changed to "auto" and "always".
|
||||||
|
.RS
|
||||||
|
.IP auto
|
||||||
|
Only output hyperlinks if color is also enabled, as a proxy for whether terminal escape
|
||||||
|
codes are acceptable.
|
||||||
|
.IP never
|
||||||
|
Never output hyperlink escapes.
|
||||||
|
.IP always
|
||||||
|
Always output hyperlink escapes, regardless of color settings.
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "\-j, \-\-threads " num
|
||||||
|
Set number of threads to use for searching & executing (default: number of available CPU cores).
|
||||||
|
.TP
|
||||||
|
.BI "\-S, \-\-size " size
|
||||||
|
Limit results based on the size of files using the format
|
||||||
|
.I <+-><NUM><UNIT>
|
||||||
|
.RS
|
||||||
|
.IP '+'
|
||||||
|
file size must be greater than or equal to this
|
||||||
|
.IP '-'
|
||||||
|
file size must be less than or equal to this
|
||||||
|
.P
|
||||||
|
If neither '+' nor '-' is specified, file size must be exactly equal to this.
|
||||||
|
.IP 'NUM'
|
||||||
|
The numeric size (e.g. 500)
|
||||||
|
.IP 'UNIT'
|
||||||
|
The units for NUM. They are not case-sensitive.
|
||||||
|
Allowed unit values:
|
||||||
|
.RS
|
||||||
|
.IP 'b'
|
||||||
|
bytes
|
||||||
|
.IP 'k'
|
||||||
|
kilobytes (base ten, 10^3 = 1000 bytes)
|
||||||
|
.IP 'm'
|
||||||
|
megabytes
|
||||||
|
.IP 'g'
|
||||||
|
gigabytes
|
||||||
|
.IP 't'
|
||||||
|
terabytes
|
||||||
|
.IP 'ki'
|
||||||
|
kibibytes (base two, 2^10 = 1024 bytes)
|
||||||
|
.IP 'mi'
|
||||||
|
mebibytes
|
||||||
|
.IP 'gi'
|
||||||
|
gibibytes
|
||||||
|
.IP 'ti'
|
||||||
|
tebibytes
|
||||||
|
.RE
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "\-\-changed-within " date|duration
|
||||||
|
Filter results based on the file modification time.
|
||||||
|
Files with modification times greater than the argument will be returned.
|
||||||
|
The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point
|
||||||
|
in time as full RFC3339 format with time zone, as a date or datetime in the
|
||||||
|
local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR), or as the prefix '@'
|
||||||
|
followed by the number of seconds since the Unix epoch (@[0-9]+).
|
||||||
|
\fB\-\-change-newer-than\fR,
|
||||||
|
.B --newer
|
||||||
|
or
|
||||||
|
.B --changed-after
|
||||||
|
can be used as aliases.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
\-\-changed-within 2weeks
|
||||||
|
\-\-change-newer-than "2018-10-27 10:00:00"
|
||||||
|
\-\-newer 2018-10-27
|
||||||
|
\-\-changed-after @1704067200
|
||||||
|
.TP
|
||||||
|
.BI "\-\-changed-before " date|duration
|
||||||
|
Filter results based on the file modification time.
|
||||||
|
Files with modification times less than the argument will be returned.
|
||||||
|
The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point
|
||||||
|
in time as full RFC3339 format with time zone, as a date or datetime in the
|
||||||
|
local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR), or as the prefix '@'
|
||||||
|
followed by the number of seconds since the Unix epoch (@[0-9]+).
|
||||||
|
.B --change-older-than
|
||||||
|
or
|
||||||
|
.B --older
|
||||||
|
can be used as aliases.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
\-\-changed-before "2018-10-27 10:00:00"
|
||||||
|
\-\-change-older-than 2weeks
|
||||||
|
\-\-older @1704067200
|
||||||
|
.TP
|
||||||
|
.BI "-o, \-\-owner " [user][:group]
|
||||||
|
Filter files by their user and/or group. Format: [(user|uid)][:(group|gid)]. Either side
|
||||||
|
is optional. Precede either side with a '!' to exclude files instead.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
\-\-owner john
|
||||||
|
\-\-owner :students
|
||||||
|
\-\-owner "!john:students"
|
||||||
|
.TP
|
||||||
|
.BI "\-\-base\-directory " path
|
||||||
|
Change the current working directory of fd to the provided path. This means that search results will
|
||||||
|
be shown with respect to the given base path. Note that relative paths which are passed to fd via the
|
||||||
|
positional \fIpath\fR argument or the \fB\-\-search\-path\fR option will also be resolved relative to
|
||||||
|
this directory.
|
||||||
|
.TP
|
||||||
|
.BI "\-\-path\-separator " separator
|
||||||
|
Set the path separator to use when printing file paths. The default is the OS-specific separator
|
||||||
|
('/' on Unix, '\\' on Windows).
|
||||||
|
.TP
|
||||||
|
.BI "\-\-search\-path " search\-path
|
||||||
|
Provide paths to search as an alternative to the positional \fIpath\fR argument. Changes the usage to
|
||||||
|
\'fd [FLAGS/OPTIONS] \-\-search\-path PATH \-\-search\-path PATH2 [PATTERN]\'
|
||||||
|
.TP
|
||||||
|
.BI "\-\-format " fmt
|
||||||
|
Specify a template string that is used for printing a line for each file found.
|
||||||
|
|
||||||
|
The following placeholders are substituted into the string for each file before printing:
|
||||||
|
.RS
|
||||||
|
.IP {}
|
||||||
|
path (of the current search result)
|
||||||
|
.IP {/}
|
||||||
|
basename
|
||||||
|
.IP {//}
|
||||||
|
parent directory
|
||||||
|
.IP {.}
|
||||||
|
path without file extension
|
||||||
|
.IP {/.}
|
||||||
|
basename without file extension
|
||||||
|
.IP {{
|
||||||
|
literal '{' (an escape sequence)
|
||||||
|
.IP }}
|
||||||
|
literal '}' (an escape sequence)
|
||||||
|
.P
|
||||||
|
Notice that you can use "{{" and "}}" to escape "{" and "}" respectively, which is especially
|
||||||
|
useful if you need to include the literal text of one of the above placeholders.
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "\-x, \-\-exec " command
|
||||||
|
.RS
|
||||||
|
Execute
|
||||||
|
.I command
|
||||||
|
for each search result in parallel (use --threads=1 for sequential command execution).
|
||||||
|
|
||||||
|
Note that all subsequent positional arguments are considered to be arguments to the
|
||||||
|
.I command
|
||||||
|
- not to fd.
|
||||||
|
It is therefore recommended to place the \-x/\-\-exec option last. Alternatively, you can supply
|
||||||
|
a ';' argument to end the argument list and continue with more fd options.
|
||||||
|
Most shells require ';' to be escaped: '\\;'.
|
||||||
|
This option can be specified multiple times, in which case all commands are run for each
|
||||||
|
file found, in the order they are provided. In that case, you must supply a ';' argument for
|
||||||
|
all but the last commands.
|
||||||
|
|
||||||
|
If parallelism is enabled, the order commands will be executed in is non-deterministic. And even with
|
||||||
|
--threads=1, the order is determined by the operating system and may not be what you expect. Thus, it is
|
||||||
|
recommended that you don't rely on any ordering of the results.
|
||||||
|
|
||||||
|
Before executing the command, any placeholder patterns in the command are replaced with the
|
||||||
|
corresponding values for the current file. The same placeholders are used as in the "\-\-format"
|
||||||
|
option.
|
||||||
|
|
||||||
|
If no placeholder is present, an implicit "{}" at the end is assumed.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
- find all *.zip files and unzip them:
|
||||||
|
|
||||||
|
fd -e zip -x unzip
|
||||||
|
|
||||||
|
- find *.h and *.cpp files and run "clang-format -i .." for each of them:
|
||||||
|
|
||||||
|
fd -e h -e cpp -x clang-format -i
|
||||||
|
|
||||||
|
- Convert all *.jpg files to *.png files:
|
||||||
|
|
||||||
|
fd -e jpg -x convert {} {.}.png
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "\-X, \-\-exec-batch " command
|
||||||
|
.RS
|
||||||
|
Execute
|
||||||
|
.I command
|
||||||
|
once, with all search results as arguments.
|
||||||
|
|
||||||
|
The order of the arguments is non-deterministic and should not be relied upon.
|
||||||
|
|
||||||
|
This uses the same placeholders as "\-\-format" and "\-\-exec", but instead of expanding
|
||||||
|
once per command invocation each argument containing a placeholder is expanding for every
|
||||||
|
file in a batch and passed as separate arguments.
|
||||||
|
|
||||||
|
If no placeholder is present, an implicit "{}" at the end is assumed.
|
||||||
|
|
||||||
|
Like \-\-exec, this can be used multiple times, in which case each command will be run in
|
||||||
|
the order given.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
- Find all test_*.py files and open them in your favorite editor:
|
||||||
|
|
||||||
|
fd -g 'test_*.py' -X vim
|
||||||
|
|
||||||
|
Note that this executes a single "vim" process with all search results as arguments.
|
||||||
|
|
||||||
|
- Find all *.rs files and count the lines with "wc -l ...":
|
||||||
|
|
||||||
|
fd -e rs -X wc -l
|
||||||
|
.RE
|
||||||
|
.TP
|
||||||
|
.BI "\-\-batch-size " size
|
||||||
|
Maximum number of arguments to pass to the command given with -X. If the number of results is
|
||||||
|
greater than the given size, the command given with -X is run again with remaining arguments. A
|
||||||
|
batch size of zero means there is no limit (default), but note that batching might still happen
|
||||||
|
due to OS restrictions on the maximum length of command lines.
|
||||||
|
.SH PATTERN SYNTAX
|
||||||
|
The regular expression syntax used by fd is documented here:
|
||||||
|
|
||||||
|
https://docs.rs/regex/1.0.0/regex/#syntax
|
||||||
|
|
||||||
|
The glob syntax is documented here:
|
||||||
|
|
||||||
|
https://docs.rs/globset/#syntax
|
||||||
|
.SH ENVIRONMENT
|
||||||
|
.TP
|
||||||
|
.B LS_COLORS
|
||||||
|
Determines how to colorize search results, see
|
||||||
|
.BR dircolors (1) .
|
||||||
|
.TP
|
||||||
|
.B NO_COLOR
|
||||||
|
Disables colorized output.
|
||||||
|
.TP
|
||||||
|
.B XDG_CONFIG_HOME, HOME
|
||||||
|
Used to locate the global ignore file. If
|
||||||
|
.B XDG_CONFIG_HOME
|
||||||
|
is set, use
|
||||||
|
.IR $XDG_CONFIG_HOME/fd/ignore .
|
||||||
|
Otherwise, use
|
||||||
|
.IR $HOME/.config/fd/ignore .
|
||||||
|
.SH FILES
|
||||||
|
.TP
|
||||||
|
.B .fdignore
|
||||||
|
This file works similarly to a .gitignore file anywhere in the searched tree and specifies patterns
|
||||||
|
that should be excluded from the search. However, this file is specific to fd, and will be used even
|
||||||
|
if the --no-ignore-vcs option is used.
|
||||||
|
.TP
|
||||||
|
.B $XDG_CONFIG_HOME/fd/ignore
|
||||||
|
Global ignore file. Unless ignore mode is turned off (such as with --no-ignore)
|
||||||
|
ignore entries in this file will be ignored, as if it was an .fdignore file in the
|
||||||
|
current directory.
|
||||||
|
.SH EXAMPLES
|
||||||
|
.TP
|
||||||
|
.RI "Find files and directories that match the pattern '" needle "':"
|
||||||
|
$ fd needle
|
||||||
|
.TP
|
||||||
|
.RI "Start a search in a given directory (" /var/log "):"
|
||||||
|
$ fd nginx /var/log
|
||||||
|
.TP
|
||||||
|
.RI "Find all Python files (all files with the extension " .py ") in the current directory:"
|
||||||
|
$ fd -e py
|
||||||
|
.TP
|
||||||
|
.RI "Open all search results with vim:"
|
||||||
|
$ fd pattern -X vim
|
||||||
|
.SH Tips and Tricks
|
||||||
|
.IP \[bu]
|
||||||
|
If you add ".git/" to your global ignore file ($XDG_CONFIG_HOME/fd/ignore), then
|
||||||
|
".git" folders will be ignored by default, even when the --hidden option is used.
|
||||||
|
.IP \[bu]
|
||||||
|
You can use a shell alias or a wrapper script in order to pass desired flags to fd
|
||||||
|
by default. For example if you do not like the default behavior of respecting gitignore,
|
||||||
|
you can use
|
||||||
|
`alias fd="/usr/bin/fd --no-ignore-vcs"`
|
||||||
|
in your .bashrc to create an alias for fd that doesn't ignore git files by default.
|
||||||
|
.SH BUGS
|
||||||
|
Bugs can be reported on GitHub: https://github.com/sharkdp/fd/issues
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR find (1)
|
BIN
gitui/gitui
Executable file
BIN
gitui/gitui
Executable file
Binary file not shown.
41
install.sh
Executable file
41
install.sh
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DES_DIR=~/.local/bin
|
||||||
|
mkdir -p $DES_DIR
|
||||||
|
|
||||||
|
DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
|
||||||
|
install() {
|
||||||
|
ln -s $DIR/gitui/gitui $DES_DIR/gitui
|
||||||
|
ln -s $DIR/fzf/fzf $DES_DIR/fzf
|
||||||
|
ln -s $DIR/nvim/bin/nvim $DES_DIR/nvim
|
||||||
|
ln -s $DIR/ranger/ranger.py $DES_DIR/ranger
|
||||||
|
ln -s $DIR/ripgrep/rg $DES_DIR/rg
|
||||||
|
ln -s $DIR/yazi/yazi $DES_DIR/yazi
|
||||||
|
ln -s $DIR/zoxide/zoxide $DES_DIR/zoxide
|
||||||
|
ln -s $DIR/fd/fd $DES_DIR/fd
|
||||||
|
ln -s $DIR/btop/bin/btop $DES_DIR/btop
|
||||||
|
echo "Installation complete."
|
||||||
|
}
|
||||||
|
|
||||||
|
remove() {
|
||||||
|
rm -f $DES_DIR/gitui
|
||||||
|
rm -f $DES_DIR/fzf
|
||||||
|
rm -f $DES_DIR/nvim
|
||||||
|
rm -f $DES_DIR/ranger
|
||||||
|
rm -f $DES_DIR/rg
|
||||||
|
rm -f $DES_DIR/yazi
|
||||||
|
rm -f $DES_DIR/zoxide
|
||||||
|
rm -f $DES_DIR/fd
|
||||||
|
rm -f $DES_DIR/btop
|
||||||
|
echo "Removal complete."
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" == "install" ]; then
|
||||||
|
install
|
||||||
|
elif [ "$1" == "remove" ]; then
|
||||||
|
remove
|
||||||
|
else
|
||||||
|
echo "Usage: $0 {install|remove}"
|
||||||
|
exit 1
|
||||||
|
fi
|
BIN
nvim/bin/nvim
Executable file
BIN
nvim/bin/nvim
Executable file
Binary file not shown.
BIN
nvim/lib/nvim/parser/c.so
Normal file
BIN
nvim/lib/nvim/parser/c.so
Normal file
Binary file not shown.
BIN
nvim/lib/nvim/parser/lua.so
Normal file
BIN
nvim/lib/nvim/parser/lua.so
Normal file
Binary file not shown.
BIN
nvim/lib/nvim/parser/markdown.so
Normal file
BIN
nvim/lib/nvim/parser/markdown.so
Normal file
Binary file not shown.
BIN
nvim/lib/nvim/parser/markdown_inline.so
Normal file
BIN
nvim/lib/nvim/parser/markdown_inline.so
Normal file
Binary file not shown.
BIN
nvim/lib/nvim/parser/query.so
Normal file
BIN
nvim/lib/nvim/parser/query.so
Normal file
Binary file not shown.
BIN
nvim/lib/nvim/parser/vim.so
Normal file
BIN
nvim/lib/nvim/parser/vim.so
Normal file
Binary file not shown.
BIN
nvim/lib/nvim/parser/vimdoc.so
Normal file
BIN
nvim/lib/nvim/parser/vimdoc.so
Normal file
Binary file not shown.
92
nvim/share/applications/nvim.desktop
Normal file
92
nvim/share/applications/nvim.desktop
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Neovim
|
||||||
|
GenericName=Text Editor
|
||||||
|
GenericName[ckb]=دەستکاریکەری دەق
|
||||||
|
GenericName[de]=Texteditor
|
||||||
|
GenericName[fr]=Éditeur de texte
|
||||||
|
GenericName[ru]=Текстовый редактор
|
||||||
|
GenericName[sr]=Едитор текст
|
||||||
|
GenericName[tr]=Metin Düzenleyici
|
||||||
|
Comment=Edit text files
|
||||||
|
Comment[af]=Redigeer tekslêers
|
||||||
|
Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ
|
||||||
|
Comment[ar]=حرّر ملفات نصية
|
||||||
|
Comment[az]=Mətn fayllarını redaktə edin
|
||||||
|
Comment[be]=Рэдагаваньне тэкставых файлаў
|
||||||
|
Comment[bg]=Редактиране на текстови файлове
|
||||||
|
Comment[bn]=টেক্স্ট ফাইল এডিট করুন
|
||||||
|
Comment[bs]=Izmijeni tekstualne datoteke
|
||||||
|
Comment[ca]=Edita fitxers de text
|
||||||
|
Comment[ckb]=دەستکاریی فایلی دەق بکە
|
||||||
|
Comment[cs]=Úprava textových souborů
|
||||||
|
Comment[cy]=Golygu ffeiliau testun
|
||||||
|
Comment[da]=Redigér tekstfiler
|
||||||
|
Comment[de]=Textdateien bearbeiten
|
||||||
|
Comment[el]=Επεξεργασία αρχείων κειμένου
|
||||||
|
Comment[en_CA]=Edit text files
|
||||||
|
Comment[en_GB]=Edit text files
|
||||||
|
Comment[es]=Edita archivos de texto
|
||||||
|
Comment[et]=Redigeeri tekstifaile
|
||||||
|
Comment[eu]=Editatu testu-fitxategiak
|
||||||
|
Comment[fa]=ویرایش پروندههای متنی
|
||||||
|
Comment[fi]=Muokkaa tekstitiedostoja
|
||||||
|
Comment[fr]=Éditer des fichiers texte
|
||||||
|
Comment[ga]=Eagar comhad Téacs
|
||||||
|
Comment[gu]=લખાણ ફાઇલોમાં ફેરફાર કરો
|
||||||
|
Comment[he]=ערוך קבצי טקסט
|
||||||
|
Comment[hi]=पाठ फ़ाइलें संपादित करें
|
||||||
|
Comment[hr]=Uređivanje tekstualne datoteke
|
||||||
|
Comment[hu]=Szövegfájlok szerkesztése
|
||||||
|
Comment[id]=Edit file teks
|
||||||
|
Comment[it]=Modifica file di testo
|
||||||
|
Comment[ja]=テキストファイルを編集します
|
||||||
|
Comment[kn]=ಪಠ್ಯ ಕಡತಗಳನ್ನು ಸಂಪಾದಿಸು
|
||||||
|
Comment[ko]=텍스트 파일을 편집합니다
|
||||||
|
Comment[lt]=Redaguoti tekstines bylas
|
||||||
|
Comment[lv]=Rediģēt teksta failus
|
||||||
|
Comment[mk]=Уреди текстуални фајлови
|
||||||
|
Comment[ml]=വാചക രചനകള് തിരുത്തുക
|
||||||
|
Comment[mn]=Текст файл боловсруулах
|
||||||
|
Comment[mr]=गद्य फाइल संपादित करा
|
||||||
|
Comment[ms]=Edit fail teks
|
||||||
|
Comment[nb]=Rediger tekstfiler
|
||||||
|
Comment[ne]=पाठ फाइललाई संशोधन गर्नुहोस्
|
||||||
|
Comment[nl]=Tekstbestanden bewerken
|
||||||
|
Comment[nn]=Rediger tekstfiler
|
||||||
|
Comment[no]=Rediger tekstfiler
|
||||||
|
Comment[or]=ପାଠ୍ଯ ଫାଇଲଗୁଡ଼ିକୁ ସମ୍ପାଦନ କରନ୍ତୁ
|
||||||
|
Comment[pa]=ਪਾਠ ਫਾਇਲਾਂ ਸੰਪਾਦਨ
|
||||||
|
Comment[pl]=Edytor plików tekstowych
|
||||||
|
Comment[pt]=Editar ficheiros de texto
|
||||||
|
Comment[pt_BR]=Edite arquivos de texto
|
||||||
|
Comment[ro]=Editare fişiere text
|
||||||
|
Comment[ru]=Редактирование текстовых файлов
|
||||||
|
Comment[sk]=Úprava textových súborov
|
||||||
|
Comment[sl]=Urejanje datotek z besedili
|
||||||
|
Comment[sq]=Përpuno files teksti
|
||||||
|
Comment[sr]=Уређујте текст фајлове
|
||||||
|
Comment[sr@Latn]=Izmeni tekstualne datoteke
|
||||||
|
Comment[sv]=Redigera textfiler
|
||||||
|
Comment[ta]=உரை கோப்புகளை தொகுக்கவும்
|
||||||
|
Comment[th]=แก้ไขแฟ้มข้อความ
|
||||||
|
Comment[tk]=Metin faýllary editle
|
||||||
|
Comment[tr]=Metin dosyaları düzenleyin
|
||||||
|
Comment[uk]=Редактор текстових файлів
|
||||||
|
Comment[vi]=Soạn thảo tập tin văn bản
|
||||||
|
Comment[wa]=Asspougnî des fitchîs tecses
|
||||||
|
Comment[zh_CN]=编辑文本文件
|
||||||
|
Comment[zh_TW]=編輯文字檔
|
||||||
|
TryExec=nvim
|
||||||
|
Exec=nvim %F
|
||||||
|
Terminal=true
|
||||||
|
Type=Application
|
||||||
|
Keywords=Text;editor;
|
||||||
|
Keywords[ckb]=دەق;دەستکاریکەر;
|
||||||
|
Keywords[fr]=Texte;éditeur;
|
||||||
|
Keywords[ru]=текст;текстовый редактор;
|
||||||
|
Keywords[sr]=Текст;едитор;
|
||||||
|
Keywords[tr]=Metin;düzenleyici;
|
||||||
|
Icon=nvim
|
||||||
|
Categories=Utility;TextEditor;
|
||||||
|
StartupNotify=false
|
||||||
|
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
|
BIN
nvim/share/icons/hicolor/128x128/apps/nvim.png
Normal file
BIN
nvim/share/icons/hicolor/128x128/apps/nvim.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
nvim/share/locale/af/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/af/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/ca/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/ca/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/cs.cp1250/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/cs.cp1250/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/cs/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/cs/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/da/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/da/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/de/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/de/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/en_GB/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/en_GB/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/eo/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/eo/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/es/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/es/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/fi/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/fi/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/fr/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/fr/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/ga/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/ga/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/it/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/it/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/ja.euc-jp/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/ja.euc-jp/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/ja/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/ja/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/ko.UTF-8/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/ko.UTF-8/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/nb/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/nb/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/nl/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/nl/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/no/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/no/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/pl.UTF-8/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/pl.UTF-8/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/pt_BR/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/pt_BR/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/ru/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/ru/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/sk.cp1250/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/sk.cp1250/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/sk/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/sk/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/sv/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/sv/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/tr/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/tr/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/uk/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/uk/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/vi/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/vi/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/zh_CN.UTF-8/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/zh_CN.UTF-8/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
BIN
nvim/share/locale/zh_TW.UTF-8/LC_MESSAGES/nvim.mo
Normal file
BIN
nvim/share/locale/zh_TW.UTF-8/LC_MESSAGES/nvim.mo
Normal file
Binary file not shown.
420
nvim/share/man/man1/nvim.1
Normal file
420
nvim/share/man/man1/nvim.1
Normal file
@ -0,0 +1,420 @@
|
|||||||
|
.Dd December 17, 2017
|
||||||
|
.Dt NVIM 1
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm nvim
|
||||||
|
.Nd edit text
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm
|
||||||
|
.Op Ar options
|
||||||
|
.Op Ar file ...
|
||||||
|
.Nm
|
||||||
|
.Op Ar options
|
||||||
|
.Fl
|
||||||
|
.Nm
|
||||||
|
.Op Ar options
|
||||||
|
.Fl t Ar tag
|
||||||
|
.Nm
|
||||||
|
.Op Ar options
|
||||||
|
.Fl q Op Ar errorfile
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
.Nm
|
||||||
|
is a text editor based on Vim.
|
||||||
|
Start
|
||||||
|
.Nm
|
||||||
|
followed by any number of options and/or files:
|
||||||
|
.Pp
|
||||||
|
.Dl nvim [options] [file ...]
|
||||||
|
.Pp
|
||||||
|
Commands in
|
||||||
|
.Nm
|
||||||
|
begin with colon
|
||||||
|
.Pq Sq \&: .
|
||||||
|
Type ":help subject" to get help on a specific subject.
|
||||||
|
Use <Tab> and CTRL-D to complete subjects (":help cmdline\-completion").
|
||||||
|
.Pp
|
||||||
|
The "quickref" help section is a condensed reference of editor features:
|
||||||
|
.Dl :help quickref
|
||||||
|
.Pp
|
||||||
|
If you are new to Vim/Nvim, start with the 30-minute tutorial:
|
||||||
|
.Dl :Tutor
|
||||||
|
.Pp
|
||||||
|
After installing/updating Nvim, it's a good idea to run the self-check:
|
||||||
|
.Dl :checkhealth
|
||||||
|
.Pp
|
||||||
|
.Bl -tag -width Fl
|
||||||
|
.It Ar file ...
|
||||||
|
File(s) to edit.
|
||||||
|
Opens one buffer per file.
|
||||||
|
To switch between buffers, use the
|
||||||
|
.Ic :next
|
||||||
|
and
|
||||||
|
.Ic :previous
|
||||||
|
commands.
|
||||||
|
.It Fl
|
||||||
|
Reads text from standard input until
|
||||||
|
.Dv EOF ,
|
||||||
|
then opens a buffer with that text.
|
||||||
|
User input is read from standard error, which should be a terminal.
|
||||||
|
.El
|
||||||
|
.Sh OPTIONS
|
||||||
|
.Bl -tag -width Fl
|
||||||
|
.It Fl t Ar tag
|
||||||
|
Finds
|
||||||
|
.Ar tag
|
||||||
|
in the tags file, the associated file becomes the current
|
||||||
|
file and the associated command is executed.
|
||||||
|
Cursor is positioned at the tag location in the file.
|
||||||
|
.Ic ":help tag-commands"
|
||||||
|
.It Fl q Op Ar errorfile
|
||||||
|
QuickFix mode.
|
||||||
|
Display the first error in
|
||||||
|
.Ar errorfile .
|
||||||
|
If
|
||||||
|
.Ar errorfile
|
||||||
|
is omitted, the value of the 'errorfile' option is used (defaults to
|
||||||
|
.Cm errors.err ) .
|
||||||
|
Further errors can be jumped to with the
|
||||||
|
.Ic :cnext
|
||||||
|
command.
|
||||||
|
.Ic ":help quickfix"
|
||||||
|
.It Fl -
|
||||||
|
End of options.
|
||||||
|
Remaining arguments are treated as literal file names, including filenames starting with hyphen
|
||||||
|
.Pq Sq - .
|
||||||
|
.It Fl e
|
||||||
|
Ex mode, reading stdin as Ex commands.
|
||||||
|
.Ic ":help Ex-mode"
|
||||||
|
.It Fl E
|
||||||
|
Ex mode, reading stdin as text.
|
||||||
|
.Ic :help Ex-mode
|
||||||
|
.It Fl es
|
||||||
|
Silent (non-interactive) Ex mode, reading stdin as Ex commands.
|
||||||
|
Useful for scripting because it does NOT start a UI, unlike
|
||||||
|
.Fl e .
|
||||||
|
.Ic :help silent-mode
|
||||||
|
.It Fl \&Es
|
||||||
|
Silent (non-interactive) Ex mode, reading stdin as text.
|
||||||
|
Useful for scripting because it does NOT start a UI, unlike
|
||||||
|
.Fl E .
|
||||||
|
.Ic :help silent-mode
|
||||||
|
.It Fl d
|
||||||
|
Diff mode.
|
||||||
|
Show the difference between two to eight files, similar to
|
||||||
|
.Xr sdiff 1 .
|
||||||
|
.Ic ":help diff"
|
||||||
|
.It Fl R
|
||||||
|
Read-only mode.
|
||||||
|
Sets the 'readonly' option.
|
||||||
|
Implies
|
||||||
|
.Fl n .
|
||||||
|
Buffers can still be edited, but cannot be written to disk if already
|
||||||
|
associated with a file.
|
||||||
|
To overwrite a file, add an exclamation mark to the relevant Ex command, such as
|
||||||
|
.Ic :w! .
|
||||||
|
.Ic ":help 'readonly'"
|
||||||
|
.It Fl m
|
||||||
|
Resets the 'write' option, to disable file modifications.
|
||||||
|
Writing to a file is disabled, but buffers can still be modified.
|
||||||
|
.It Fl M
|
||||||
|
Resets the 'write' and 'modifiable' options, to disable file and buffer
|
||||||
|
modifications.
|
||||||
|
.It Fl b
|
||||||
|
Binary mode.
|
||||||
|
.Ic ":help edit-binary"
|
||||||
|
.It Fl A
|
||||||
|
Arabic mode.
|
||||||
|
Sets the 'arabic' option.
|
||||||
|
.It Fl H
|
||||||
|
Hebrew mode.
|
||||||
|
Sets the 'hkmap' and 'rightleft' options.
|
||||||
|
.It Fl V Ns Oo Ar N Oc Ns Op Ar file
|
||||||
|
Verbose mode.
|
||||||
|
Prints debug messages.
|
||||||
|
.Ar N
|
||||||
|
is the 'verbose' level, defaults to
|
||||||
|
.Cm 10 .
|
||||||
|
If
|
||||||
|
.Ar file
|
||||||
|
is specified, append messages to
|
||||||
|
.Ar file
|
||||||
|
instead of printing them.
|
||||||
|
.Ic ":help 'verbose'"
|
||||||
|
.It Fl D
|
||||||
|
Vimscript debug mode.
|
||||||
|
Started when executing the first command from a script.
|
||||||
|
:help debug-mode
|
||||||
|
.It Fl n
|
||||||
|
Disable the use of swap files.
|
||||||
|
Sets the 'updatecount' option to
|
||||||
|
.Cm 0 .
|
||||||
|
Can be useful for editing files on a slow medium.
|
||||||
|
.It Fl r Op Ar file
|
||||||
|
Recovery mode.
|
||||||
|
If
|
||||||
|
.Ar file
|
||||||
|
is omitted
|
||||||
|
then list swap files with recovery information.
|
||||||
|
Otherwise the swap file
|
||||||
|
.Ar file
|
||||||
|
is used to recover a crashed session.
|
||||||
|
The swap file has the same name as the file it's associated with, but with
|
||||||
|
.Sq .swp
|
||||||
|
appended.
|
||||||
|
.Ic ":help recovery"
|
||||||
|
.It Fl L Op Ar file
|
||||||
|
Alias for
|
||||||
|
.Fl r .
|
||||||
|
.It Fl u Ar vimrc
|
||||||
|
Use
|
||||||
|
.Ar vimrc
|
||||||
|
instead of the default
|
||||||
|
.Pa ~/.config/nvim/init.vim .
|
||||||
|
If
|
||||||
|
.Ar vimrc
|
||||||
|
is
|
||||||
|
.Cm NORC ,
|
||||||
|
do not load any initialization files (except plugins).
|
||||||
|
If
|
||||||
|
.Ar vimrc
|
||||||
|
is
|
||||||
|
.Cm NONE ,
|
||||||
|
loading plugins is also skipped.
|
||||||
|
.Ic ":help initialization"
|
||||||
|
.It Fl i Ar shada
|
||||||
|
Use
|
||||||
|
.Ar shada
|
||||||
|
instead of the default
|
||||||
|
.Pa ~/.local/state/nvim/shada/main.shada .
|
||||||
|
If
|
||||||
|
.Ar shada
|
||||||
|
is
|
||||||
|
.Cm NONE ,
|
||||||
|
do not read or write a ShaDa file.
|
||||||
|
.Ic ":help shada"
|
||||||
|
.It Fl -noplugin
|
||||||
|
Skip loading plugins (by setting the 'noloadplugins' option).
|
||||||
|
Implied by
|
||||||
|
.Cm -u NONE .
|
||||||
|
.It Fl -clean
|
||||||
|
Start Nvim with "factory defaults" (no user config and plugins, no shada).
|
||||||
|
.Ic ":help --clean"
|
||||||
|
.It Fl o Ns Op Ar N
|
||||||
|
Open
|
||||||
|
.Ar N
|
||||||
|
windows stacked horizontally.
|
||||||
|
If
|
||||||
|
.Ar N
|
||||||
|
is omitted, open one window for each file.
|
||||||
|
If
|
||||||
|
.Ar N
|
||||||
|
is less than the number of file arguments, allocate windows for the first
|
||||||
|
.Ar N
|
||||||
|
files and hide the rest.
|
||||||
|
.It Fl O Ns Op Ar N
|
||||||
|
Like
|
||||||
|
.Fl o ,
|
||||||
|
but tile windows vertically.
|
||||||
|
.It Fl p Ns Op Ar N
|
||||||
|
Like
|
||||||
|
.Fl o ,
|
||||||
|
but for tab pages.
|
||||||
|
.It Cm + Ns Op Ar linenum
|
||||||
|
For the first file, position the cursor on line
|
||||||
|
.Ar linenum .
|
||||||
|
If
|
||||||
|
.Ar linenum
|
||||||
|
is omitted, position the cursor on the last line of the file.
|
||||||
|
.Cm +5
|
||||||
|
and
|
||||||
|
.Cm -c 5
|
||||||
|
on the command-line are equivalent to
|
||||||
|
.Ic :5
|
||||||
|
inside
|
||||||
|
.Nm .
|
||||||
|
.It Cm +/ Ns Op Ar pattern
|
||||||
|
For the first file, position the cursor on the first occurrence of
|
||||||
|
.Ar pattern .
|
||||||
|
If
|
||||||
|
.Ar pattern
|
||||||
|
is omitted, the most recent search pattern is used (if any).
|
||||||
|
.Cm +/foo
|
||||||
|
and
|
||||||
|
.Cm -c /foo
|
||||||
|
on the command-line are equivalent to
|
||||||
|
.Ic /foo
|
||||||
|
and
|
||||||
|
.Ic :/foo
|
||||||
|
inside
|
||||||
|
.Nm .
|
||||||
|
.Ic ":help search-pattern"
|
||||||
|
.It \fB\+\fR\fI\,command\/\fR , Fl c Ar command
|
||||||
|
Execute
|
||||||
|
.Ar command
|
||||||
|
after reading the first file.
|
||||||
|
Up to 10 instances allowed.
|
||||||
|
.Qq Cm +foo
|
||||||
|
and
|
||||||
|
.Cm -c \(dqfoo\(dq
|
||||||
|
are equivalent.
|
||||||
|
.It Fl -cmd Ar command
|
||||||
|
Like
|
||||||
|
.Fl c ,
|
||||||
|
but execute
|
||||||
|
.Ar command
|
||||||
|
before processing any vimrc.
|
||||||
|
Up to 10 instances of these can be used independently from instances of
|
||||||
|
.Fl c .
|
||||||
|
.It Fl l Ar script Op Ar args
|
||||||
|
Execute Lua
|
||||||
|
.Ar script
|
||||||
|
with optional
|
||||||
|
.Op Ar args
|
||||||
|
after processing any preceding Nvim startup arguments.
|
||||||
|
All
|
||||||
|
.Op Ar args
|
||||||
|
are treated as script arguments and are passed literally to Lua, that is,
|
||||||
|
.Fl l
|
||||||
|
stops processing of Nvim arguments.
|
||||||
|
.Ic ":help -l"
|
||||||
|
.It Fl S Op Ar session
|
||||||
|
Execute
|
||||||
|
.Ar session
|
||||||
|
after the first file argument has been read. If
|
||||||
|
.Ar session
|
||||||
|
filename ends with
|
||||||
|
.Pa .lua
|
||||||
|
it is executed as Lua instead of Vimscript.
|
||||||
|
Equivalent to
|
||||||
|
.Cm -c \(dqsource session\(dq .
|
||||||
|
.Ar session
|
||||||
|
cannot start with a hyphen
|
||||||
|
.Pq Sq - .
|
||||||
|
If
|
||||||
|
.Ar session
|
||||||
|
is omitted then
|
||||||
|
.Pa Session.vim
|
||||||
|
is used, if found.
|
||||||
|
.Ic ":help session-file"
|
||||||
|
.It Fl s Ar scriptin
|
||||||
|
Read normal mode commands from
|
||||||
|
.Ar scriptin .
|
||||||
|
The same can be done with the command
|
||||||
|
.Ic ":source! scriptin" .
|
||||||
|
If the end of the file is reached before
|
||||||
|
.Nm
|
||||||
|
exits, further characters are read from the keyboard.
|
||||||
|
.It Fl w Ar scriptout
|
||||||
|
Append all typed characters to
|
||||||
|
.Ar scriptout .
|
||||||
|
Can be used for creating a script to be used with
|
||||||
|
.Fl s
|
||||||
|
or
|
||||||
|
.Ic :source! .
|
||||||
|
.It Fl W Ar scriptout
|
||||||
|
Like
|
||||||
|
.Fl w ,
|
||||||
|
but truncate
|
||||||
|
.Ar scriptout .
|
||||||
|
.It Fl -startuptime Ar file
|
||||||
|
During startup, append timing messages to
|
||||||
|
.Ar file .
|
||||||
|
Can be used to diagnose slow startup times.
|
||||||
|
.It Fl -api-info
|
||||||
|
Dump API metadata serialized to msgpack and exit.
|
||||||
|
.It Fl -embed
|
||||||
|
Use standard input and standard output as a msgpack-rpc channel.
|
||||||
|
:help --embed
|
||||||
|
.It Fl -headless
|
||||||
|
Do not start a UI.
|
||||||
|
When supplied with --embed this implies that the embedding application does not intend to (immediately) start a UI.
|
||||||
|
Also useful for "scraping" messages in a pipe.
|
||||||
|
:help --headless
|
||||||
|
.It Fl -listen Ar address
|
||||||
|
Start RPC server on this pipe or TCP socket.
|
||||||
|
.It Fl h , -help
|
||||||
|
Print usage information and exit.
|
||||||
|
.It Fl v , -version
|
||||||
|
Print version information and exit.
|
||||||
|
.El
|
||||||
|
.Sh ENVIRONMENT
|
||||||
|
.Bl -tag -width Fl
|
||||||
|
.It Ev NVIM_APPNAME
|
||||||
|
The name of sub-directories used within each XDG user directory.
|
||||||
|
Defaults to
|
||||||
|
.Cm nvim .
|
||||||
|
:help $NVIM_APPNAME
|
||||||
|
.It Ev NVIM_LOG_FILE
|
||||||
|
Low-level log file, usually found at ~/.local/state/nvim/log.
|
||||||
|
:help $NVIM_LOG_FILE
|
||||||
|
.It Ev VIM
|
||||||
|
Used to locate user files, such as init.vim.
|
||||||
|
System-dependent.
|
||||||
|
:help $VIM
|
||||||
|
.It Ev VIMRUNTIME
|
||||||
|
Used to locate runtime files (documentation, syntax highlighting, etc.).
|
||||||
|
.It Ev XDG_CONFIG_HOME
|
||||||
|
Path to the user-local configuration directory, see
|
||||||
|
.Sx FILES .
|
||||||
|
Defaults to
|
||||||
|
.Pa ~/.config .
|
||||||
|
:help xdg
|
||||||
|
.It Ev XDG_STATE_HOME
|
||||||
|
Like
|
||||||
|
.Ev XDG_CONFIG_HOME ,
|
||||||
|
but used to store data not generally edited by the user,
|
||||||
|
namely swap, backup, and ShaDa files.
|
||||||
|
Defaults to
|
||||||
|
.Pa ~/.local/state .
|
||||||
|
:help xdg
|
||||||
|
.It Ev XDG_DATA_HOME
|
||||||
|
Like
|
||||||
|
.Ev XDG_CONFIG_HOME ,
|
||||||
|
but used to store data not generally edited by the user,
|
||||||
|
things like runtime files.
|
||||||
|
Defaults to
|
||||||
|
.Pa ~/.local/share .
|
||||||
|
:help xdg
|
||||||
|
.It Ev VIMINIT
|
||||||
|
Ex commands to be executed at startup.
|
||||||
|
.Ic ":help VIMINIT"
|
||||||
|
.It Ev SHELL
|
||||||
|
Used to initialize the 'shell' option, which decides the default shell used by
|
||||||
|
features like
|
||||||
|
.Ic :terminal ,
|
||||||
|
.Ic :! , and
|
||||||
|
.Ic system() .
|
||||||
|
.El
|
||||||
|
.Sh FILES
|
||||||
|
.Bl -tag -width "~/.config/nvim/init.vim"
|
||||||
|
.It Pa ~/.config/nvim/init.vim
|
||||||
|
User-local
|
||||||
|
.Nm
|
||||||
|
configuration file.
|
||||||
|
.It Pa ~/.config/nvim
|
||||||
|
User-local
|
||||||
|
.Nm
|
||||||
|
configuration directory.
|
||||||
|
See also
|
||||||
|
.Ev XDG_CONFIG_HOME .
|
||||||
|
.It Pa $VIM/sysinit.vim
|
||||||
|
System-global
|
||||||
|
.Nm
|
||||||
|
configuration file.
|
||||||
|
.It Pa $VIM
|
||||||
|
System-global
|
||||||
|
.Nm
|
||||||
|
runtime directory.
|
||||||
|
.El
|
||||||
|
.Sh AUTHORS
|
||||||
|
Nvim was started by
|
||||||
|
.An Thiago de Arruda .
|
||||||
|
Most of Vim was written by
|
||||||
|
.An -nosplit
|
||||||
|
.An Bram Moolenaar .
|
||||||
|
Vim is based on Stevie, worked on by
|
||||||
|
.An Tim Thompson ,
|
||||||
|
.An Tony Andrews ,
|
||||||
|
and
|
||||||
|
.An G.R. (Fred) Walter .
|
||||||
|
.Ic ":help credits"
|
22
nvim/share/nvim/runtime/autoload/README.txt
Normal file
22
nvim/share/nvim/runtime/autoload/README.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
The autoload directory is for standard Vim autoload scripts.
|
||||||
|
|
||||||
|
These are functions used by plugins and for general use. They will be loaded
|
||||||
|
automatically when the function is invoked. See ":help autoload".
|
||||||
|
|
||||||
|
gzip.vim for editing compressed files
|
||||||
|
netrw*.vim browsing (remote) directories and editing remote files
|
||||||
|
tar.vim browsing tar files
|
||||||
|
zip.vim browsing zip files
|
||||||
|
paste.vim common code for mswin.vim, menu.vim and macmap.vim
|
||||||
|
spellfile.vim downloading of a missing spell file
|
||||||
|
|
||||||
|
Omni completion files:
|
||||||
|
ccomplete.vim C
|
||||||
|
csscomplete.vim HTML / CSS
|
||||||
|
htmlcomplete.vim HTML
|
||||||
|
javascriptcomplete.vim Javascript
|
||||||
|
phpcomplete.vim PHP
|
||||||
|
pythoncomplete.vim Python
|
||||||
|
rubycomplete.vim Ruby
|
||||||
|
syntaxcomplete.vim from syntax highlighting
|
||||||
|
xmlcomplete.vim XML (uses files in the xml directory)
|
62
nvim/share/nvim/runtime/autoload/RstFold.vim
Normal file
62
nvim/share/nvim/runtime/autoload/RstFold.vim
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
" Author: Antony Lee <anntzer.lee@gmail.com>
|
||||||
|
" Description: Helper functions for reStructuredText syntax folding
|
||||||
|
" Last Modified: 2018-12-29
|
||||||
|
|
||||||
|
function s:CacheRstFold()
|
||||||
|
if !g:rst_fold_enabled
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
let closure = {'header_types': {}, 'max_level': 0, 'levels': {}}
|
||||||
|
function closure.Process(match) dict
|
||||||
|
let curline = getcurpos()[1]
|
||||||
|
if has_key(self.levels, curline - 1)
|
||||||
|
" For over+under-lined headers, the regex will match both at the
|
||||||
|
" overline and at the title itself; in that case, skip the second match.
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let lines = split(a:match, '\n')
|
||||||
|
let key = repeat(lines[-1][0], len(lines))
|
||||||
|
if !has_key(self.header_types, key)
|
||||||
|
let self.max_level += 1
|
||||||
|
let self.header_types[key] = self.max_level
|
||||||
|
endif
|
||||||
|
let self.levels[curline] = self.header_types[key]
|
||||||
|
endfunction
|
||||||
|
let save_cursor = getcurpos()
|
||||||
|
let save_mark = getpos("'[")
|
||||||
|
silent keeppatterns %s/\v^%(%(([=`:.'"~^_*+#-])\1+\n)?.{1,2}\n([=`:.'"~^_*+#-])\2+)|%(%(([=`:.''"~^_*+#-])\3{2,}\n)?.{3,}\n([=`:.''"~^_*+#-])\4{2,})$/\=closure.Process(submatch(0))/gn
|
||||||
|
call setpos('.', save_cursor)
|
||||||
|
call setpos("'[", save_mark)
|
||||||
|
let b:RstFoldCache = closure.levels
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function RstFold#GetRstFold()
|
||||||
|
if !g:rst_fold_enabled
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !has_key(b:, 'RstFoldCache')
|
||||||
|
call s:CacheRstFold()
|
||||||
|
endif
|
||||||
|
if has_key(b:RstFoldCache, v:lnum)
|
||||||
|
return '>' . b:RstFoldCache[v:lnum]
|
||||||
|
else
|
||||||
|
return '='
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function RstFold#GetRstFoldText()
|
||||||
|
if !g:rst_fold_enabled
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !has_key(b:, 'RstFoldCache')
|
||||||
|
call s:CacheRstFold()
|
||||||
|
endif
|
||||||
|
let indent = repeat(' ', b:RstFoldCache[v:foldstart] - 1)
|
||||||
|
let thisline = getline(v:foldstart)
|
||||||
|
" For over+under-lined headers, skip the overline.
|
||||||
|
let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline
|
||||||
|
return indent . text
|
||||||
|
endfunction
|
637
nvim/share/nvim/runtime/autoload/ada.vim
Normal file
637
nvim/share/nvim/runtime/autoload/ada.vim
Normal file
@ -0,0 +1,637 @@
|
|||||||
|
"------------------------------------------------------------------------------
|
||||||
|
" Description: Perform Ada specific completion & tagging.
|
||||||
|
" Language: Ada (2005)
|
||||||
|
" $Id: ada.vim 887 2008-07-08 14:29:01Z krischik $
|
||||||
|
" Maintainer: Mathias Brousset <mathiasb17@gmail.com>
|
||||||
|
" Martin Krischik <krischik@users.sourceforge.net>
|
||||||
|
" Taylor Venable <taylor@metasyntax.net>
|
||||||
|
" Neil Bird <neil@fnxweb.com>
|
||||||
|
" Ned Okie <nokie@radford.edu>
|
||||||
|
" $Author: krischik $
|
||||||
|
" $Date: 2017-01-31 20:20:05 +0200 (Mon, 01 Jan 2017) $
|
||||||
|
" Version: 4.6
|
||||||
|
" $Revision: 887 $
|
||||||
|
" $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/autoload/ada.vim $
|
||||||
|
" History: 24.05.2006 MK Unified Headers
|
||||||
|
" 26.05.2006 MK ' should not be in iskeyword.
|
||||||
|
" 16.07.2006 MK Ada-Mode as vim-ball
|
||||||
|
" 02.10.2006 MK Better folding.
|
||||||
|
" 15.10.2006 MK Bram's suggestion for runtime integration
|
||||||
|
" 05.11.2006 MK Bram suggested not to use include protection for
|
||||||
|
" autoload
|
||||||
|
" 05.11.2006 MK Bram suggested to save on spaces
|
||||||
|
" 08.07.2007 TV fix mapleader problems.
|
||||||
|
" 09.05.2007 MK Session just won't work no matter how much
|
||||||
|
" tweaking is done
|
||||||
|
" 19.09.2007 NO still some mapleader problems
|
||||||
|
" 31.01.2017 MB fix more mapleader problems
|
||||||
|
" Help Page: ft-ada-functions
|
||||||
|
"------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
if version < 700
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Section: Constants {{{1
|
||||||
|
"
|
||||||
|
let g:ada#DotWordRegex = '\a\w*\(\_s*\.\_s*\a\w*\)*'
|
||||||
|
let g:ada#WordRegex = '\a\w*'
|
||||||
|
let g:ada#Comment = "\\v^(\"[^\"]*\"|'.'|[^\"']){-}\\zs\\s*--.*"
|
||||||
|
let g:ada#Keywords = []
|
||||||
|
|
||||||
|
" Section: g:ada#Keywords {{{1
|
||||||
|
"
|
||||||
|
" Section: add Ada keywords {{{2
|
||||||
|
"
|
||||||
|
for Item in ['abort', 'else', 'new', 'return', 'abs', 'elsif', 'not', 'reverse', 'abstract', 'end', 'null', 'accept', 'entry', 'select', 'access', 'exception', 'of', 'separate', 'aliased', 'exit', 'or', 'subtype', 'all', 'others', 'synchronized', 'and', 'for', 'out', 'array', 'function', 'overriding', 'tagged', 'at', 'task', 'generic', 'package', 'terminate', 'begin', 'goto', 'pragma', 'then', 'body', 'private', 'type', 'if', 'procedure', 'case', 'in', 'protected', 'until', 'constant', 'interface', 'use', 'is', 'raise', 'declare', 'range', 'when', 'delay', 'limited', 'record', 'while', 'delta', 'loop', 'rem', 'with', 'digits', 'renames', 'do', 'mod', 'requeue', 'xor']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'keyword',
|
||||||
|
\ 'info': 'Ada keyword.',
|
||||||
|
\ 'kind': 'k',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" Section: GNAT Project Files {{{3
|
||||||
|
"
|
||||||
|
if exists ('g:ada_with_gnat_project_files')
|
||||||
|
for Item in ['project']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'keyword',
|
||||||
|
\ 'info': 'GNAT projectfile keyword.',
|
||||||
|
\ 'kind': 'k',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Section: add standard exception {{{2
|
||||||
|
"
|
||||||
|
for Item in ['Constraint_Error', 'Program_Error', 'Storage_Error', 'Tasking_Error', 'Status_Error', 'Mode_Error', 'Name_Error', 'Use_Error', 'Device_Error', 'End_Error', 'Data_Error', 'Layout_Error', 'Length_Error', 'Pattern_Error', 'Index_Error', 'Translation_Error', 'Time_Error', 'Argument_Error', 'Tag_Error', 'Picture_Error', 'Terminator_Error', 'Conversion_Error', 'Pointer_Error', 'Dereference_Error', 'Update_Error']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'exception',
|
||||||
|
\ 'info': 'Ada standard exception.',
|
||||||
|
\ 'kind': 'x',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" Section: add GNAT exception {{{3
|
||||||
|
"
|
||||||
|
if exists ('g:ada_gnat_extensions')
|
||||||
|
for Item in ['Assert_Failure']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'exception',
|
||||||
|
\ 'info': 'GNAT exception.',
|
||||||
|
\ 'kind': 'x',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Section: add Ada buildin types {{{2
|
||||||
|
"
|
||||||
|
for Item in ['Boolean', 'Integer', 'Natural', 'Positive', 'Float', 'Character', 'Wide_Character', 'Wide_Wide_Character', 'String', 'Wide_String', 'Wide_Wide_String', 'Duration']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'type',
|
||||||
|
\ 'info': 'Ada buildin type.',
|
||||||
|
\ 'kind': 't',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" Section: add GNAT buildin types {{{3
|
||||||
|
"
|
||||||
|
if exists ('g:ada_gnat_extensions')
|
||||||
|
for Item in ['Short_Integer', 'Short_Short_Integer', 'Long_Integer', 'Long_Long_Integer', 'Short_Float', 'Short_Short_Float', 'Long_Float', 'Long_Long_Float']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'type',
|
||||||
|
\ 'info': 'GNAT buildin type.',
|
||||||
|
\ 'kind': 't',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Section: add Ada Attributes {{{2
|
||||||
|
"
|
||||||
|
for Item in ['''Access', '''Address', '''Adjacent', '''Aft', '''Alignment', '''Base', '''Bit_Order', '''Body_Version', '''Callable', '''Caller', '''Ceiling', '''Class', '''Component_Size', '''Compose', '''Constrained', '''Copy_Sign', '''Count', '''Definite', '''Delta', '''Denorm', '''Digits', '''Emax', '''Exponent', '''External_Tag', '''Epsilon', '''First', '''First_Bit', '''Floor', '''Fore', '''Fraction', '''Identity', '''Image', '''Input', '''Large', '''Last', '''Last_Bit', '''Leading_Part', '''Length', '''Machine', '''Machine_Emax', '''Machine_Emin', '''Machine_Mantissa', '''Machine_Overflows', '''Machine_Radix', '''Machine_Rounding', '''Machine_Rounds', '''Mantissa', '''Max', '''Max_Size_In_Storage_Elements', '''Min', '''Mod', '''Model', '''Model_Emin', '''Model_Epsilon', '''Model_Mantissa', '''Model_Small', '''Modulus', '''Output', '''Partition_ID', '''Pos', '''Position', '''Pred', '''Priority', '''Range', '''Read', '''Remainder', '''Round', '''Rounding', '''Safe_Emax', '''Safe_First', '''Safe_Large', '''Safe_Last', '''Safe_Small', '''Scale', '''Scaling', '''Signed_Zeros', '''Size', '''Small', '''Storage_Pool', '''Storage_Size', '''Stream_Size', '''Succ', '''Tag', '''Terminated', '''Truncation', '''Unbiased_Rounding', '''Unchecked_Access', '''Val', '''Valid', '''Value', '''Version', '''Wide_Image', '''Wide_Value', '''Wide_Wide_Image', '''Wide_Wide_Value', '''Wide_Wide_Width', '''Wide_Width', '''Width', '''Write']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'attribute',
|
||||||
|
\ 'info': 'Ada attribute.',
|
||||||
|
\ 'kind': 'a',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" Section: add GNAT Attributes {{{3
|
||||||
|
"
|
||||||
|
if exists ('g:ada_gnat_extensions')
|
||||||
|
for Item in ['''Abort_Signal', '''Address_Size', '''Asm_Input', '''Asm_Output', '''AST_Entry', '''Bit', '''Bit_Position', '''Code_Address', '''Default_Bit_Order', '''Elaborated', '''Elab_Body', '''Elab_Spec', '''Emax', '''Enum_Rep', '''Epsilon', '''Fixed_Value', '''Has_Access_Values', '''Has_Discriminants', '''Img', '''Integer_Value', '''Machine_Size', '''Max_Interrupt_Priority', '''Max_Priority', '''Maximum_Alignment', '''Mechanism_Code', '''Null_Parameter', '''Object_Size', '''Passed_By_Reference', '''Range_Length', '''Storage_Unit', '''Target_Name', '''Tick', '''To_Address', '''Type_Class', '''UET_Address', '''Unconstrained_Array', '''Universal_Literal_String', '''Unrestricted_Access', '''VADS_Size', '''Value_Size', '''Wchar_T_Size', '''Word_Size']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'attribute',
|
||||||
|
\ 'info': 'GNAT attribute.',
|
||||||
|
\ 'kind': 'a',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Section: add Ada Pragmas {{{2
|
||||||
|
"
|
||||||
|
for Item in ['All_Calls_Remote', 'Assert', 'Assertion_Policy', 'Asynchronous', 'Atomic', 'Atomic_Components', 'Attach_Handler', 'Controlled', 'Convention', 'Detect_Blocking', 'Discard_Names', 'Elaborate', 'Elaborate_All', 'Elaborate_Body', 'Export', 'Import', 'Inline', 'Inspection_Point', 'Interface (Obsolescent)', 'Interrupt_Handler', 'Interrupt_Priority', 'Linker_Options', 'List', 'Locking_Policy', 'Memory_Size (Obsolescent)', 'No_Return', 'Normalize_Scalars', 'Optimize', 'Pack', 'Page', 'Partition_Elaboration_Policy', 'Preelaborable_Initialization', 'Preelaborate', 'Priority', 'Priority_Specific_Dispatching', 'Profile', 'Pure', 'Queueing_Policy', 'Relative_Deadline', 'Remote_Call_Interface', 'Remote_Types', 'Restrictions', 'Reviewable', 'Shared (Obsolescent)', 'Shared_Passive', 'Storage_Size', 'Storage_Unit (Obsolescent)', 'Suppress', 'System_Name (Obsolescent)', 'Task_Dispatching_Policy', 'Unchecked_Union', 'Unsuppress', 'Volatile', 'Volatile_Components']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'pragma',
|
||||||
|
\ 'info': 'Ada pragma.',
|
||||||
|
\ 'kind': 'p',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" Section: add GNAT Pragmas {{{3
|
||||||
|
"
|
||||||
|
if exists ('g:ada_gnat_extensions')
|
||||||
|
for Item in ['Abort_Defer', 'Ada_83', 'Ada_95', 'Ada_05', 'Annotate', 'Ast_Entry', 'C_Pass_By_Copy', 'Comment', 'Common_Object', 'Compile_Time_Warning', 'Complex_Representation', 'Component_Alignment', 'Convention_Identifier', 'CPP_Class', 'CPP_Constructor', 'CPP_Virtual', 'CPP_Vtable', 'Debug', 'Elaboration_Checks', 'Eliminate', 'Export_Exception', 'Export_Function', 'Export_Object', 'Export_Procedure', 'Export_Value', 'Export_Valued_Procedure', 'Extend_System', 'External', 'External_Name_Casing', 'Finalize_Storage_Only', 'Float_Representation', 'Ident', 'Import_Exception', 'Import_Function', 'Import_Object', 'Import_Procedure', 'Import_Valued_Procedure', 'Initialize_Scalars', 'Inline_Always', 'Inline_Generic', 'Interface_Name', 'Interrupt_State', 'Keep_Names', 'License', 'Link_With', 'Linker_Alias', 'Linker_Section', 'Long_Float', 'Machine_Attribute', 'Main_Storage', 'Obsolescent', 'Passive', 'Polling', 'Profile_Warnings', 'Propagate_Exceptions', 'Psect_Object', 'Pure_Function', 'Restriction_Warnings', 'Source_File_Name', 'Source_File_Name_Project', 'Source_Reference', 'Stream_Convert', 'Style_Checks', 'Subtitle', 'Suppress_All', 'Suppress_Exception_Locations', 'Suppress_Initialization', 'Task_Info', 'Task_Name', 'Task_Storage', 'Thread_Body', 'Time_Slice', 'Title', 'Unimplemented_Unit', 'Universal_Data', 'Unreferenced', 'Unreserve_All_Interrupts', 'Use_VADS_Size', 'Validity_Checks', 'Warnings', 'Weak_External']
|
||||||
|
let g:ada#Keywords += [{
|
||||||
|
\ 'word': Item,
|
||||||
|
\ 'menu': 'pragma',
|
||||||
|
\ 'info': 'GNAT pragma.',
|
||||||
|
\ 'kind': 'p',
|
||||||
|
\ 'icase': 1}]
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
" 1}}}
|
||||||
|
|
||||||
|
" Section: g:ada#Ctags_Kinds {{{1
|
||||||
|
"
|
||||||
|
let g:ada#Ctags_Kinds = {
|
||||||
|
\ 'P': ["packspec", "package specifications"],
|
||||||
|
\ 'p': ["package", "packages"],
|
||||||
|
\ 'T': ["typespec", "type specifications"],
|
||||||
|
\ 't': ["type", "types"],
|
||||||
|
\ 'U': ["subspec", "subtype specifications"],
|
||||||
|
\ 'u': ["subtype", "subtypes"],
|
||||||
|
\ 'c': ["component", "record type components"],
|
||||||
|
\ 'l': ["literal", "enum type literals"],
|
||||||
|
\ 'V': ["varspec", "variable specifications"],
|
||||||
|
\ 'v': ["variable", "variables"],
|
||||||
|
\ 'f': ["formal", "generic formal parameters"],
|
||||||
|
\ 'n': ["constant", "constants"],
|
||||||
|
\ 'x': ["exception", "user defined exceptions"],
|
||||||
|
\ 'R': ["subprogspec", "subprogram specifications"],
|
||||||
|
\ 'r': ["subprogram", "subprograms"],
|
||||||
|
\ 'K': ["taskspec", "task specifications"],
|
||||||
|
\ 'k': ["task", "tasks"],
|
||||||
|
\ 'O': ["protectspec", "protected data specifications"],
|
||||||
|
\ 'o': ["protected", "protected data"],
|
||||||
|
\ 'E': ["entryspec", "task/protected data entry specifications"],
|
||||||
|
\ 'e': ["entry", "task/protected data entries"],
|
||||||
|
\ 'b': ["label", "labels"],
|
||||||
|
\ 'i': ["identifier", "loop/declare identifiers"],
|
||||||
|
\ 'a': ["autovar", "automatic variables"],
|
||||||
|
\ 'y': ["annon", "loops and blocks with no identifier"]}
|
||||||
|
|
||||||
|
" Section: ada#Word (...) {{{1
|
||||||
|
"
|
||||||
|
" Extract current Ada word across multiple lines
|
||||||
|
" AdaWord ([line, column])\
|
||||||
|
"
|
||||||
|
function ada#Word (...)
|
||||||
|
if a:0 > 1
|
||||||
|
let l:Line_Nr = a:1
|
||||||
|
let l:Column_Nr = a:2 - 1
|
||||||
|
else
|
||||||
|
let l:Line_Nr = line('.')
|
||||||
|
let l:Column_Nr = col('.') - 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
let l:Line = substitute (getline (l:Line_Nr), g:ada#Comment, '', '' )
|
||||||
|
|
||||||
|
" Cope with tag searching for items in comments; if we are, don't loop
|
||||||
|
" backwards looking for previous lines
|
||||||
|
if l:Column_Nr > strlen(l:Line)
|
||||||
|
" We were in a comment
|
||||||
|
let l:Line = getline(l:Line_Nr)
|
||||||
|
let l:Search_Prev_Lines = 0
|
||||||
|
else
|
||||||
|
let l:Search_Prev_Lines = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Go backwards until we find a match (Ada ID) that *doesn't* include our
|
||||||
|
" location - i.e., the previous ID. This is because the current 'correct'
|
||||||
|
" match will toggle matching/not matching as we traverse characters
|
||||||
|
" backwards. Thus, we have to find the previous unrelated match, exclude
|
||||||
|
" it, then use the next full match (ours).
|
||||||
|
" Remember to convert vim column 'l:Column_Nr' [1..n] to string offset [0..(n-1)]
|
||||||
|
" ... but start, here, one after the required char.
|
||||||
|
let l:New_Column = l:Column_Nr + 1
|
||||||
|
while 1
|
||||||
|
let l:New_Column = l:New_Column - 1
|
||||||
|
if l:New_Column < 0
|
||||||
|
" Have to include previous l:Line from file
|
||||||
|
let l:Line_Nr = l:Line_Nr - 1
|
||||||
|
if l:Line_Nr < 1 || !l:Search_Prev_Lines
|
||||||
|
" Start of file or matching in a comment
|
||||||
|
let l:Line_Nr = 1
|
||||||
|
let l:New_Column = 0
|
||||||
|
let l:Our_Match = match (l:Line, g:ada#WordRegex )
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
" Get previous l:Line, and prepend it to our search string
|
||||||
|
let l:New_Line = substitute (getline (l:Line_Nr), g:ada#Comment, '', '' )
|
||||||
|
let l:New_Column = strlen (l:New_Line) - 1
|
||||||
|
let l:Column_Nr = l:Column_Nr + l:New_Column
|
||||||
|
let l:Line = l:New_Line . l:Line
|
||||||
|
endif
|
||||||
|
" Check to see if this is a match excluding 'us'
|
||||||
|
let l:Match_End = l:New_Column +
|
||||||
|
\ matchend (strpart (l:Line,l:New_Column), g:ada#WordRegex ) - 1
|
||||||
|
if l:Match_End >= l:New_Column &&
|
||||||
|
\ l:Match_End < l:Column_Nr
|
||||||
|
" Yes
|
||||||
|
let l:Our_Match = l:Match_End+1 +
|
||||||
|
\ match (strpart (l:Line,l:Match_End+1), g:ada#WordRegex )
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
" Got anything?
|
||||||
|
if l:Our_Match < 0
|
||||||
|
return ''
|
||||||
|
else
|
||||||
|
let l:Line = strpart (l:Line, l:Our_Match)
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Now simply add further lines until the match gets no bigger
|
||||||
|
let l:Match_String = matchstr (l:Line, g:ada#WordRegex)
|
||||||
|
let l:Last_Line = line ('$')
|
||||||
|
let l:Line_Nr = line ('.') + 1
|
||||||
|
while l:Line_Nr <= l:Last_Line
|
||||||
|
let l:Last_Match = l:Match_String
|
||||||
|
let l:Line = l:Line .
|
||||||
|
\ substitute (getline (l:Line_Nr), g:ada#Comment, '', '')
|
||||||
|
let l:Match_String = matchstr (l:Line, g:ada#WordRegex)
|
||||||
|
if l:Match_String == l:Last_Match
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
" Strip whitespace & return
|
||||||
|
return substitute (l:Match_String, '\s\+', '', 'g')
|
||||||
|
endfunction ada#Word
|
||||||
|
|
||||||
|
" Section: ada#List_Tag (...) {{{1
|
||||||
|
"
|
||||||
|
" List tags in quickfix window
|
||||||
|
"
|
||||||
|
function ada#List_Tag (...)
|
||||||
|
if a:0 > 1
|
||||||
|
let l:Tag_Word = ada#Word (a:1, a:2)
|
||||||
|
elseif a:0 > 0
|
||||||
|
let l:Tag_Word = a:1
|
||||||
|
else
|
||||||
|
let l:Tag_Word = ada#Word ()
|
||||||
|
endif
|
||||||
|
|
||||||
|
echo "Searching for" l:Tag_Word
|
||||||
|
|
||||||
|
let l:Pattern = '^' . l:Tag_Word . '$'
|
||||||
|
let l:Tag_List = taglist (l:Pattern)
|
||||||
|
let l:Error_List = []
|
||||||
|
"
|
||||||
|
" add symbols
|
||||||
|
"
|
||||||
|
for Tag_Item in l:Tag_List
|
||||||
|
if l:Tag_Item['kind'] == ''
|
||||||
|
let l:Tag_Item['kind'] = 's'
|
||||||
|
endif
|
||||||
|
|
||||||
|
let l:Error_List += [
|
||||||
|
\ l:Tag_Item['filename'] . '|' .
|
||||||
|
\ l:Tag_Item['cmd'] . '|' .
|
||||||
|
\ l:Tag_Item['kind'] . "\t" .
|
||||||
|
\ l:Tag_Item['name'] ]
|
||||||
|
endfor
|
||||||
|
set errorformat=%f\|%l\|%m
|
||||||
|
cexpr l:Error_List
|
||||||
|
cwindow
|
||||||
|
endfunction ada#List_Tag
|
||||||
|
|
||||||
|
" Section: ada#Jump_Tag (Word, Mode) {{{1
|
||||||
|
"
|
||||||
|
" Word tag - include '.' and if Ada make uppercase
|
||||||
|
"
|
||||||
|
function ada#Jump_Tag (Word, Mode)
|
||||||
|
if a:Word == ''
|
||||||
|
" Get current word
|
||||||
|
let l:Word = ada#Word()
|
||||||
|
if l:Word == ''
|
||||||
|
throw "NOT_FOUND: no identifier found."
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let l:Word = a:Word
|
||||||
|
endif
|
||||||
|
|
||||||
|
echo "Searching for " . l:Word
|
||||||
|
|
||||||
|
try
|
||||||
|
execute a:Mode l:Word
|
||||||
|
catch /.*:E426:.*/
|
||||||
|
let ignorecase = &ignorecase
|
||||||
|
set ignorecase
|
||||||
|
execute a:Mode l:Word
|
||||||
|
let &ignorecase = ignorecase
|
||||||
|
endtry
|
||||||
|
|
||||||
|
return
|
||||||
|
endfunction ada#Jump_Tag
|
||||||
|
|
||||||
|
" Section: ada#Insert_Backspace () {{{1
|
||||||
|
"
|
||||||
|
" Backspace at end of line after auto-inserted commentstring '-- ' wipes it
|
||||||
|
"
|
||||||
|
function ada#Insert_Backspace ()
|
||||||
|
let l:Line = getline ('.')
|
||||||
|
if col ('.') > strlen (l:Line) &&
|
||||||
|
\ match (l:Line, '-- $') != -1 &&
|
||||||
|
\ match (&comments,'--') != -1
|
||||||
|
return "\<bs>\<bs>\<bs>"
|
||||||
|
else
|
||||||
|
return "\<bs>"
|
||||||
|
endif
|
||||||
|
|
||||||
|
return
|
||||||
|
endfunction ada#InsertBackspace
|
||||||
|
|
||||||
|
" Section: Insert Completions {{{1
|
||||||
|
"
|
||||||
|
" Section: ada#User_Complete(findstart, base) {{{2
|
||||||
|
"
|
||||||
|
" This function is used for the 'complete' option.
|
||||||
|
"
|
||||||
|
function! ada#User_Complete(findstart, base)
|
||||||
|
if a:findstart == 1
|
||||||
|
"
|
||||||
|
" locate the start of the word
|
||||||
|
"
|
||||||
|
let line = getline ('.')
|
||||||
|
let start = col ('.') - 1
|
||||||
|
while start > 0 && line[start - 1] =~ '\i\|'''
|
||||||
|
let start -= 1
|
||||||
|
endwhile
|
||||||
|
return start
|
||||||
|
else
|
||||||
|
"
|
||||||
|
" look up matches
|
||||||
|
"
|
||||||
|
let l:Pattern = '^' . a:base . '.*$'
|
||||||
|
"
|
||||||
|
" add keywords
|
||||||
|
"
|
||||||
|
for Tag_Item in g:ada#Keywords
|
||||||
|
if l:Tag_Item['word'] =~? l:Pattern
|
||||||
|
if complete_add (l:Tag_Item) == 0
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
if complete_check ()
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
endfunction ada#User_Complete
|
||||||
|
|
||||||
|
" Section: ada#Completion (cmd) {{{2
|
||||||
|
"
|
||||||
|
" Word completion (^N/^R/^X^]) - force '.' inclusion
|
||||||
|
function ada#Completion (cmd)
|
||||||
|
set iskeyword+=46
|
||||||
|
return a:cmd . "\<C-R>=ada#Completion_End ()\<CR>"
|
||||||
|
endfunction ada#Completion
|
||||||
|
|
||||||
|
" Section: ada#Completion_End () {{{2
|
||||||
|
"
|
||||||
|
function ada#Completion_End ()
|
||||||
|
set iskeyword-=46
|
||||||
|
return ''
|
||||||
|
endfunction ada#Completion_End
|
||||||
|
|
||||||
|
" Section: ada#Create_Tags {{{1
|
||||||
|
"
|
||||||
|
function ada#Create_Tags (option)
|
||||||
|
if a:option == 'file'
|
||||||
|
let l:Filename = fnamemodify (bufname ('%'), ':p')
|
||||||
|
elseif a:option == 'dir'
|
||||||
|
let l:Filename =
|
||||||
|
\ fnamemodify (bufname ('%'), ':p:h') . "*.ada " .
|
||||||
|
\ fnamemodify (bufname ('%'), ':p:h') . "*.adb " .
|
||||||
|
\ fnamemodify (bufname ('%'), ':p:h') . "*.ads"
|
||||||
|
else
|
||||||
|
let l:Filename = a:option
|
||||||
|
endif
|
||||||
|
execute '!ctags --excmd=number ' . l:Filename
|
||||||
|
endfunction ada#Create_Tags
|
||||||
|
|
||||||
|
" Section: ada#Switch_Session {{{1
|
||||||
|
"
|
||||||
|
function ada#Switch_Session (New_Session)
|
||||||
|
"
|
||||||
|
" you should not save to much date into the seession since they will
|
||||||
|
" be sourced
|
||||||
|
"
|
||||||
|
let l:sessionoptions=&sessionoptions
|
||||||
|
|
||||||
|
try
|
||||||
|
set sessionoptions=buffers,curdir,folds,globals,resize,slash,tabpages,tabpages,unix,winpos,winsize
|
||||||
|
|
||||||
|
if a:New_Session != v:this_session
|
||||||
|
"
|
||||||
|
" We actually got a new session - otherwise there
|
||||||
|
" is nothing to do.
|
||||||
|
"
|
||||||
|
if strlen (v:this_session) > 0
|
||||||
|
execute 'mksession! ' . v:this_session
|
||||||
|
endif
|
||||||
|
|
||||||
|
let v:this_session = a:New_Session
|
||||||
|
|
||||||
|
"if filereadable (v:this_session)
|
||||||
|
"execute 'source ' . v:this_session
|
||||||
|
"endif
|
||||||
|
|
||||||
|
augroup ada_session
|
||||||
|
autocmd!
|
||||||
|
autocmd VimLeavePre * execute 'mksession! ' . v:this_session
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
"if exists ("g:Tlist_Auto_Open") && g:Tlist_Auto_Open
|
||||||
|
"TlistOpen
|
||||||
|
"endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
finally
|
||||||
|
let &sessionoptions=l:sessionoptions
|
||||||
|
endtry
|
||||||
|
|
||||||
|
return
|
||||||
|
endfunction ada#Switch_Session
|
||||||
|
|
||||||
|
" Section: GNAT Pretty Printer folding {{{1
|
||||||
|
"
|
||||||
|
if exists('g:ada_folding') && g:ada_folding[0] == 'g'
|
||||||
|
"
|
||||||
|
" Lines consisting only of ')' ';' are due to a gnat pretty bug and
|
||||||
|
" have the same level as the line above (can't happen in the first
|
||||||
|
" line).
|
||||||
|
"
|
||||||
|
let s:Fold_Collate = '^\([;)]*$\|'
|
||||||
|
|
||||||
|
"
|
||||||
|
" some lone statements are folded with the line above
|
||||||
|
"
|
||||||
|
if stridx (g:ada_folding, 'i') >= 0
|
||||||
|
let s:Fold_Collate .= '\s\+\<is\>$\|'
|
||||||
|
endif
|
||||||
|
if stridx (g:ada_folding, 'b') >= 0
|
||||||
|
let s:Fold_Collate .= '\s\+\<begin\>$\|'
|
||||||
|
endif
|
||||||
|
if stridx (g:ada_folding, 'p') >= 0
|
||||||
|
let s:Fold_Collate .= '\s\+\<private\>$\|'
|
||||||
|
endif
|
||||||
|
if stridx (g:ada_folding, 'x') >= 0
|
||||||
|
let s:Fold_Collate .= '\s\+\<exception\>$\|'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" We also handle empty lines and
|
||||||
|
" comments here.
|
||||||
|
let s:Fold_Collate .= '--\)'
|
||||||
|
|
||||||
|
function ada#Pretty_Print_Folding (Line) " {{{2
|
||||||
|
let l:Text = getline (a:Line)
|
||||||
|
|
||||||
|
if l:Text =~ s:Fold_Collate
|
||||||
|
"
|
||||||
|
" fold with line above
|
||||||
|
"
|
||||||
|
let l:Level = "="
|
||||||
|
elseif l:Text =~ '^\s\+('
|
||||||
|
"
|
||||||
|
" gnat outdents a line which stards with a ( by one characters so
|
||||||
|
" that parameters which follow are aligned.
|
||||||
|
"
|
||||||
|
let l:Level = (indent (a:Line) + 1) / &shiftwidth
|
||||||
|
else
|
||||||
|
let l:Level = indent (a:Line) / &shiftwidth
|
||||||
|
endif
|
||||||
|
|
||||||
|
return l:Level
|
||||||
|
endfunction ada#Pretty_Print_Folding " }}}2
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Section: Options and Menus {{{1
|
||||||
|
"
|
||||||
|
" Section: ada#Switch_Syntax_Options {{{2
|
||||||
|
"
|
||||||
|
function ada#Switch_Syntax_Option (option)
|
||||||
|
syntax off
|
||||||
|
if exists ('g:ada_' . a:option)
|
||||||
|
unlet g:ada_{a:option}
|
||||||
|
echo a:option . 'now off'
|
||||||
|
else
|
||||||
|
let g:ada_{a:option}=1
|
||||||
|
echo a:option . 'now on'
|
||||||
|
endif
|
||||||
|
syntax on
|
||||||
|
endfunction ada#Switch_Syntax_Option
|
||||||
|
|
||||||
|
" Section: ada#Map_Menu {{{2
|
||||||
|
"
|
||||||
|
function ada#Map_Menu (Text, Keys, Command)
|
||||||
|
if a:Keys[0] == ':'
|
||||||
|
execute
|
||||||
|
\ "50amenu " .
|
||||||
|
\ "Ada." . escape(a:Text, ' ') .
|
||||||
|
\ "<Tab>" . a:Keys .
|
||||||
|
\ " :" . a:Command . "<CR>"
|
||||||
|
execute
|
||||||
|
\ "command -buffer " .
|
||||||
|
\ a:Keys[1:] .
|
||||||
|
\" :" . a:Command . "<CR>"
|
||||||
|
elseif a:Keys[0] == '<'
|
||||||
|
execute
|
||||||
|
\ "50amenu " .
|
||||||
|
\ "Ada." . escape(a:Text, ' ') .
|
||||||
|
\ "<Tab>" . a:Keys .
|
||||||
|
\ " :" . a:Command . "<CR>"
|
||||||
|
execute
|
||||||
|
\ "nnoremap <buffer> " .
|
||||||
|
\ a:Keys .
|
||||||
|
\" :" . a:Command . "<CR>"
|
||||||
|
execute
|
||||||
|
\ "inoremap <buffer> " .
|
||||||
|
\ a:Keys .
|
||||||
|
\" <C-O>:" . a:Command . "<CR>"
|
||||||
|
else
|
||||||
|
if exists("g:mapleader")
|
||||||
|
let l:leader = g:mapleader
|
||||||
|
else
|
||||||
|
let l:leader = '\'
|
||||||
|
endif
|
||||||
|
execute
|
||||||
|
\ "50amenu " .
|
||||||
|
\ "Ada." . escape(a:Text, ' ') .
|
||||||
|
\ "<Tab>" . escape(l:leader . "a" . a:Keys , '\') .
|
||||||
|
\ " :" . a:Command . "<CR>"
|
||||||
|
execute
|
||||||
|
\ "nnoremap <buffer>" .
|
||||||
|
\ " <Leader>a" . a:Keys .
|
||||||
|
\" :" . a:Command
|
||||||
|
execute
|
||||||
|
\ "inoremap <buffer>" .
|
||||||
|
\ " <Leader>a" . a:Keys .
|
||||||
|
\" <C-O>:" . a:Command
|
||||||
|
endif
|
||||||
|
return
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Section: ada#Map_Popup {{{2
|
||||||
|
"
|
||||||
|
function ada#Map_Popup (Text, Keys, Command)
|
||||||
|
if exists("g:mapleader")
|
||||||
|
let l:leader = g:mapleader
|
||||||
|
else
|
||||||
|
let l:leader = '\'
|
||||||
|
endif
|
||||||
|
execute
|
||||||
|
\ "50amenu " .
|
||||||
|
\ "PopUp." . escape(a:Text, ' ') .
|
||||||
|
\ "<Tab>" . escape(l:leader . "a" . a:Keys , '\') .
|
||||||
|
\ " :" . a:Command . "<CR>"
|
||||||
|
|
||||||
|
call ada#Map_Menu (a:Text, a:Keys, a:Command)
|
||||||
|
return
|
||||||
|
endfunction ada#Map_Popup
|
||||||
|
|
||||||
|
" }}}1
|
||||||
|
|
||||||
|
lockvar g:ada#WordRegex
|
||||||
|
lockvar g:ada#DotWordRegex
|
||||||
|
lockvar g:ada#Comment
|
||||||
|
lockvar! g:ada#Keywords
|
||||||
|
lockvar! g:ada#Ctags_Kinds
|
||||||
|
|
||||||
|
let &cpo = s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
|
||||||
|
finish " 1}}}
|
||||||
|
|
||||||
|
"------------------------------------------------------------------------------
|
||||||
|
" Copyright (C) 2006 Martin Krischik
|
||||||
|
"
|
||||||
|
" Vim is Charityware - see ":help license" or uganda.txt for licence details.
|
||||||
|
"------------------------------------------------------------------------------
|
||||||
|
" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
|
||||||
|
" vim: foldmethod=marker
|
109
nvim/share/nvim/runtime/autoload/adacomplete.vim
Normal file
109
nvim/share/nvim/runtime/autoload/adacomplete.vim
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
"------------------------------------------------------------------------------
|
||||||
|
" Description: Vim Ada omnicompletion file
|
||||||
|
" Language: Ada (2005)
|
||||||
|
" $Id: adacomplete.vim 887 2008-07-08 14:29:01Z krischik $
|
||||||
|
" Maintainer: Martin Krischik
|
||||||
|
" $Author: krischik $
|
||||||
|
" $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
|
||||||
|
" Version: 4.6
|
||||||
|
" $Revision: 887 $
|
||||||
|
" $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/autoload/adacomplete.vim $
|
||||||
|
" History: 24.05.2006 MK Unified Headers
|
||||||
|
" 26.05.2006 MK improved search for begin of word.
|
||||||
|
" 16.07.2006 MK Ada-Mode as vim-ball
|
||||||
|
" 15.10.2006 MK Bram's suggestion for runtime integration
|
||||||
|
" 05.11.2006 MK Bram suggested not to use include protection for
|
||||||
|
" autoload
|
||||||
|
" 05.11.2006 MK Bram suggested against using setlocal omnifunc
|
||||||
|
" 05.11.2006 MK Bram suggested to save on spaces
|
||||||
|
" Help Page: ft-ada-omni
|
||||||
|
"------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
if version < 700
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Section: adacomplete#Complete () {{{1
|
||||||
|
"
|
||||||
|
" This function is used for the 'omnifunc' option.
|
||||||
|
"
|
||||||
|
function! adacomplete#Complete (findstart, base)
|
||||||
|
if a:findstart == 1
|
||||||
|
return ada#User_Complete (a:findstart, a:base)
|
||||||
|
else
|
||||||
|
"
|
||||||
|
" look up matches
|
||||||
|
"
|
||||||
|
if exists ("g:ada_omni_with_keywords")
|
||||||
|
call ada#User_Complete (a:findstart, a:base)
|
||||||
|
endif
|
||||||
|
"
|
||||||
|
" search tag file for matches
|
||||||
|
"
|
||||||
|
let l:Pattern = '^' . a:base . '.*$'
|
||||||
|
let l:Tag_List = taglist (l:Pattern)
|
||||||
|
"
|
||||||
|
" add symbols
|
||||||
|
"
|
||||||
|
for Tag_Item in l:Tag_List
|
||||||
|
if l:Tag_Item['kind'] == ''
|
||||||
|
"
|
||||||
|
" Tag created by gnat xref
|
||||||
|
"
|
||||||
|
let l:Match_Item = {
|
||||||
|
\ 'word': l:Tag_Item['name'],
|
||||||
|
\ 'menu': l:Tag_Item['filename'],
|
||||||
|
\ 'info': "Symbol from file " . l:Tag_Item['filename'] . " line " . l:Tag_Item['cmd'],
|
||||||
|
\ 'kind': 's',
|
||||||
|
\ 'icase': 1}
|
||||||
|
else
|
||||||
|
"
|
||||||
|
" Tag created by ctags
|
||||||
|
"
|
||||||
|
let l:Info = 'Symbol : ' . l:Tag_Item['name'] . "\n"
|
||||||
|
let l:Info .= 'Of type : ' . g:ada#Ctags_Kinds[l:Tag_Item['kind']][1] . "\n"
|
||||||
|
let l:Info .= 'Defined in File : ' . l:Tag_Item['filename'] . "\n"
|
||||||
|
|
||||||
|
if has_key( l:Tag_Item, 'package')
|
||||||
|
let l:Info .= 'Package : ' . l:Tag_Item['package'] . "\n"
|
||||||
|
let l:Menu = l:Tag_Item['package']
|
||||||
|
elseif has_key( l:Tag_Item, 'separate')
|
||||||
|
let l:Info .= 'Separate from Package : ' . l:Tag_Item['separate'] . "\n"
|
||||||
|
let l:Menu = l:Tag_Item['separate']
|
||||||
|
elseif has_key( l:Tag_Item, 'packspec')
|
||||||
|
let l:Info .= 'Package Specification : ' . l:Tag_Item['packspec'] . "\n"
|
||||||
|
let l:Menu = l:Tag_Item['packspec']
|
||||||
|
elseif has_key( l:Tag_Item, 'type')
|
||||||
|
let l:Info .= 'Datetype : ' . l:Tag_Item['type'] . "\n"
|
||||||
|
let l:Menu = l:Tag_Item['type']
|
||||||
|
else
|
||||||
|
let l:Menu = l:Tag_Item['filename']
|
||||||
|
endif
|
||||||
|
|
||||||
|
let l:Match_Item = {
|
||||||
|
\ 'word': l:Tag_Item['name'],
|
||||||
|
\ 'menu': l:Menu,
|
||||||
|
\ 'info': l:Info,
|
||||||
|
\ 'kind': l:Tag_Item['kind'],
|
||||||
|
\ 'icase': 1}
|
||||||
|
endif
|
||||||
|
if complete_add (l:Match_Item) == 0
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
if complete_check ()
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
endfunction adacomplete#Complete
|
||||||
|
|
||||||
|
finish " 1}}}
|
||||||
|
|
||||||
|
"------------------------------------------------------------------------------
|
||||||
|
" Copyright (C) 2006 Martin Krischik
|
||||||
|
"
|
||||||
|
" Vim is Charityware - see ":help license" or uganda.txt for licence details.
|
||||||
|
"------------------------------------------------------------------------------
|
||||||
|
" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
|
||||||
|
" vim: foldmethod=marker
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user