Notices


Reply
Thread Tools
trx's Avatar
Posts: 80 | Thanked: 237 times | Joined on Dec 2010 @ Serbia
#41
Originally Posted by tsadowski View Post
Very nice, especially the TeX syntax highlighting. Would it be possible to add word wrapping? Latex lines tend to be quite long.

Cheers,
Torsten
Thanks.

I'm afraid that at this point its unlikely, as the text edit component would need quite a bit of modifications to support word wrapping. I will however consider this for the future versions.

Also, if anyone has noticed any bugs or has new ideas, please let me know.

Edit: Oh, i have promoted TxPad-0.7.0-2 to Extras-Testing, please Vote up in order to promote it to Extras, thank you all.

TRX.

Last edited by trx; 2011-07-09 at 12:45.
 

The Following User Says Thank You to trx For This Useful Post:
strange1712's Avatar
Posts: 185 | Thanked: 111 times | Joined on Jul 2010 @ Mexico DF, Mexico
#42
Sorry I haven't reported this yet... When I press any zoom key when in "Change Font" Mode I get a popup 'txpad'
Code:
Access violation
Press OK to ignore risk data corruption
Press Cancel to kill the program
It's only shown the first time I press each of the Volume/Zoom keys. If I click OK nothing happens, it doesn't change Font Size. Clicking out of dialog kills the program.
Running from terminal I get
Code:
$ run-standalone.sh txpad
/etc/hildon/theme/gtk-2.0/gtkrc:1: border (or stretch) without valid file
TApplication.HandleException Access violation
  Stack trace:
  $00062FA0
  $00060814
  $0008B2E8
  $0019C134
  $0019E484
  $0019E648
  $0019CB44
  $0004B428
  $00179ED0
  $00179DD4
  $0017D228
  $0003279C
  $0018600C
  $00178E30
  $0023CE10
  $00203684
  $001FF3F4
I thought I had reported this before... I'm using a lot of things, personalized keyboard mapping, CSSU, Power Kernel, Swap on uSD (this is recent and it happened before), extas-devel, dbus-switchboard, etc...
__________________
Linux Registered User # 492214
http://counter.li.org/
------------------------
N900 registered as Linux Machine # 426325
 

The Following User Says Thank You to strange1712 For This Useful Post:
trx's Avatar
Posts: 80 | Thanked: 237 times | Joined on Dec 2010 @ Serbia
#43
Thank you, i will look into it.

TRX.
 
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#44
Re: v 0.7.0 (in Maemo repositories)

This now seems like a really useful little tool - Thank you. The initial versions of txpad were a bit difficult to use because I couldn't access the Sym key (Fn+Ctrl) for things like <, >, etc. This appears to have been fixed and improved upon.

Here are some bugs(maybe?), suggestions and comments:

(1) Text formatting
(a) Very clever you've got so many languages on the list, though there seem to be more colours for some than others e.g. mark-up languages are in full colour, while CSS only has normal, bold, italics.
(b) Is there a conf-file or similar so users can set colours for the colour formatting? It doesn't need to be able to be done one the fly (while prog is running) - a text file, which gets read on start-up is fine.
(c) Can the font resizing be moved from 'Edit' to Tools > Settings > Editor ? I didn't know it was there till I was looking for something else.

(2)Text flow etc:
(a) As per posts above, word wrap: TxPad is perfectly functional as-is but this would really improve its useabliity.
(b) [SOLVED - uncheck 'Cursor past EOL' button in Tools > Settings > Editor]I can put the cursor anywhere on a line, rather than just to the extent of the text, which is a little counter intuitive.

(3) The extra buttons - there one minute, gone the next. How can they by made to stay visible? These are kind of like a 4th row on the KB - a really good idea!

(4) Really like the tabs for files. And, you've kept them slim (low) enough to be part of the unscrollable UI. Fantastic!

(5) Again, good job with the bracket matching (round, angle and curly). Nice.

(6) Like the way tabs (as in '\t') persist to next line. Is there a way to make text auto-indent after a new open curly-bracket? And, de-indent when the closing brace is written?
e.g. jS/C/C++ style braces:
func()
{ // insert '\t' after next '\n', increase indent-level by 1
<\t * indent-level>
} // reduce indent level by 1

