Giter Site home page Giter Site logo

elementary / code Goto Github PK

View Code? Open in Web Editor NEW
463.0 48.0 112.0 58.15 MB

Code editor designed for elementary OS

Home Page: https://elementary.io

License: GNU General Public License v3.0

Vala 97.38% Meson 2.20% CSS 0.19% Roff 0.22%
gtksourceview gtk vala meson gtk3 hacktoberfest

code's People

Contributors

bagjunggyu avatar cassidyjames avatar codygarver avatar colindemian avatar comradekingu avatar danirabbit avatar dartdeadia avatar davidgomes avatar davidmhewitt avatar dennis1248 avatar elementarybot avatar fitojb avatar gerito1 avatar hugok79 avatar ihorhordiichuk avatar jeremypw avatar johndumpling avatar josprachi avatar lenemter avatar leonardo-lemos avatar marcin-serwin avatar nathanbnm avatar niclaslockner avatar queeup avatar ryonakano avatar tomiohl avatar weblate avatar welaq avatar xapantu avatar yarons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

code's Issues

Save file always saves the right-side view

How to reproduce:

  1. Open Scratch
  2. Open a new Document
  3. Add a new View
  4. Type "this should be saved" in the left view, and "this shouldn't be saved" in the right view.
  5. Click on the left view.
  6. Click the save button and select a file
  7. Look at the file and it contains "this shouldn't be saved".

What should happen:

The content of the selected view should be saved and not always the right one.

Launchpad Details: #LP1392031 Raphael Isemann - 2014-11-12 19:46:24 +0000

renaming the file being worked on

I just found out that you could rename a file by double-clicking on the tab. I was trying to find a renaming option by right-clicking on the tab, thinking if it was possible a menu would show indicating what options I would have. It was only while writing a bug report suggesting for this option that it occured to me that I should try double-clicking.

Double click is fine but is rarely used in elementary. In fact I can't think of any double-click maneuver in the OS apart from the "open/save as" box which is an inconsistent remnant of Ubuntu/gnome.

I propose that the double-click should be changed to a single click on the already selected tab and/or a context menu (with only one entry?).

Launchpad Details: #LP1112697 Damien - 2013-02-01 17:23:38 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Selecting a file in the Source Tree project section is jarring

To recreate, open a file inside a project under version control, and then in the Source Tree pane, expand the "Project" section and choose another file.

What happens is the file you click appears under "Files" and that new entry becomes selected. This makes the Source Tree pane scroll to the top. There are two problems here:

  1. The entry you clicked is not selected, instead a copy of the entry is selected under files. The user did not select that entry and making it the selected one is confusing.
  2. The instant scroll to the top leaves you unsure about what just happened

Suggestion: Select the clicked entry, and don't scroll to the new duplicate entry under "Files". This will still be a little jarring as a new entry will be added to the "Files" section and will move the "Project" section downward a little.

Slick suggestion: Do as above, but animate the insertion of the new entry under "Files" so that the new entry expands into existence and all entries below it move down gradually rather than instantly.

Launchpad Details: #LP1198877 Kazade - 2013-07-08 10:29:32 +0000

Scratch hanging on large files

When opening large files (in my case a 35MB ".run" file) scratch will hang on startup until the session is deleted by hand. Scratch should warn the user if a file exceeds a certain size or load the file asycrounously.

Launchpad Details: #LP1368726 Alexander Schittler - 2014-09-12 12:09:53 +0000

Hard line wrap

In vim, you can use ":set textwidth=100" to have an automatic line break when your current word exceed the 100th character. It is useful when you make latex documents, you don't have to worry about line break.

It might be doable via a plugin.

Launchpad Details: #LP883835 xapantu - 2011-10-30 13:06:41 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Toggle visibility of comments in sourcecode

it'd be cool to just get comments out of the way while I'm working. I can read code, but I put in extra comments in for people that might not be as fluent as me or lecturers or people I'm having review my source but they distract me when I'm working and make it more difficult to see the structure so I'd like to be able to make them go away temporarily.

Another idea would be pull the comments out of the sourcefile and put them on comment tiles on the right hand side of the screen like for example google docs, but that solution has a ton of issues.

This might be a gtksourceview bug though.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Cannot open file after closing it

