Commit Graph

94 Commits

Author SHA1 Message Date
Master-Guy
93f4c499d4 Quick fix to prevent division by 0 2022-03-17 16:56:32 +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
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
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
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
smolgumball
cb82907817 Fix issues with timestamps on same line as clickable script rows in ls 2022-01-15 21:29:12 -07: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
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
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
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
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
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
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
Tony Roberts
e9fd5f46eb Add buy all option to buy terminal command 2021-12-28 03:15:29 -05: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
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
Martin Fournier
6b59a58ea3 Fix linter errors 2021-12-22 04:44:07 -05: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
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
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