RevanProdigalKnight
36db849ff1
Upgrade terminal ParseCommand function
...
Adds ability to parse arbitrarily-nested strings into single arguments (see comments on lines 48, 64, 76)
Adds ability to parse additional number formats, e.g.: hexadecimal (0x0A), octal (018), and binary (0b1101)
Combines arguments separated with escaped spaces into single string arguments, e.g.: "echo Hello\ World!" -> ["echo", "Hello World!"]
2022-05-04 00:46:15 -06:00
Zoë Hoekstra
016a9a873f
Add keycode table and switch to event.code in select places
2022-05-03 15:59:46 +02:00
Olivier Gagnon
f10de908d4
Make tutorial explain ns1 vs ns2 better
2022-04-29 17:54:59 -04:00
hydroflame
307ec7961a
Merge pull request #3524 from Snarling/realignAutocomplete
...
UI: FIX #3522 realigned autocomplete popup
2022-04-20 13:05:27 -04:00
Snarling
3f53a1f090
Format+lint
2022-04-20 10:05:55 -04:00
Snarling
16e507127a
Allow cd .. into empty directories
2022-04-20 10:03:51 -04:00
Snarling
5898e27529
Change alignment of autocomplete popper
2022-04-20 09:19:33 -04:00
JP Sugarbroad
01d7ac6967
make jQuery use explicit
2022-04-19 16:14:16 -07:00
Snarling
f466a880eb
Fix style + Format/Lint
2022-04-18 07:55:59 -04:00
Snarling
02ccda197c
WIP
2022-04-18 07:41:09 -04:00
Zoë Hoekstra
43807fb757
Add code for handling when dest. script is running
2022-04-15 19:44:08 +02:00
Chris380
bfa19eb7ba
Make .lit and .msg files clickable
2022-04-14 16:23:45 +02:00
hydroflame
0d11a18ca9
Merge pull request #3428 from Chris380/bugfix/2367_reject_cd_to_invalid_folders
...
Reject cd to invalid folders
2022-04-13 11:27:35 -04:00
Olivier Gagnon
501b69bbc2
tighten messages types wth enums
2022-04-13 11:10:56 -04:00
chris380
d93ab92f69
Reject cd to invalid folders
2022-04-13 16:07:41 +02:00
Olivier Gagnon
8958046421
fix test
2022-04-12 14:06:24 -04:00
chris380
93f59f0df2
formatting updated
2022-04-12 15:11:38 +02:00
chris380
16720ec3b7
update connect help text
2022-04-12 15:08:04 +02:00
chris380
6a941d57ed
Add backdoored servers to connect autocompletion
2022-04-12 15:03:45 +02:00
Olivier Gagnon
48f80f25d6
fmt and lint
2022-04-06 19:30:08 -04:00
phyzical
61fc815a6b
added apr1 terminal command
...
* just opens the rickroll modal
2022-04-02 20:08:57 +08:00
Heinous Tugboat
9b0422f9ee
Removes extra asterisk in template
2022-03-30 10:18:07 -04:00
hydroflame
0e89017794
Merge pull request #3246 from phyzical/refactor-more-key-codes
...
slice out event key constant refactors
2022-03-30 00:12:36 -04:00
hydroflame
3456acc6a8
Update connect.ts
2022-03-29 11:27:34 -04:00
Thomas B
0a9bded0d8
Clarify Error Message
...
Co-authored-by: ApamNapat <ApamNapat@users.noreply.github.com>
2022-03-28 08:33:05 -04:00
Thomas B
fe0b6d5982
Clarified error message
2022-03-25 09:41:23 -04:00
phyzical
c681828ec1
few more event key. constant refactors
2022-03-24 23:09:24 +08:00
Olivier Gagnon
05fe14a5ed
Fix some key not working
2022-03-20 23:11:26 -04:00
BB
9c9550ad42
Removed unreachable code
2022-03-20 19:33:10 +01:00
hydroflame
9922ffb3c2
Merge branch 'dev' into issues/2308
2022-03-20 14:22:32 -04:00
hydroflame
d2dedace2e
Merge pull request #3152 from Master-Guy/issues/1944
...
Issues/1944
2022-03-20 14:21:28 -04:00
hydroflame
8faacfc4ef
Merge pull request #3158 from Master-Guy/features/2462
...
Tabelize linked output of `ls`
2022-03-20 14:20:53 -04:00
Master-Guy
9373d65a16
Merge branch 'danielyxie:dev' into issues/2308
2022-03-18 11:12:21 +01:00
Master-Guy
9dd933ecee
Changed .keyCode to .key for files in "src"
2022-03-18 10:43:56 +01:00
Master-Guy
2871bba379
Review comments by ApamNapat
2022-03-17 22:25:30 +01:00
Master-Guy
e0377980a5
Merge branch 'dev' into issues/1944
2022-03-17 18:29:18 +01:00
Master-Guy
a575c0cfe3
Tabelize linked output of ls
2022-03-17 17:50:39 +01:00
hydroflame
561219a0ab
Merge branch 'dev' into bugfix/2877-2
2022-03-17 12:05:38 -04:00
hydroflame
9453537af4
Merge pull request #3151 from Master-Guy/issues/2877
...
Remove IP option from connect helptext
2022-03-17 12:04:53 -04:00
Master-Guy
93f4c499d4
Quick fix to prevent division by 0
2022-03-17 16:56:32 +01:00
phyzical
9949cc9a1e
removed ip references
2022-03-17 21:50:23 +08:00
Master-Guy
59ec6213b9
Processed review comments
2022-03-17 13:17:43 +01:00
Master-Guy
01776bffac
remove IP option from connect helptext
2022-03-17 13:00:07 +01:00
BB
5e2ccc71ec
Mixing spaces and tabs, extra semicolons and lonely ifs are now forbidden
2022-03-11 16:32:48 +01:00
hydroflame
b7ffdeb5e2
Merge pull request #3076 from ApamNapat/turned_two_eslint_rules_on
...
Trailing whitespace and files not ending with \n are now illegal
2022-03-10 22:12:17 -05:00
hydroflame
2dfecc8ad0
Merge pull request #3093 from mbrannen/expr-remainder-fix
...
updated regex sanitization
2022-03-10 21:39:59 -05:00
mbrannen
9602dbda2e
Update src/Terminal/commands/expr.ts
...
Updated to ApamNapat's suggestion
Co-authored-by: ApamNapat <ApamNapat@users.noreply.github.com>
2022-03-08 18:02:54 -07:00
BB
2f4d879c16
Trailing whitespace and files not ending with \n are now illegal
2022-03-08 22:51:02 +01:00
hydroflame
92909689b3
Merge pull request #2891 from tigercat2000/autocomplete_documentation
...
Terminal: There is now an interface definition for the autocomplete() 'data' argument.
2022-03-08 16:34:57 -05:00
mbrannen
bb6d90fb41
updated expression.
...
-removed escaping and reverted back for /
2022-03-07 23:50:05 -07:00
mbrannen
31ea56084e
updated regex sanitization
...
-allows %
-updated escape characters to \
2022-03-07 23:15:55 -07:00
BB
2c3e0985c4
Simplified some relative imports
2022-03-06 05:05:55 +01:00
citrusmunch
cc3452a766
FIX: old name netstat/scan to just scan
...
seems like an old/deprecated name not used anywhere else
2022-02-14 00:47:37 -05:00
phyzical
26df6fd39c
doc updates
2022-02-06 00:12:28 +08:00
phyzical
d41b19bced
added support for ls -l
2022-02-06 00:05:48 +08:00
phyzical
9a3731cf18
updated grep for ls
...
* implemented flags logic for grep
* added --grep and -g
* updated docs
2022-02-05 23:27:08 +08:00
tigercat2000
f0557eadf7
Terminal: There is now an interface definition for the autocomplete() 'data' argument.
2022-01-31 20:47:15 -08:00
SagePtr
40f2d16f44
Show "Can run scripts" to "NO" for zero-RAM servers in "analyze" command
2022-01-29 18:10:59 +02:00
Martin Fournier
588c3e42d7
Refactor download.ts (export "download *" command)
...
Export the "download *" helper to be able to be called from Electron.
2022-01-26 03:40:22 -05:00
hydroflame
ea9871fef0
Merge pull request #2641 from MartinFournier/feature/save-command-history
...
Copy terminal command history into game save
2022-01-26 00:47:02 -05:00
Martin Fournier
e7aa977eb0
Persist terminal command history in game save
...
Copy the terminal commands into the player object so that they are saved
between game reloads.
Adds a 'history' command to display history, and a 'history -c' command
to clear it from both the current terminal & the player's save.
2022-01-23 17:09:54 -05:00
zeddrak
4ffe5508dc
HacknetServer Grow/Weaken error messages
...
It may be intentional to use hack for all 3 (ie, assume the player makes the connection that can't hack, also means can't grow or weaken), in which case, disregard.
On the other hand, it could've easily been a copy/paste artifact, and this would be more explicitly clear, so thought it was worth bringing up.
2022-01-22 14:47:33 -08:00
hydroflame
27a54217eb
Merge pull request #2653 from nickofolas/fix/refactor-loops
...
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
hydroflame
247c02856a
Merge pull request #2658 from smolgumball/clickable-ls-style-tweak
...
Fix issues with timestamps on same line as clickable script rows in `ls`
2022-01-17 15:55:22 -05:00
nickofolas
7a31b19c88
Fix formatting lost in merge commit
2022-01-16 20:40:11 -06:00
smolgumball
cb82907817
Fix issues with timestamps on same line as clickable script rows in ls
2022-01-15 21:29:12 -07:00
nickofolas
ab841f7530
Refactor for ... in
loops
2022-01-15 18:45:03 -06:00
hydroflame
0c7070ad32
Merge pull request #2548 from smolgumball/ls-clickable-scripts
...
feat: add clickable script links to `ls` command
2022-01-15 17:49:23 -05:00
hydroflame
6bf6d1f217
Merge branch 'dev' into add-simple-globs-nano-vim
2022-01-15 17:38:25 -05:00
nickofolas
d136198738
Add autocomplete to help command
2022-01-14 15:25:30 -06:00
Martin Fournier
aa3a253b14
Cancel debounced events on terminal unmount
2022-01-14 14:32:30 -05:00
nickofolas
c7b3b9918e
Update help text formatting
2022-01-13 18:47:21 -06:00
hydroflame
979d785af6
Merge pull request #2572 from nickofolas/fix-relative-autocomplete
...
Fix autocomplete in directories
2022-01-11 18:20:45 -05:00
nickofolas
5764b783de
Fix autocomplete in directories
2022-01-11 17:04:14 -06:00
Jeffrey A. Robinson
b5392df7a9
Analyze now outputs if a server has a backdoor installed or not
2022-01-11 13:03:23 -08:00
Russell Stringer
26ef94b062
Fixes autocomplete when running script in a directory without using leading slash
...
Fixes #1681
2022-01-11 12:05:32 -05:00
hydroflame
9da46668c7
Merge pull request #2544 from nickofolas/autocomplete-partial-executable
...
Autocomplete partial executables
2022-01-11 11:13:45 -05:00
hydroflame
923dbdc9d1
Merge pull request #2549 from markusariliu/patch-1
...
clarify error
2022-01-11 11:13:17 -05:00
Martin Fournier
25839d592d
Fix mem padding when using GiB
2022-01-11 05:12:59 -05:00
markusariliu
bb85568cbf
clarify error
...
The error message for running multiple instances of the same script with the same args should be updated to clarify that the args is the issue not just the multiple instances
2022-01-10 21:54:38 -08:00
smolgumball
c8db709287
Add hostname safety
2022-01-10 21:00:52 -07:00
smolgumball
358f5ee8ee
Add simple clickable links to ls command
...
Only supports `nano` as I couldn't figure out how to infer `vim`
support without an explicit `nano` or `vim` command being run.
2022-01-10 20:40:02 -07:00
nickofolas
5cd7e2cfbc
Add support for contract completion
2022-01-10 16:39:06 -06:00
nickofolas
8c001bd1ae
Allow autocomplete for partial executables
2022-01-10 16:32:50 -06:00
Martin Fournier
7ee2612c17
Allow drag on character overview
...
Makes the character overview (and tutorial) draggable, persisting the
{x, y, opened} in the user's settings.
- Remove margin & padding from html, body and ensure main content is
full height
- Add setting to disable progress bars
- Refactor options to use new OptionSwitch
- Add exclusions to prettierignore
- Specify line ending in prettier & gitattributes
2022-01-10 07:37:01 -05:00
smolgumball
3f032d7006
Update verbiage to match UI (Script Editor vs. Text Editor)
2022-01-09 20:41:48 -07:00
smolgumball
b6f252cd8c
Update terminal help to mention globs; refactor to dedupe nano/vim usage details
2022-01-09 20:26:56 -07:00
smolgumball
74ba063772
Add simple glob support to nano/vim usage
2022-01-09 20:26:26 -07:00
Olivier Gagnon
d8a5f5b03c
many fixes
2022-01-09 15:24:32 -05:00
nickofolas
474ab69301
Fix terminal grow/weaken EXP gain
2022-01-08 15:57:44 -06:00
JustAnOkapi
00b838dab2
fix two typos in HelpText
...
mem -tab
scp +tab
2022-01-08 14:15:40 -06:00
Martin Fournier
f9ed45a895
Pass server to terminal actions that end later
...
Adds the current server object to the finishAction handler so that if
the player changes during the progress he'll hit the original server
with the command.
2022-01-08 11:29:00 -05:00
Martin Fournier
8b2ad883e4
Add save file warning for detailed ram usage
2022-01-06 21:13:38 -05:00
hydroflame
c722ff5982
Merge pull request #2373 from MartinFournier/feature/mem-verbose
...
Add detailed ram cost to mem command
2022-01-06 11:25:41 -05:00
Martin Fournier
4fad90ed4d
Multiply ram cost by threads
2022-01-05 18:32:29 -05:00
Martin Fournier
b345da9dee
Change detailed mem format
2022-01-05 18:04:26 -05:00
Martin Fournier
4b06bdd89c
Add detailed ram cost to mem command
2022-01-05 16:41:48 -05:00
Sage Pointer
0bd8d3cb8f
Fix some achievements not triggered if hacked with backdoor command
...
Moving to BitVerse and returning from function happened before setting backdoorInstalled property to true, so Achievement Handler believed the current BitNode was not finished (unless we applied backdoor through hack command, which has correct code).
2022-01-05 22:23:10 +02:00
Olivier Gagnon
faf8389bef
v1.3
2022-01-04 20:46:10 -05:00
Olivier Gagnon
c59a267437
change sf4
2022-01-04 19:09:34 -05:00
hydroflame
9673b6f31d
Merge pull request #2170 from theit8514/mv-overwrite
...
Fix mv overwriting script files
2021-12-29 01:58:37 -05:00
hydroflame
f674d2d253
Merge pull request #2169 from maxtimum/feature/add_grep_option_to_ps
...
Feature/add grep option to ps
2021-12-28 10:35:26 -05:00
hydroflame
5aff5fc944
Merge pull request #2193 from Frank-py/patch-2
...
Updated Terminal.tsx to add keypress event.
2021-12-28 10:33:04 -05:00
hydroflame
e583b46b16
Merge pull request #2202 from amclark42/help-analyze-typo-fix
...
Fix two typos in `help` command text
2021-12-28 10:32:19 -05:00
hydroflame
a29ffead78
Merge pull request #2211 from anthonydroberts/buy-all-option
...
Add buy all option to buy terminal command
2021-12-28 10:30:54 -05:00
Tony Roberts
e9fd5f46eb
Add buy all option to buy terminal command
2021-12-28 03:15:29 -05:00
Andrew Cooper
33e4e31099
Fixes scp and mem helptext.
2021-12-28 00:54:35 +00:00
Ash Clark
58dd450aca
Fix two typos in help
command text
2021-12-27 11:47:02 -05:00
Frank-py
73adc71965
Updated Terminal.tsx to add keypress event.
...
Added keypress event to delete the word after input by pressing "alt" + "d".
2021-12-25 23:11:21 +01:00
maxtimum
07b00bc377
add -g, --grep flags to ps command, documentation
2021-12-23 22:31:07 -08:00
theit8514
2d949c076b
Fix mv overwriting script files
2021-12-23 21:31:59 -05:00
maxtimum
deb6d6cc0a
add option to pass grep pattern to ps
2021-12-23 17:39:45 -08:00
Olivier Gagnon
ed86577d6c
imports are more flexible
2021-12-23 15:57:32 -05:00
Andrew Cooper
7805b72457
'help run' docs now mentions coding contracts.
2021-12-23 01:23:57 +00:00
theit8514
06ec11a107
Fix cp from another folder to current folder
...
src is already passed through getFilepath. Doing it again roots the file in the current directory.
2021-12-22 12:34:08 -05:00
hydroflame
366bffad85
Merge pull request #2098 from FOLLGAD/patch-2
...
Fix incorrect help entry for "weaken" command
2021-12-22 12:17:11 -05:00
Martin Fournier
6b59a58ea3
Fix linter errors
2021-12-22 04:44:07 -05:00
Emil Ahlbäck
e7e1e82394
Update HelpText.ts
2021-12-21 22:16:12 +01:00
Billy Vong
bb2f8e883c
feat: Support opening multiple files from command line
2021-12-20 16:55:17 -05:00
Billy Vong
d30edc7f59
feat: Add vim
terminal command
2021-12-20 16:20:50 -05:00
Olivier Gagnon
41a7109baa
fix
2021-12-20 15:48:26 -05:00
Olivier Gagnon
ddd0eaaf5c
weaken message
2021-12-20 14:13:56 -05:00
65-7a
3df0fd3945
Add script files to tab completion for cat
2021-12-20 21:11:58 +11:00
65-7a
14532cd0a8
Allow cat to work on scripts
2021-12-20 21:11:28 +11:00
hydroflame
3255768259
Merge pull request #1993 from Nick-Colclasure/file-read-patch
...
Fix problems finding root files in cat and ns.read
2021-12-20 01:56:20 -05:00
Nicholas Colclasure
61dde4cfac
Fix issue introduced handling files in subdirectories ._.
2021-12-19 13:03:50 -08:00
Martin Fournier
3b99da8474
Lint current problems & fix ignore paths
2021-12-19 13:17:44 -05:00
Martin Fournier
d1696148c4
Fix tests syntax for jest
...
Most tests could not run with jest because of syntax difference between
the old test runner.
2021-12-19 12:37:42 -05:00
hydroflame
e6b84a73b2
Merge pull request #2031 from MageKing17/patch-1
...
Update ls.tsx
2021-12-19 00:24:58 -05:00
hydroflame
b6df183953
Merge pull request #2008 from hexnaught/lowercase-exe-call-patch
...
Allow `.exe` (programs) to be ran in a case-insensitive `run`
2021-12-19 00:23:52 -05:00
hydroflame
bc7f94ddda
Update check.ts
2021-12-19 00:23:01 -05:00
MageKing17
1dcc17c4fb
Update ls.tsx
...
`args[numArgs - 1]` is the last argument in the list, so correct usage was being flagged as incorrect, and incorrect usage wasn't working anyway because the filter was `"undefined"`.
Additionally, the function seemed confused as to whether or not `ls` counted as an argument (AFAICT, it isn't).
Fixes #1994 .
2021-12-18 21:22:34 -08:00
Dan
b8b3897e64
fix(commands): tweak wording for consistency
2021-12-19 03:23:26 +00:00
Dan
b2add6c26b
fix(commands): error feedback, wording consistency
...
Found most (hopefully all) places where the error message wording
incorrectly was shown to the tune of 'no script exists', where it should
have been showing to the effect of 'script is not running'.
Also cleaned up some of the consistency in the wording and added a
'helper' export for knowing valid script extensions used in validation
of 'isScriptFilename', so we can have consistent error messaging.
Resolves danielyxie/bitburner#1966
2021-12-19 03:10:43 +00:00
Dan
24c7fb2b92
fix(cli:run) case insensitive calls to program run
...
Allow the user to run programs (.exe) in a case insensitive manor
Resolves danielyxie/bitburner#1958
2021-12-19 02:41:21 +00:00
hydroflame
c723c7ecd2
Merge pull request #1957 from billyvg/feat/add-ctrl-u-clear-line
...
feat: Add `ctrl+u/k/w` hotkeys
2021-12-18 14:35:12 -05:00
Nicholas Colclasure
8ba5199e54
Fix problems finding root files in cat and ns.read
...
Cat ends up translating the path it receives from relative to absolute twice, which I fix by changing the filename to an absolute path before it's passed to getTextFile with a leading "/" so that it doesn't interpret the filename as being relative.
Read I fixed by causing getTextFile to remove the leading "/" from files that are in the root directory, since that is required to translate their name into the native "filesystem"s format.
2021-12-17 20:40:46 -08:00
Olivier Gagnon
ae6f8c5ee7
make tutorial better
2021-12-16 20:54:50 -05:00
Olivier Gagnon
81e291ef6a
change color of terminal input
2021-12-16 20:20:07 -05:00
Olivier Gagnon
99f3566e52
bugfix
2021-12-16 20:09:19 -05:00
Billy Vong
9b64551197
Merge branch 'dev' into feat/add-ctrl-u-clear-line
2021-12-16 17:07:39 -05:00
Billy Vong
2e9a42d74c
add comment
2021-12-16 17:03:49 -05:00
Billy Vong
2804b6ae56
remove console
2021-12-16 17:03:15 -05:00
Billy Vong
d4bf6100a3
feat: Add ctrl+u/k/w
hotkeys
...
Adds the `ctrl+u/k/w` hotkeys to clear line before and after, as well as deleting word before cursor. I implemented deleting word after cursor, but I have not repod the functionality in bash, so I did not add the hotkey.
2021-12-16 16:59:24 -05:00
Martin Fournier
e8e2760c73
Fix #1880 : Show git commit of bundled app
2021-12-16 15:25:59 -05:00
Olivier Gagnon
9292484ed0
minor tweak
2021-12-16 12:29:41 -05:00
Olivier Gagnon
a1af0318d8
minor error message tweak
2021-12-16 12:20:04 -05:00
hydroflame
b05645a61c
Merge pull request #1936 from TheCoderJT/issue1920
...
Issue1920
2021-12-16 12:19:23 -05:00
Olivier Gagnon
52f2e52456
minor tweak to scp error message
2021-12-16 12:14:48 -05:00
Jordan Turner
ac79d0aea4
adjusted the wording and added dynamic player server location
2021-12-15 17:52:08 -07:00