Steps to reproduce:

  1. Open scratch.
  2. Open a folder containing files (so that it appears on the sidebar).
  3. Expand the folder.
  4. Open a file by clicking it on the sidebar.
  5. Close the file.
  6. Try to open the same file again by clicking it on the sidebar (won't work).

OS: elementary OS 0.4 Loki (64-bit)

Launchpad Details: #LP1624819 DanielM - 2016-09-18 08:50:18 +0000

"Save as" destroys data when trying to overwrite a file

To reproduce:

Create one file with "Well, then", save as test.txt, and close.
Create another file with "Hello there" and attempt to overwrite test.txt.

You will see "Well, then" in your editor, and "Hello there" has been destroyed (no backup either).

This, in combination with a resurfacing of bug #1392031, caused me to lose about an hour of work. Ouchies.

Workaround: ALWAYS use a new filename when saving.

Launchpad Details: #LP1668014 David Berg - 2017-02-26 08:01:56 +0000

Brackets completion should also un-complete

If I type an opening bracket/paren/quote, then backspace it, the Brackets Completion plugin should also removed its added closing bracket/paren/quote. Right now it just leaves it.

Atom and Sublime have great behavior here if we need to investigate edge cases.

Launchpad Details: #LP1547635 Cassidy James Blaede - 2016-02-19 18:55:34 +0000

Sass support

It would be great to have Sass syntax highlighting.

Include Releases information in AppData.xml

In order to provide changelogs in appcenter, we need to start making use of appdata.xml release tags. The structure is like this:





    <_li>Add a feature</_li>
    <_li>Fix a bug</_li>
    <_li>updated translations</_li>




Launchpad Details: #LP1627358 Daniel Fore - 2016-09-24 18:31:27 +0000

Cursor is not displayed when Scratch is started / regains focus

As stated in the title: There is no indication where the (normally blinking) text cursor is (except from stuff like bracket matching) after starting Scratch or reopening it. Typing works so the window has focus and the cursor is then displayed after hitting the first key.

Launchpad Details: #LP1412051 quassy - 2015-01-17 21:04:36 +0000

Code assumes smb-share to be read-only

Scratch assumes any gvfs-mounted location to be read-only, while it's not always the case.

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 2.0r1201-0+pkg51localbuild
ProcVersionSignature: Ubuntu 3.2.0-52.78-generic 3.2.48
Uname: Linux 3.2.0-52-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.4+elementary3~precise1
Architecture: amd64
CrashDB: scratch_text_editor
Date: Sun Sep 8 01:03:55 2013
GsettingsChanges:

InstallationMedia: elementary OS 0.2 "Luna" - Daily amd64 (20130601)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=ru_RU.UTF-8
SHELL=/usr/bin/fish
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Launchpad Details: #LP1222254 Sergey "Shnatsel" Davidoff - 2013-09-07 21:08:55 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

use the right reversed elementary Scheme

We do not own pantheon.org, so our GSettings living under org.pantheon does not follow RDNN (https://en.wikipedia.org/wiki/Reverse_domain_name_notation).

In Loki+1, we should switch to using io.elementary for shell/OS components, and com.github.elementary for first-party apps.

Things to update:

  • Application id
  • Desktop filename
  • AppStream filename and id
  • GSettings path and id
  • DBus interfaces

Launchpad Details: #LP1594598 Cassidy James Blaede - 2016-06-20 22:26:20 +0000

Outline rebuild jumps source view around

When using outline, modifying a file will cause the source view to jump around. For example, I can modify a method to make it public at the bottom of my document and when the Outline tree refreshes I'll be taken to a point towards the top in my Source view. I've noticed that this seems more likely to occur when you navigate to the method using the source view. If you scroll through your document and modify methods/properties this particular problem is less likely to occur.

Launchpad Details: #LP1310436 KJ Lawrence - 2014-04-21 03:11:04 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

why add and remove view with one disabled

Why do we have a button in the Menu for "Add new view" and "Remove current view" when only one of them is not disabled at a time? We should either allow more than just two views or make there only be one menu item to toggle showing the side view (with the description changing).

Is there some reason for this UX decision? It seems like a waste of space to me.

Launchpad Details: #LP1390572 SuperScript - 2014-11-07 18:15:36 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Ctrl+G/Enter should iterate over the whole document

Ctrl+G/Enter should iterate over the whole document, not stopping at the end but starting from top. This is how I feel is the most natural behavior and besides having different shortcuts would make sense (because Up and Down arrows should stop at top/bottom).

Launchpad Details: #LP997341 Andrea Basso - 2012-05-09 21:03:14 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Scratch plugin activation does not work properly if filemanager and sourcelist are both activated in the same session.

Scratch often requires restarting which often alters even correct behavior based on in order plugin enablements.

Enabling file manager and then source tree disables tabs on clicking the editing area but does not enable the tabs to the left.

If you then restart Scratch and disable one or the other, it places them in reverse order at first on the left tabs but then switches back on another restart of Scratch.

Launchpad Details: #LP1341198 UserError - 2014-07-12 20:57:58 +0000

Emacs emulation

As the title says, emulating some of the keybindings e.g. copy/pasteing and maybe selection of text would be lovely :-). Extra points for implementing M x!

Launchpad Details: #LP1018629 Marcus Lundgren - 2012-06-27 22:33:04 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Option to open files in new window

Bug 905706 states that Scratch should work with multiple windows. If that bug is fixed, there should also be an option to open files in a new window instead of a new tab. This option also exists in Midori, for example.

Launchpad Details: #LP976330 Arturo Torres Sánchez - 2012-04-08 03:09:35 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Implement a consistent location in the UI for Print

Possible expected locations for Print:
  1. Context menu on right click in body of app (open document/page/email)
  2. 'Cog-wheel' menu
  3. Print or Share icon in primary toolbar (or headerbar)

Evince: Cog-wheel menu

Midori: Cog-wheel menu

Geary: 'Down arrow' icon button that includes Print option in open email is arguably not intuitive for new users and could be interpreted as Download(?) perhaps better to use 'hamburger' or 'share' icon?

Scratch: 'Share' icon

Photos: Right click on body

Launchpad Details: #LP1430722 DicconSpain - 2015-03-11 10:47:57 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

--set command-line option is undocumented by --help

--set command-line option is undocumented - the only thing --help says about it is "Set of plugins".

Technically it can load e.g. "filemanager" plugin, but passing that also renames scratch to "filemanager".

I presume this is for use cases like Euclide, running a rebranded Scratch with an external set of plugins. This should be better documented, e.g. in the manpage.

Launchpad Details: #LP1354043 Sergey "Shnatsel" Davidoff - 2014-08-07 15:10:37 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Same titles in tabs

Opening two or more folders with same folder names will result in two tabs named the same, and there is no way to determine which one is which, it can be done only through actually clicking on the tab. There should be some kind of mechanism like ie.: sublime text does for same file names.

Launchpad Details: #LP1621637 Adam Bieńkowski - 2016-09-08 21:23:31 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Create a wakatime plugin

It would be nice to have a Wakatime plugin for Scratch as well, a lot of developers use (including me). I actually have the will to do it, but I'm not aware of the plugin interface capabilities/docs. It would be nice to have something pointing to it in the README.md.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I can't print from Scratch in Freya using Ctrl+P

I have tried printing a file from Scratch using Ctrl+P, even tried to mark the text before doing Ctrl+P but nothing happens.
I can't find a print-option in Scratch either.

I have used gedit before and are used to have a print option.

Launchpad Details: #LP1407260 Stinger - 2015-01-03 12:33:42 +0000

Can not open the same file after closing it

If you close a file (when using both filemanager or folder manager plugins) the file stays highlighted in the sidebar - so you can't open it again without clicking another file or collapsing and expanding the folder in the sidebar.

Launchpad Details: #LP1382558 Tomo Moto - 2014-10-17 13:28:26 +0000

scratch stuck with a vertical bar in the middle

After opening Scratch, I chose "New File" and this happened. There seems to be a vertical bar "|" in the top-center of what's supposed to be a blank text file.

While this is happening, the window where text should go is unresponsive. The buttons of Scratch are still working, by the way.

I have attached something of how it looks like.

Launchpad Details: #LP1467564 Reginald San - 2015-06-22 15:13:20 +0000

Critical warnings at start

When I start scratch the following critical warnings are displayed:

[_LOG_LEVEL_FATAL 17:38:42.605297] [Gtk] gtk_header_bar_pack: assertion 'gtk_widget_get_parent (widget) == NULL' failed
[_LOG_LEVEL_FATAL 17:38:42.605343] Scratch will not function properly.
[_LOG_LEVEL_FATAL 17:38:42.708736] file /build/buildd/scratch-text-editor-2.0.2r1430+pkg71ubuntu0.3.1/obj-x86_64-linux-gnu/src/MainWindow.c: line 2150: uncaught error: No such file or directory (g-io-error-quark, 1)
[_LOG_LEVEL_FATAL 17:38:42.708932] Scratch will not function properly.
[_LOG_LEVEL_FATAL 17:38:42.709083] [Gtk] gtk_action_set_visible: assertion 'GTK_IS_ACTION (action)' failed
[_LOG_LEVEL_FATAL 17:38:42.709214] Scratch will not function properly.
[_LOG_LEVEL_FATAL 17:38:42.709604] file /build/buildd/scratch-text-editor-2.0.2r1430+pkg71ubuntu0.3.1/obj-x86_64-linux-gnu/src/MainWindow.c: line 2150: uncaught error: No such file or directory (g-io-error-quark, 1)
[_LOG_LEVEL_FATAL 17:38:42.709796] Scratch will not function properly.
[_LOG_LEVEL_DEBUG 17:38:42.723203] SplitView.vala:180: WelcomeScreen shown succefully
[_LOG_LEVEL_DEBUG 17:38:42.723394] MainWindow.vala:477: create 'unsaved' directory: /home/cran/.local/share/scratch-text-editor/unsaved
[_LOG_LEVEL_FATAL 17:38:42.725164] scratch_services_document_load_content: assertion 'self != NULL' failed
[_LOG_LEVEL_FATAL 17:38:42.725217] Scratch will not function properly.

They should investigated and fixed in the code

Launchpad Details: #LP1402404 PerfectCarl - 2014-12-14 16:41:13 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Improve Scratch's UI feedback on slow loading files

Right now, when loading a large file, Scratch UI just halts.

This freeze make it seem like the app has crashed, while it is actually just working behind the scenes.

My suggestion is doing something similar to what SublimeText does (similar to the "wait while we load your session"). Basically, while you wait for the file to show, either show a loading bar or a spinning wheel - just something so that the user know the file IS getting loaded.

Launchpad Details: #LP1354245 Otto Robba - 2014-08-08 02:38:36 +0000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.