7. I am unable to open a file with TxPad via the terminal
- actions leading to event: type "txpad filename.txt"[enter] into xterm,
- expected outcome: content of "filename.txt" visible in TxPad, ready for editing.
- actual outcome: TxPad opens with message "Can't open that file".
- notes Using Ctrl+O or File > Open, TxPad can open said "filename.txt"

8. Unless the focus is on the main editing window, it is not possible to access the dashboard (window manager). I thought it was a Hildon programme-design guideline that Ctrl+Bksp / the double rectangle in the top-left corner should be functionable/accessible at all times?

9. I really like that the file-browser has full access to the whole device.
I would like to know if a specific directory (e.g. MyDocs) can be set as the default?
It can be difficult to use it sometimes because if a directory extends below the bottom of the screen, the scroller doesn't work that well. The cursor keys do, however, work to move the selection, so it would be intuitive to allow [enter-key] to be used to open/close a selected directory.

10. Save to HTML
Great feature. Really useful for sharing stuff!
(a) It doesn't work if file is not saved first, nor does it flag an error.
(b) File extension appears to be kept as original, rather than being set to .html .
(c) Can \t be converted to &emsp; in the mark up? At the moment, it goes to a single space.
(d) The output is in variable-width text, not monospace. I think it's because the code tage doesn't inherit from the pre tag; perhaps pre isn't supposed to have children, or could be use of the out of date font tag? How about this example for the most basic of C++ files:

HTML Code:
<html>
<head>
<title>hello</title>
<style type="text/css">
       code
       {
        font-family: monospace;
        white-space: pre;
       }

</style>
</head>
<body>

<code>
<!-- content exported... -->
#include &lt;iostream&gt;

<b>int</b> main()
{
&emsp;std::cout &lt;&lt; &quot;Hello World&quot; &lt;&lt; std::endl;
&emsp;<i>// comments</i>
&emsp;<b>return </b>0;
}
<code>
</body>
</html>
Haven't yet tried the more dynamic features such as testing scripts in TxPad, ftp, etc. but I'll report back if I do.

I hope these don't sound like slights. I might be doing something wrong for some of these. Actually, I think TxPad could easily become the defacto on-device editor, especially if it will run easily on Harmattan. It's so easy to use, yet sophisticated enough to be able to edit many source types. Good job so far.
 

The Following 3 Users Say Thank You to demolition For This Useful Post:
trx's Avatar
Posts: 80 | Thanked: 237 times | Joined on Dec 2010 @ Serbia
#45
Originally Posted by demolition View Post
Re: v 0.7.0 (in Maemo repositories)

This now seems like a really useful little tool - Thank you. The initial versions of txpad were a bit difficult to use because I couldn't access the Sym key (Fn+Ctrl) for things like <, >, etc. This appears to have been fixed and improved upon.
Here are some bugs(maybe?), suggestions and comments:
First of all, thank you for trying/using TxPad.

Originally Posted by demolition View Post
(1) Text formatting
(a) Very clever you've got so many languages on the list, though there seem to be more colours for some than others e.g. mark-up languages are in full colour, while CSS only has normal, bold, italics.
(b) Is there a conf-file or similar so users can set colours for the colour formatting? It doesn't need to be able to be done one the fly (while prog is running) - a text file, which gets read on start-up is fine.
(c) Can the font resizing be moved from 'Edit' to Tools > Settings > Editor ? I didn't know it was there till I was looking for something else.
(a,b) At the moment, there is no "plugin system" for syntax highlighting, so it has to be expanded/modified only via source code. This is however a planned feature and will come eventually. Mainly because of code folding, you may not be aware of this, but TxPad supports syntax code folding, but currently only for pascal...


(c) Yes, it can. At the moment you can change the size there, or switch the zoom keys to change font size instead of changing tabs. I don't know if you noticed that if you tabs are hidden(Settings) and your finger is over the proximity sensor, you will get 3 more buttons, test that, and see if its useful to you.

Originally Posted by demolition View Post
(2)Text flow etc:
(a) As per posts above, word wrap: TxPad is perfectly functional as-is but this would really improve its useabliity.
(b) [SOLVED - uncheck 'Cursor past EOL' button in Tools > Settings > Editor]I can put the cursor anywhere on a line, rather than just to the extent of the text, which is a little counter intuitive.
(a) This is a planned feature but its a complex one, it would need quite a bit of rewrite. (Planned to do eventually.)
(b) My first IDE was Delphi, where this is standard behavior, so i tend to make every code editor do this

