Open JoshuaRobertPreston opened 11 months ago
Hi, that's a request that's coming up regularly (not often, but regularly). It makes a lot of sense. I'm making a note to try implementing it.
For the technical stuff: a-Shell line-command interaction is currently done in JavaScript, so I'll have to rewrite the Vi mode of shells in JS.
Hi Nicolas,
Thanks for your response!
I've pulled your repo (with lg2 in e-Shell :-) and have been trying to work out the KeyCommands and hterm interaction - my comprehension is very surface level!
I do note that from within a-shell we an execute the hantive /usr/bin dash shell - however the wisdom from google is that the version on iOS has been compiled without libedit so set -o vi does nothing. As an experiment I've pulled and am attempting to build https://github.com/izenynn/minishell.git however make is failing - I'm attempting to get GNU make installed, or I'll try a cross-platform build and let you know how I go.
Josh
On Sat, 18 Nov 2023 at 8:00 pm, Nicolas Holzschuch @.***> wrote:
Hi, that's a request that's coming up regularly (not often, but regularly). It makes a lot of sense. I'm making a note to try implementing it.
For the technical stuff: a-Shell line-command interaction is currently done in JavaScript, so I'll have to rewrite the Vi mode of shells in JS.
— Reply to this email directly, view it on GitHub https://github.com/holzschu/a-shell/issues/723#issuecomment-1817449894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWBXQKDYGC4VPHSNZE5VDIDYFB2K3AVCNFSM6AAAAAA7QPIZFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGQ2DSOBZGQ . You are receiving this because you authored the thread.Message ID: @.***>
Hello Nicolas!
I've had fun playing with :VimShell - I'm not sure if this was only in the most recent update or was there all along.
I'm using a-shell to remote in to ec2 instances mostly, or to machines I use for my job.
Once again thankyou the core functionality of your app is the only thing on my ipad that allows me to do these things. I have both a-shell and a-shell Mini - it's good to have two separate apps running and I can alt-tab (command-tab) between them on my ipad. I wonder if ios allows for multiple instances of the same app? I note Chrome has some way of doing this but not quite as useful as a-shell/mini.
I've attempted to set up my .profile to ssh to a tmux enabled instance via .profile. I'm bumping in to limitations of your implementation though in using it in this unusual way - the .profile is only executed on the first command, not first prompt/start.
FEATURE REQUEST:
This would allow, for example, for /bin/dash to be the default shell, or my ssh to a tmux: startup=/bin/dash startup=ssh @.*** tmux -t FOO startup=a-shell
... my foreseen use would require it to restart afresh on any TCP drop - I'm often ~. or swipe-up tap icon but this is secondary.
I've had no luck compiling or cross-compiling, I don't have suitable environments. I'll continue to try for an iOS bash compile with readline and vi-keys but am out of me depth :-) Searching for pre-compiled binaries but again no luck.
Thanks and love your work -
Josh Preston 0421845147
On Sun, 19 Nov 2023 at 9:24 am, Joshua Preston < @.***> wrote:
Hi Nicolas,
Thanks for your response!
I've pulled your repo (with lg2 in e-Shell :-) and have been trying to work out the KeyCommands and hterm interaction - my comprehension is very surface level!
I do note that from within a-shell we an execute the hantive /usr/bin dash shell - however the wisdom from google is that the version on iOS has been compiled without libedit so set -o vi does nothing. As an experiment I've pulled and am attempting to build https://github.com/izenynn/minishell.git however make is failing - I'm attempting to get GNU make installed, or I'll try a cross-platform build and let you know how I go.
Josh
On Sat, 18 Nov 2023 at 8:00 pm, Nicolas Holzschuch < @.***> wrote:
Hi, that's a request that's coming up regularly (not often, but regularly). It makes a lot of sense. I'm making a note to try implementing it.
For the technical stuff: a-Shell line-command interaction is currently done in JavaScript, so I'll have to rewrite the Vi mode of shells in JS.
— Reply to this email directly, view it on GitHub https://github.com/holzschu/a-shell/issues/723#issuecomment-1817449894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWBXQKDYGC4VPHSNZE5VDIDYFB2K3AVCNFSM6AAAAAA7QPIZFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGQ2DSOBZGQ . You are receiving this because you authored the thread.Message ID: @.***>
Hi John, to answer your questions:
:VimShell
was added with version 1.9.2, on January 6, 2022. newWindow
, and switch between them with command-` (the key above tab on my keyboard)..profile
cannot be edited outside of the app). However, there is an option in Settings to restart Vim or dash if these commands were running when the app was terminated. So, for your intended use, you can check that option and place the commands you want in the .profile
(dash will execute the .profile
when it starts). Hello Nicolas!
I appreciate your ready interaction :-)
My first attempt to put an ssh into .profile was actually to source ~cloud/.profile so that if I bricked the app I could adjust outside of it.
But I recognise that a-shell is not a complete shell and the use of .profile is limited - eg no shell style if/[]/&&/|| logic that's fine.
I wonder if you should shift the $HOME to ~cloud?
... an ~cloud/.a-shell with "/bin/dash" is an idea ... what is the correct way to refer to your a-shell from such a file? can be edited outside of the app if the user bricks the app?
Josh Preston 0421845147
On Sat, 16 Dec 2023 at 6:11 pm, Nicolas Holzschuch @.***> wrote:
Hi John, to answer your questions:
- according to my notes, :VimShell was added with version 1.9.2, on January 6, 2022.
- you probably know this, but on an iPad you can have multiple windows of the same app, with newWindow, and switch between them with command-` (the key above tab on my keyboard).
- about automatically starting commands, I had that originally, but I had to remove it because it's very easy to put the app into a non-recoverable state (the hidden files like .profile cannot be edited outside of the app). However, there is an option in Settings to restart Vim or dash if these commands were running when the app was terminated. So, for your intended use, you can check that option and place the commands you want in the .profile (dash will execute the .profile when it starts).
— Reply to this email directly, view it on GitHub https://github.com/holzschu/a-shell/issues/723#issuecomment-1858745568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWBXQKDTOIRJ6AIBSIXN4YDYJVCSTAVCNFSM6AAAAAA7QPIZFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG42DKNJWHA . You are receiving this because you authored the thread.Message ID: @.***>
a-shell-nano 😮
seriously your app is so useful, you should at least offer a paid version even if the functionality is no different from the free version - some of us would pay at least - $10usd for a clean concience?
Josh Preston 0421845147
On Sat, 16 Dec 2023 at 6:18 pm, Joshua Preston < @.***> wrote:
Hello Nicolas!
I appreciate your ready interaction :-)
My first attempt to put an ssh into .profile was actually to source ~cloud/.profile so that if I bricked the app I could adjust outside of it.
But I recognise that a-shell is not a complete shell and the use of .profile is limited - eg no shell style if/[]/&&/|| logic that's fine.
I wonder if you should shift the $HOME to ~cloud?
... an ~cloud/.a-shell with "/bin/dash" is an idea ... what is the correct way to refer to your a-shell from such a file? can be edited outside of the app if the user bricks the app?
Josh Preston 0421845147
On Sat, 16 Dec 2023 at 6:11 pm, Nicolas Holzschuch < @.***> wrote:
Hi John, to answer your questions:
- according to my notes, :VimShell was added with version 1.9.2, on January 6, 2022.
- you probably know this, but on an iPad you can have multiple windows of the same app, with newWindow, and switch between them with command-` (the key above tab on my keyboard).
- about automatically starting commands, I had that originally, but I had to remove it because it's very easy to put the app into a non-recoverable state (the hidden files like .profile cannot be edited outside of the app). However, there is an option in Settings to restart Vim or dash if these commands were running when the app was terminated. So, for your intended use, you can check that option and place the commands you want in the .profile (dash will execute the .profile when it starts).
— Reply to this email directly, view it on GitHub https://github.com/holzschu/a-shell/issues/723#issuecomment-1858745568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWBXQKDTOIRJ6AIBSIXN4YDYJVCSTAVCNFSM6AAAAAA7QPIZFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG42DKNJWHA . You are receiving this because you authored the thread.Message ID: @.***>
I've been using a-Shell more and more as a hub to connect to my various things from my iPad using Apple Magic Keyboard - be it ssh or iCloud, fantastic app. However I use vi-keys (set -o vi) exclusively in *nix systems and am constantly tripped up when I return to the a-Shell requiring arrows and slow line editing. Is it possible to port the vi-mode of bash to a-Shell?