0
Answered

Running python code in SSH

atonaltensor 3 years ago in iPad updated by Alexander Blach (Developer) 5 months ago 1

Hello, 

Maybe I am being dense, but I cannot see how I could execute/run python code I've written in my SSH terminal window. 


Example: I'm editing a file called "main.py" in Textastic with "print("Hello World!"). I want to be able to open the SSH terminal (into my local server) and be able to type "python main.py" to see "Hello World!" printed inside the SSH terminal window. 

How do I achieve this without having to manually copy and paste code?

Answer

Hello,

I would do it like this:

  • create the python file(s) in Textastic in a folder within "Local Files" or "iCloud"
  • use the file transfer screen to upload the files to your server using an SFTP connection
  • use the SSH terminal to run the python file on your server using the same connection
  • when you now make changes to the python files on your iPad, you can use the "Quick Upload" feature of Textastic to upload your file with two taps or a keyboard shortcut (Cmd-Option-Up)

Please have a look at these topics in the manual for details:

Uploading and Downloading Files: https://www.textasticapp.com/v10/manual/remote_servers/uploading_downloading.html

Quickly Upload/Download: https://www.textasticapp.com/v10/manual/remote_servers/quick_upload_download.html

0
Answered

Adding Rmd syntax highlighting

Jessica Temporal 3 years ago in iPad updated by Alexander Blach (Developer) 3 years ago 4

Hello! First of all let me say: This is a great app! I’ve been using it for a week now and I love it!

I was trying to add syntax highlighting for .rmd files but the highlighting isn’t working. I followed the steps in the blogpost I saw linked in other topics, and used this .tmbundle I found on GitHub. But the syntax isn’t rendering, either I did something wrong, or the bundle isn’t working, I’d appreciate a little help fixing it.

Here’s a print showing a .rmd file and correctly detected highlight:

Image 423

Thanks in advance =)

0

Opening in Safari

Doug Lerner 3 years ago in iPad updated 3 years ago 2

Well, I dived in and purchased. It looks quite nice. I do have one question though (for now).

I touched on an html file in my iCloud Drive. It now opens by default in Textastic, which is fine. I edited it and that worked. And I touched the little eyeglasses icon and I could see the file as a web page, and that worked.

But, when I touch the ... icon and touch "open in Safari" nothing happens. How would I open the file in Safari?

Thanks.

0
Fixed

Built-in Preview window making several requests at the same time

Miguel 3 years ago in iPad updated 3 years ago 13

I am using the built-in preview to check my remote code after I upload it to the server. I do this periodically. Recently I started to notice that if I do it very often after a while my server started to reply with 508. I checked the logs and it seems the AppleWebKit is making several requests at once instead of just 1 normal request. The more I use it seems the more requests it makes. it seems it goes back to normal if kill Textastic and open it again. I suspect the Preview window is not getting killed properly and is running on the background.

0

Built-in Preview window making several requests at the same time

Miguel 3 years ago in iPad 0

i am using the built-in preview to check my remote code.

0
Under review

Golang completion & code formatting on iPad version

Nicolas_d 3 years ago in iPad updated by Alexander Blach (Developer) 3 years ago 1

Hi !

I just bought Textastic code editor 9 for my iPad Pro and I’m facing a major issue at the moment. 

Looks like code coloration is working for my Golang files, but I do not manage to get any kind of completion & code formatting. Am I missing something ? 


All the other features (ssh & file syncing) work like a charm ! If I could get a deeper Golang integration, I could use this app on a daily basis for developing while on the road. 


Thanks for your future support :)


0

How to find files in Textastic memory cache

Doug Dyer 3 years ago in iPad 0

I am writing a PWA using JavaScript in Textastic. If I re run my code after a short interval, the database opens correctly (using indexedDBj). If re running after a long interval, I will often encounter this error: NotFoundError: Failed to execute 'transaction. Is there away to see what 'files' are stored in the Textastic memory cache?

0

Continuous Undo/Redo

Davetheword 4 years ago in iPad 0

Is it possible to make undo/redo (primarily with keyboard, e.g. cmd+z) take action continuously, ergo if the cmd+z is held for a short while, it starts automatically stepping back in undo history, and vica versa?

At the moment if there’s a bigger chunk of work done that needs to be undone, cmd+z has to be pressed every time to step back one by one.

Thanks in advance!

0
Fixed

Cursor jumps randomly

Davetheword 4 years ago in iPad updated by Alexander Blach (Developer) 3 years ago 5

On IPad with folio keyboard the cursor randomly jumps across the whole document when pressing the up/down arrow keys. Haven’t managed to find any pattern in this behaviour, seems to be happening every now and then - but more often when selecting some text and using shift+arrow keys to jump between lines.

Let me know if I could provide anything more to help with this!

Answer

I could reproduce and find a workaround for this problem just yesterday. It will be fixed in the next update.

0
Under review

Syntax Bundle Not Loading (javascript-react.tmbundle)

akbuck667 4 years ago in iPad updated by Alexander Blach (Developer) 4 years ago 1

I was following the manual on adding .tmbundle files for custom syntax highlighting, however, one bundle I tried to install isn’t loading into the application. Are there any methods or steps for users like me to debug this? I tried enabling the debug logs, but it looks like only the successful loading of bundles are logged when performing the “Reload Customizations” action.

The bundle in question is: https://github.com/jjeising/javascript-jsx.tmbundle

Notes: 

- I did find this bundle through online search- but based on my understanding, this bundle should be supported by Textastic.
- I am also assuming that there are currently no issues with this bundle. If there is, then I would expect to be able to see an error in Textastic’s debug logs.

- I have configured other syntax bundles in the application on the same device (at the same time as well), so there is no inaccuracy with my #Textastic directory.