Originally Posted by demolition View Post
(3) The extra buttons - there one minute, gone the next. How can they by made to stay visible? These are kind of like a 4th row on the KB - a really good idea!
Well, i tried to save space, so i made them visible only when the proximity sensor is closed. I can add an option to lock them in place...

Originally Posted by demolition View Post
(4) Really like the tabs for files. And, you've kept them slim (low) enough to be part of the unscrollable UI. Fantastic!
You can also try to hide tabs in settings, then when you close the proximity sensor, few more buttons for tab control will show up... This may save additional space for code.


Originally Posted by demolition View Post
(5) Again, good job with the bracket matching (round, angle and curly). Nice.
Thanks.

Originally Posted by demolition View Post
(6) Like the way tabs (as in '\t') persist to next line. Is there a way to make text auto-indent after a new open curly-bracket? And, de-indent when the closing brace is written?
e.g. jS/C/C++ style braces:
func()
{ // insert '\t' after next '\n', increase indent-level by 1
<\t * indent-level>
} // reduce indent level by 1
I will have to look into this first.

Originally Posted by demolition View Post
7. I am unable to open a file with TxPad via the terminal
- actions leading to event: type "txpad filename.txt"[enter] into xterm,
- expected outcome: content of "filename.txt" visible in TxPad, ready for editing.
- actual outcome: TxPad opens with message "Can't open that file".
- notes Using Ctrl+O or File > Open, TxPad can open said "filename.txt"
I never encountered that problem, both absolute and relative paths work fine. Can you provide more info about this?

Originally Posted by demolition View Post
8. Unless the focus is on the main editing window, it is not possible to access the dashboard (window manager). I thought it was a Hildon programme-design guideline that Ctrl+Bksp / the double rectangle in the top-left corner should be functionable/accessible at all times?
This is because the dialogs are waiting for a modal result, so they need an answer before they get out of focus. This is actually Qt's fault, and its lack of following the hildon design. I dont think i can do much about this, but i will look into it.

Originally Posted by demolition View Post
9. I really like that the file-browser has full access to the whole device.
I would like to know if a specific directory (e.g. MyDocs) can be set as the default?
It can be difficult to use it sometimes because if a directory extends below the bottom of the screen, the scroller doesn't work that well. The cursor keys do, however, work to move the selection, so it would be intuitive to allow [enter-key] to be used to open/close a selected directory.
Yes, i will add an option in settings to set a default path. About the scroller, i noticed that too, but i can't seem to find the bug, sometimes its there sometimes not :/

About the enter key, you can actually use left/right keys to open/close directories.

Originally Posted by demolition View Post
10. Save to HTML
Great feature. Really useful for sharing stuff!
(a) It doesn't work if file is not saved first, nor does it flag an error.
(b) File extension appears to be kept as original, rather than being set to .html .
(c) Can \t be converted to &emsp; in the mark up? At the moment, it goes to a single space.
(d) The output is in variable-width text, not monospace. I think it's because the code tage doesn't inherit from the pre tag; perhaps pre isn't supposed to have children, or could be use of the out of date font tag? How about this example for the most basic of C++ files:

HTML Code:
<html>
<head>
<title>hello</title>
<style type="text/css">
       code
       {
        font-family: monospace;
        white-space: pre;
       }

</style>
</head>
<body>

<code>
<!-- content exported... -->
#include &lt;iostream&gt;

<b>int</b> main()
{
&emsp;std::cout &lt;&lt; &quot;Hello World&quot; &lt;&lt; std::endl;
&emsp;<i>// comments</i>
&emsp;<b>return </b>0;
}
<code>
</body>
</html>
I will have to check this, and let you know.

Originally Posted by demolition View Post
Haven't yet tried the more dynamic features such as testing scripts in TxPad, ftp, etc. but I'll report back if I do.

I hope these don't sound like slights. I might be doing something wrong for some of these. Actually, I think TxPad could easily become the defacto on-device editor, especially if it will run easily on Harmattan. It's so easy to use, yet sophisticated enough to be able to edit many source types. Good job so far.
Thank you very much for taking the time to test/write all this, its much appreciated...
If you find anything else that can be improved, please let me know

About Harmattan, sadly, no. It can't run at all because there Qt widgets are obsolete :/
So i had to rewrite everything from scratch in Pascal/C++/QML. I was lucky enough to receive Nokia N950, so i am working on it intensely. Its not yet ready for a first release tho.
I will post updates on that one when they come.

TRX.
 

The Following 4 Users Say Thank You to trx For This Useful Post:
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#46
Originally Posted by trx View Post
First of all, thank you for trying/using TxPad.
np. Really like it.

(a,b) At the moment, there is no "plugin system" for syntax highlighting, so it has to be expanded/modified only via source code. This is however a planned feature and will come eventually. Mainly because of code folding, you may not be aware of this, but TxPad supports syntax code folding, but currently only for pascal...
Don't know how adaptble your code is. Might be easier to offer variuos modules for each language? Then basic support can be ffered for a lot of languages and more specialised for those the user decides to install. he core code would be lighter but the refactoring to allow this might be too much of a headache! Similar to the decision to whether to put cotent within or in a static-lib or a dll.
Forgot to mention the folding. Yes really like it, exellent idea for small screen. Markup languages fine and as you say - not there yet for C style languages.

(c) Yes, it can. At the moment you can change the size there, or switch the zoom keys to change font size instead of changing tabs. I don't know if you noticed that if you tabs are hidden(Settings) and your finger is over the proximity sensor, you will get 3 more buttons, test that, and see if its useful to you.
[Edit: partially resolved, see next bit]
Thanks for proximity tip. They just flash up and disappear. It's possible they're on the wrong 'layer', I suppose? Consquently, I haven't had a chance to use them! Sorry. Zoom (vol) keys just do volume for me. This might be an installation glitch - I've done killall hildon-desktop; do I need to do anything else?

(a) This is a planned feature but its a complex one, it would need quite a bit of rewrite. (Planned to do eventually.)
(b) My first IDE was Delphi, where this is standard behavior, so i tend to make every code editor do this
I'm sorry that to implement wrapping would cause so much annoyance.
I see the setting to disable/enable cursor at any point on line but I've just noticed it doesn't persist between files in one session, nor does it persist between sessions - on restart all settings are default again. If you need a native c++ parser for settings files, can I help?

Well, i tried to save space, so i made them visible only when the proximity sensor is closed. I can add an option to lock them in place...

You can also try to hide tabs in settings, then when you close the proximity sensor, few more buttons for tab control will show up... This may save additional space for code.
If I'm coding on device, I need the KB open (can't get BT to work) so always on show would be good. Reaching up to speaker (proximity sensor) with thumb is quite awkward. Menu option-able.
[Edit 2 - extra tools on/off is hit & miss, even with earpiece covered]

I will have to look into this first.
Yeah the logic of auto formatting is a bit tricky but REALLY helps when reviewing code - especially someone else's!


I never encountered that problem, both absolute and relative paths work fine. Can you provide more info about this?
In terminal
Code:
~/MyDocs/tmp $ ls
TxPadComment  hello.cpp     hello.html
~/MyDocs/tmp $ txpad.cpp
Mmm... most bizzarre - now it works! mmm. Nevermind.

Type something in a file. Instead of saving it, just export to html and leave 'Untitled' as filename - nothing happens (dialog does go away)

This is because the dialogs are waiting for a modal result, so they need an answer before they get out of focus. This is actually Qt's fault, and its lack of following the hildon design. I dont think i can do much about this, but i will look into it.
Oh, I didn't realise this. I thought Ctrl + Backspace had to work for all non beta software?


Yes, i will add an option in settings to set a default path. About the scroller, i noticed that too, but i can't seem to find the bug, sometimes its there sometimes not :/

About the enter key, you can actually use left/right keys to open/close directories.
I realised the L - R thing just after I posted. D'oh! Scroller is annoying, as you say intermittent.

I will have to check this, and let you know.
Yeah, the original says "generated by ..." (can't remember who but it's a bit clumsy with all those font tags and stuff.

Thank you very much for taking the time to test/write all this, its much appreciated...
If you find anything else that can be improved, please let me know
Quite the opposite, Thank you! I'm really looking forward to one day being able to run a script from w/i the editor that will invoke the compiler and linker, to create a programme from source (perhaps also written in the editor!) ... amazing!

... I need to put some of my user experiences as a how-to in the Wiki!

Feature ideas:
... I notice Ctrl + T is [del]. Any chance this could be Ctrl+D? Ctrl+T IMHO would be better used as either new tab or, better still, in mark-up mode a new self-closing tag, e.g.
// press [Ctrl+T]
<></> // tag pair appears. cursor in first
<style></style> // while key != (whitespace) copy character to closing tag.

... more commands accessible via Ctrl+[key] or Ctrl+[key1],[key2]

... and I guess at some point something WYSIWIG for html ... but that's more of an outlandish wish after disasters with Abiword!

About Harmattan, sadly, no. It can't run at all because there Qt widgets are obsolete :/
So i had to rewrite everything from scratch in Pascal/C++/QML. I was lucky enough to receive Nokia N950, so i am working on it intensely. Its not yet ready for a first release tho.
I will post updates on that one when they come.

TRX.
!! Oh no! What a pain. How much of the Harmattan version can be ported back to Maemo5? Surely, Qt/C++ and QML are ok aren't they? How do you like your N950? I tried one the other day ... not enitrely sure. I'm a stylus user and have got used to this KB. I'm told the extra RAM's good though.

Last edited by demolition; 2011-10-31 at 05:49.
 

The Following 2 Users Say Thank You to demolition For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#47
Bravo, the best edito seen yet!
The sensor use idea is geniusfull.

Only one suggestion if I dare:
Word wrap would be great.

Thanks again
Ric
 

The Following 3 Users Say Thank You to ric9K For This Useful Post:
Posts: 43 | Thanked: 45 times | Joined on Jun 2010 @ Sweden
#48
Greetings..

I've used Txpad quite a bit since my last post, and it's still my favourite code editor. The interface is very nice and the proximity sensor menu is wonderfully useful and speeds things up a lot.

I have yet to try out the features to run scripts, mainly because I'm use to compile and run the program in xterm in a seperate task.

I can also mention that I've also written some stuff from scratch on the machine and it works quite well, considering that you can switch between tabs and stuff.

Having read the above comments, I really glad to see that TxPad is still is development. In addition to the features mentioned by demolition, I have a few wishes (and one bug fix) that would make TxPad even more great:

1. Add color profiles so that you can easily switch between two or more user-defined color schemes. I normally prefer a dark scheme but due to syntax highlighting I need to switch sometimes.

2. Fix the following task switch bug: In TxPad, Ctrl+Backspace to switch to task manager. Switching back to Txpad and pressing a key causes the Ctrl+[Key] event to be triggered, for instance pressing 'a' produces Ctrl-a marking the whole text. In other words, the Ctrl-button seem to still be in the buffer when returning to TxPad -- a focus issue that was mentioned above?

3. Improve the syntax highlighting of C/C++ style languages, adding highlighting in different colors (at the moment just bold/not bold).

4. Option to specify the tab size (currently fixed at 8 spaces).

Many thanks again for a great program. For the N900 in general, It will be a long time before I throw this puppy away, although I'd love to get my hands on one of them N950's that you got.

/sowwhatyoureap
 

The Following 2 Users Say Thank You to sowwhatyoureap For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#49
trx, first of all, thanks for this excellent program! It is something, that I needed for long time - ever ended up using ED and notepad++ for such purposes (to my surprise, I was not able to find touch friendly editor with syntax highlighting support).

One small suggestion - could You please - alongside new update - enhance description in repos? Enigmatic description is first and biggest reason, why I missed development of TxPad (found it by accident, while browsing TxSQLeditor thread). I can't tell for others, but - when not getting know about program via TMO "active threads" - my usual way of finding what I need is repos search -> if fail wiki search -> if fail forum search.

Currently, TxPad is almost indistinguishable from "regular" text editors (leafpad), if one rely on Repos description.

/Estel

// Edit

I can confirm, that usage of volume keys is broken. No matter, if I try to use it to change font or tabs, I get access violation. Ignoring it doesn't help, and after few tried, it just stop recognizing volume keys (fortunatelly, only in TxPad) at all.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2011-12-13 at 19:46.
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 12 | Thanked: 5 times | Joined on Feb 2012
#50
awesome text editor, so thx for trx for this nice prog
what about new version? for me this need some functions:
1)editable highlight themes
2)editable panel on proximite sensor (not only simbols, for example for me it is not useble to click scroll buttons on left side) and option for set timer for autohide
3) wordwrap!!!!it is important thing!
 

The Following User Says Thank You to byakabs For This Useful Post:
Reply

Tags
txpad

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:21.